build.gradle 494B

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