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