暂无描述

build.gradle 1.2KB

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