12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. buildscript {
  2. repositories {
  3. google()
  4. jcenter()
  5. }
  6. dependencies {
  7. //noinspection GradleDependency
  8. classpath 'com.android.tools.build:gradle:3.2.1'
  9. }
  10. }
  11. def getExtOrDefault(name) {
  12. return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['ReactNativeSafeAreaView_' + name]
  13. }
  14. def getExtOrIntegerDefault(name) {
  15. return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties['ReactNativeSafeAreaView_' + name]).toInteger()
  16. }
  17. apply plugin: 'com.android.library'
  18. android {
  19. compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
  20. buildToolsVersion getExtOrDefault('buildToolsVersion')
  21. defaultConfig {
  22. minSdkVersion getExtOrIntegerDefault('minSdkVersion')
  23. targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
  24. }
  25. lintOptions{
  26. abortOnError false
  27. }
  28. }
  29. repositories {
  30. google()
  31. jcenter()
  32. mavenCentral()
  33. }
  34. dependencies {
  35. //noinspection GradleDynamicVersion
  36. api 'com.facebook.react:react-native:+'
  37. }