No Description

build.gradle 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. }
  35. subprojects {
  36. configurations.all {
  37. resolutionStrategy {
  38. eachDependency { details ->
  39. /* Override by group name */
  40. switch (details.requested.group) {
  41. case 'com.android.support': details.useVersion '27.+'; break
  42. }
  43. }
  44. }
  45. }
  46. }