build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. repositories {
  4. jcenter()
  5. maven {
  6. url 'https://maven.google.com/'
  7. name 'Google'
  8. }
  9. google()
  10. }
  11. dependencies {
  12. classpath 'com.android.tools.build:gradle:3.1.2'
  13. // NOTE: Do not place your application dependencies here; they belong
  14. // in the individual module build.gradle files
  15. }
  16. }
  17. subprojects {
  18. project.configurations.all {
  19. afterEvaluate {project ->
  20. if (project.hasProperty("android")) {
  21. android {
  22. compileSdkVersion 27
  23. buildToolsVersion '27.0.3'
  24. }
  25. }
  26. }
  27. }
  28. }
  29. allprojects {
  30. repositories {
  31. mavenLocal()
  32. jcenter()
  33. maven {
  34. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  35. url "$rootDir/../node_modules/react-native/android"
  36. }
  37. maven {
  38. url 'https://maven.google.com/'
  39. name 'Google'
  40. }
  41. maven { url "https://jitpack.io" }
  42. }
  43. }
  44. ext {
  45. buildToolsVersion = "26.0.3"
  46. minSdkVersion = 16
  47. compileSdkVersion = 26
  48. targetSdkVersion = 26
  49. supportLibVersion = "26.1.0"
  50. }