소스 검색

升级RN框架

wudebin 2 달 전
부모
커밋
48f8510d9e

+ 1 - 1
Strides-SPAPP/android/app/build.gradle

@@ -71,7 +71,7 @@ def enableProguardInReleaseBuilds = true
  * give correct results when using with locales other than en-US. Note that
  * this variant is about 6MiB larger per architecture than default.
  */
-def jscFlavor = 'org.webkit:android-jsc:+'
+def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
 
 def getMyVersionCode() {
     def files = file('version.properties')

+ 2 - 2
Strides-SPAPP/android/app/version.properties

@@ -1,2 +1,2 @@
-#Thu Mar 26 15:03:34 CST 2026
-VERSION_CODE=861
+#Thu Apr 09 17:09:37 CST 2026
+VERSION_CODE=863

+ 1 - 1
Strides-SPAPP/android/build.gradle

@@ -1,7 +1,7 @@
 // Top-level build file where you can add configuration options common to all sub-projects/modules.
 buildscript {
     ext {
-        versionName = "4.1.2" //★★★★★版本号★★★★★
+        versionName = "4.2.0" //★★★★★版本号★★★★★
         buildToolsVersion = "35.0.1"
         minSdkVersion = 24
         compileSdkVersion = 35

+ 7 - 9
Strides-SPAPP/android/gradle.properties

@@ -21,15 +21,17 @@ org.gradle.jvmargs=-Xmx5120m -XX:MaxMetaspaceSize=512m
 # Android operating system, and which are packaged with your app's APK
 # https://developer.android.com/topic/libraries/support-library/androidx-rn
 android.useAndroidX=true
-# Automatically convert third-party libraries to use AndroidX
-android.enableJetifier=true
-
+android.enableJetifier=false
+# 强制 AAB 打包工具在处理原生库时使用 16KB 对齐逻辑
+android.useLegacyPackaging=false
+android.bundle.enableUncompressedNativeLibs=true
+android.bundle.enableResourceOptimizations=false
 # Use this property to specify which architecture you want to build.
 # You can also override it from the CLI using
 # ./gradlew <task> -PreactNativeArchitectures=x86_64
 # reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
 reactNativeArchitectures=arm64-v8a
-
+reactNative.enable16KPageSize=true
 # Use this property to enable support to the new architecture.
 # This will allow you to use TurboModules and the Fabric render in
 # your application. You should enable this flag either if you want
@@ -42,8 +44,4 @@ newArchEnabled=true
 hermesEnabled=true
 
 # VisionCamera settings
-VisionCamera_enableCodeScanner=true
-
-android.nonTransitiveRClass=false
-android.buildFeatures.buildConfig = true
-#android.aapt2FromMavenOverride=D:/Android/android-sdk/build-tools/35.0.1/aapt2.exe
+VisionCamera_enableCodeScanner=true

+ 1 - 1
Strides-SPAPP/android/gradle/wrapper/gradle-wrapper.properties

@@ -1,6 +1,6 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
 networkTimeout=100000
 validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME