build.gradle 1.4 KB

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