build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2. buildscript {
  3. ext {
  4. versionName = "4.1.1" //★★★★★版本号★★★★★
  5. buildToolsVersion = "35.0.1"
  6. minSdkVersion = 24
  7. compileSdkVersion = 35
  8. targetSdkVersion = 35
  9. kotlinVersion = "2.0.21"
  10. playServicesVersion = "17.0.0"
  11. firebaseMessagingVersion = "21.1.0"
  12. // NDK r27+ 支持 16KB 页面大小
  13. ndkVersion = "27.1.12297006"
  14. }
  15. repositories {
  16. // 阿里云镜像加速
  17. maven { url 'https://maven.aliyun.com/repository/google' }
  18. maven { url 'https://maven.aliyun.com/repository/central' }
  19. maven { url 'https://maven.aliyun.com/repository/public' }
  20. google()
  21. mavenCentral()
  22. }
  23. dependencies {
  24. classpath("com.android.tools.build:gradle")
  25. classpath("com.facebook.react:react-native-gradle-plugin")
  26. classpath("com.google.gms:google-services:4.3.15")
  27. classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.9")
  28. classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
  29. }
  30. }
  31. apply plugin: "com.facebook.react.rootproject"