apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
    compileSdkVersion safeExtGet('compileSdkVersion', 26)

    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', 16)
        targetSdkVersion safeExtGet('targetSdkVersion', 26)
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }

    buildTypes {
        release {
            postprocessing {
                removeUnusedCode false
                removeUnusedResources false
                obfuscate false
                optimizeCode false
                proguardFile 'proguard-rules.pro'
            }
        }
    }

}


repositories {
    flatDir {
        dirs 'libs'
    }
}

dependencies {
//    api fileTree(dir: 'libs', include: ['*.aar'])
//     api (name: 'ywx-sdk-contain-3.6.8-04', ext:'aar')
    api (name: 'ywx-sdk-4.0.7', ext:'aar')
    implementation 'com.google.code.gson:gson:2.8.1'

    implementation 'com.facebook.react:react-native:+'
    testImplementation 'junit:junit:4.12'
    implementation "com.android.support:appcompat-v7:${safeExtGet('supportLibVersion','28.0.3')}"
}
