You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.6 KiB

  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. buildToolsVersion = "31.0.0"
  5. minSdkVersion = 21
  6. compileSdkVersion = 31
  7. targetSdkVersion = 31
  8. if (System.properties['os.arch'] == "aarch64") {
  9. // For M1 Users we need to use the NDK 24 which added support for aarch64
  10. ndkVersion = "24.0.8215888"
  11. } else {
  12. // Otherwise we default to the side-by-side NDK version from AGP.
  13. ndkVersion = "21.4.7075529"
  14. }
  15. }
  16. repositories {
  17. google()
  18. mavenCentral()
  19. }
  20. dependencies {
  21. classpath("com.android.tools.build:gradle:7.2.1")
  22. classpath("com.facebook.react:react-native-gradle-plugin")
  23. classpath("de.undercouch:gradle-download-task:5.0.1")
  24. // NOTE: Do not place your application dependencies here; they belong
  25. // in the individual module build.gradle files
  26. }
  27. }
  28. allprojects {
  29. repositories {
  30. maven {
  31. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  32. url("$rootDir/../node_modules/react-native/android")
  33. }
  34. maven {
  35. // Android JSC is installed from npm
  36. url("$rootDir/../node_modules/jsc-android/dist")
  37. }
  38. mavenCentral {
  39. // We don't want to fetch react-native from Maven Central as there are
  40. // older versions over there.
  41. content {
  42. excludeGroup "com.facebook.react"
  43. }
  44. }
  45. google()
  46. maven { url 'https://www.jitpack.io' }
  47. }
  48. }