apply plugin: 'com.android.library' android { defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) targetSdkVersion safeExtGet('targetSdkVersion', 28) } compileSdkVersion safeExtGet('compileSdkVersion', 28) buildToolsVersion safeExtGet('buildToolsVersion', "28.0.3") lintOptions { abortOnError false } } dependencies { implementation 'com.facebook.react:react-native:+' implementation files('libs/geetest_sensebot_android_v4.0.7_20190311.aar') } def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback }