12345678910111213141516171819202122232425
  1. apply plugin: 'com.android.library'
  2. android {
  3. defaultConfig {
  4. minSdkVersion safeExtGet('minSdkVersion', 16)
  5. targetSdkVersion safeExtGet('targetSdkVersion', 28)
  6. }
  7. compileSdkVersion safeExtGet('compileSdkVersion', 28)
  8. buildToolsVersion safeExtGet('buildToolsVersion', "28.0.3")
  9. lintOptions {
  10. abortOnError false
  11. }
  12. }
  13. dependencies {
  14. implementation 'com.facebook.react:react-native:+'
  15. implementation 'com.geetest.sensebot:sensebot:4.2.2'
  16. }
  17. def safeExtGet(prop, fallback) {
  18. rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
  19. }