您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build.gradle 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Top-level build file where you can add configuration options common to all
  2. // sub-projects/modules.
  3. buildscript {
  4. repositories {
  5. jcenter()
  6. maven { url 'https://maven.google.com' }
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:3.0.0-alpha6'
  10. // NOTE: Do not place your application dependencies here; they belong
  11. // in the individual module build.gradle files.
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. mavenLocal()
  17. jcenter()
  18. maven {
  19. // All of React Native (JS, Obj-C sources, Android binaries) is
  20. // installed from npm.
  21. url "$rootDir/../node_modules/react-native/android"
  22. }
  23. }
  24. }
  25. ext {
  26. compileSdkVersion = 25
  27. buildToolsVersion = "25.0.3"
  28. minSdkVersion = 16
  29. targetSdkVersion = 23
  30. }
  31. // Force the version of the Android build tools we have chosen on all
  32. // subprojects. The forcing was introduced for react-native and the third-party
  33. // modules that we utilize such as react-native-background-timer.
  34. subprojects { subproject ->
  35. afterEvaluate{
  36. if (subproject.plugins.hasPlugin('android')
  37. || subproject.plugins.hasPlugin('android-library')) {
  38. android {
  39. buildToolsVersion rootProject.ext.buildToolsVersion
  40. }
  41. }
  42. }
  43. }