build.gradle 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. buildToolsVersion = "30.0.2"
  5. minSdkVersion = 21
  6. compileSdkVersion = 31
  7. targetSdkVersion = 31
  8. ndkVersion = "21.4.7075529"
  9. }
  10. repositories {
  11. // maven{ url = "https://maven.aliyun.com/repository/public/" }
  12. maven { url 'https://maven.aliyun.com/repository/public' }
  13. maven { url 'https://maven.aliyun.com/repository/central' }
  14. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  15. maven { url 'https://maven.aliyun.com/repository/google' }
  16. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
  17. maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases' }
  18. maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
  19. maven { url 'https://jitpack.io' } // 为github的依赖提供
  20. maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
  21. google()
  22. mavenCentral()
  23. }
  24. dependencies {
  25. classpath("com.android.tools.build:gradle:4.2.2")
  26. // NOTE: Do not place your application dependencies here; they belong
  27. // in the individual module build.gradle files
  28. }
  29. }
  30. allprojects {
  31. repositories {
  32. //maven{ url = "https://maven.aliyun.com/repository/public/" }
  33. maven { url 'https://maven.aliyun.com/repository/public' }
  34. maven { url 'https://maven.aliyun.com/repository/central' }
  35. maven { url 'https://maven.aliyun.com/repository/jcenter' }
  36. maven { url 'https://maven.aliyun.com/repository/google' }
  37. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
  38. maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases' }
  39. maven { url 'https://maven.aliyun.com/repository/apache-snapshots' }
  40. maven { url 'https://jitpack.io' } // 为github的依赖提供
  41. maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
  42. maven {
  43. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  44. url("$rootDir/../node_modules/react-native/android")
  45. }
  46. maven {
  47. // Android JSC is installed from npm
  48. url("$rootDir/../node_modules/jsc-android/dist")
  49. }
  50. mavenCentral {
  51. // We don't want to fetch react-native from Maven Central as there are
  52. // older versions over there.
  53. content {
  54. excludeGroup "com.facebook.react"
  55. }
  56. }
  57. google()
  58. maven { url 'https://www.jitpack.io' }
  59. }
  60. }