build.gradle 931 B

12345678910111213141516171819202122232425262728
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. buildToolsVersion = "33.0.0"
  5. minSdkVersion = 21
  6. compileSdkVersion = 33
  7. targetSdkVersion = 33
  8. // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
  9. // ndkVersion = "23.1.7779620"
  10. if (System.properties['os.arch'] == "aarch64") {
  11. // For M1 Users we need to use the NDK 24 which added support for aarch64
  12. ndkVersion = "24.0.8215888"
  13. } else {
  14. // Otherwise we default to the side-by-side NDK version from AGP.
  15. ndkVersion = "21.4.7075529"
  16. }
  17. }
  18. repositories {
  19. google()
  20. mavenCentral()
  21. }
  22. dependencies {
  23. classpath("com.android.tools.build:gradle")
  24. classpath("com.facebook.react:react-native-gradle-plugin")
  25. }
  26. }