Няма описание

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. google()
  5. jcenter()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.1.4'
  9. // NOTE: Do not place your application dependencies here; they belong
  10. // in the individual module build.gradle files
  11. }
  12. }
  13. // This will apply compileSdkVersion and buildToolsVersion to any android modules
  14. subprojects { subproject ->
  15. afterEvaluate { project ->
  16. if (!project.name.equalsIgnoreCase("app") && project.hasProperty("android")) {
  17. android {
  18. compileSdkVersion 27
  19. buildToolsVersion '28.0.3'
  20. }
  21. }
  22. }
  23. }
  24. allprojects {
  25. repositories {
  26. mavenLocal()
  27. google()
  28. jcenter()
  29. maven {
  30. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  31. url "$rootDir/../node_modules/react-native/android"
  32. }
  33. }
  34. }