build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. google()
  13. mavenCentral()
  14. }
  15. dependencies {
  16. classpath("com.android.tools.build:gradle:4.2.2")
  17. // NOTE: Do not place your application dependencies here; they belong
  18. // in the individual module build.gradle files
  19. }
  20. }
  21. allprojects {
  22. repositories {
  23. //maven{ url = "https://maven.aliyun.com/repository/public/" }
  24. maven {
  25. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  26. url("$rootDir/../node_modules/react-native/android")
  27. }
  28. maven {
  29. // Android JSC is installed from npm
  30. url("$rootDir/../node_modules/jsc-android/dist")
  31. }
  32. mavenCentral {
  33. // We don't want to fetch react-native from Maven Central as there are
  34. // older versions over there.
  35. content {
  36. excludeGroup "com.facebook.react"
  37. }
  38. }
  39. google()
  40. maven { url 'https://www.jitpack.io' }
  41. }
  42. }