build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. buildToolsVersion = findProperty('android.buildToolsVersion') ?: '35.0.0'
  5. minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '24')
  6. compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '35')
  7. targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
  8. kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.25'
  9. ndkVersion = "26.1.10909125"
  10. }
  11. repositories {
  12. google()
  13. mavenCentral()
  14. }
  15. dependencies {
  16. classpath('com.android.tools.build:gradle')
  17. classpath('com.facebook.react:react-native-gradle-plugin')
  18. classpath('org.jetbrains.kotlin:kotlin-gradle-plugin')
  19. }
  20. }
  21. apply plugin: "com.facebook.react.rootproject"
  22. allprojects {
  23. repositories {
  24. maven {
  25. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  26. url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
  27. }
  28. maven {
  29. // Android JSC is installed from npm
  30. url(new File(['node', '--print', "require.resolve('jsc-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), '../dist'))
  31. }
  32. google()
  33. mavenCentral()
  34. maven { url 'https://www.jitpack.io' }
  35. }
  36. }