build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. versionName = "3.0.5" //★★★★★版本号★★★★★
  5. buildToolsVersion = "33.0.2"
  6. minSdkVersion = 23
  7. compileSdkVersion = 33
  8. targetSdkVersion = 33
  9. playServicesVersion = "18.0.0"
  10. firebaseMessagingVersion = "21.1.0"
  11. ndkVersion = "23.1.7779620"
  12. enableHermes = true
  13. }
  14. repositories {
  15. google()
  16. mavenCentral()
  17. }
  18. dependencies {
  19. classpath('com.android.tools.build:gradle')
  20. classpath("com.google.gms:google-services:4.3.15")
  21. classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22")
  22. classpath("com.facebook.react:react-native-gradle-plugin")
  23. }
  24. }
  25. allprojects {
  26. repositories {
  27. mavenLocal()
  28. maven {
  29. // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
  30. url("$rootDir/../node_modules/react-native/android")
  31. }
  32. maven {
  33. // Android JSC is installed from npm
  34. url("$rootDir/../node_modules/jsc-android/dist")
  35. }
  36. google()
  37. jcenter()
  38. maven { url 'https://www.jitpack.io' }
  39. }
  40. }
  41. project.ext.react = [
  42. nodeExecutableAndArgs: ["node", "--max_old_space_size=8192"]
  43. ]