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

build.gradle 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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-beta4'
  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. // Google's maven repository, required for AppCompat
  20. url "https://maven.google.com"
  21. }
  22. maven {
  23. // All of React Native (JS, Obj-C sources, Android binaries) is
  24. // installed from npm.
  25. url "$rootDir/../node_modules/react-native/android"
  26. }
  27. }
  28. }
  29. ext {
  30. compileSdkVersion = 25
  31. buildToolsVersion = "25.0.3"
  32. minSdkVersion = 16
  33. targetSdkVersion = 25
  34. }
  35. // Force the version of the Android build tools we have chosen on all
  36. // subprojects. The forcing was introduced for react-native and the third-party
  37. // modules that we utilize such as react-native-background-timer.
  38. subprojects { subproject ->
  39. afterEvaluate{
  40. if (subproject.plugins.hasPlugin('android')
  41. || subproject.plugins.hasPlugin('android-library')) {
  42. android {
  43. buildToolsVersion rootProject.ext.buildToolsVersion
  44. }
  45. }
  46. }
  47. }