1234567891011121314151617181920212223242526
  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', 26)
  7. buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
  8. defaultConfig {
  9. minSdkVersion safeExtGet('minSdkVersion', 16)
  10. targetSdkVersion safeExtGet('targetSdkVersion', 26)
  11. versionCode 1
  12. versionName "1.0"
  13. }
  14. lintOptions {
  15. abortOnError false
  16. }
  17. }
  18. dependencies {
  19. implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" // From node_modules
  20. }