From 39c19f9ef916e2fa949e21592df68f316bb4dc24 Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 22 Jul 2025 17:10:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20update=20gradle.properties=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=BA=94=E7=94=A8=E7=AD=BE?= =?UTF-8?q?=E5=90=8D=E5=92=8C=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 10 +++++++++- android/gradle.properties | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index fe7aaa1..b2840de 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -92,6 +92,14 @@ android { keyAlias 'androiddebugkey' keyPassword 'android' } + release { + if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) { + storeFile file(MYAPP_RELEASE_STORE_FILE) + storePassword MYAPP_RELEASE_STORE_PASSWORD + keyAlias MYAPP_RELEASE_KEY_ALIAS + keyPassword MYAPP_RELEASE_KEY_PASSWORD + } + } } buildTypes { debug { @@ -100,7 +108,7 @@ android { release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. - signingConfig signingConfigs.debug + signingConfig signingConfigs.release minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } diff --git a/android/gradle.properties b/android/gradle.properties index 5e24e3a..127f945 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -32,8 +32,12 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 # your application. You should enable this flag either if you want # to write custom TurboModules/Fabric components OR use libraries that # are providing them. -newArchEnabled=true +newArchEnabled=false # Use this property to enable or disable the Hermes JS engine. # If set to false, you will be using JSC instead. hermesEnabled=true +MYAPP_RELEASE_STORE_FILE=my-release-key.keystore +MYAPP_RELEASE_KEY_ALIAS=vwedtask +MYAPP_RELEASE_STORE_PASSWORD=Hangzhou@123456 +MYAPP_RELEASE_KEY_PASSWORD=Hangzhou@123456 \ No newline at end of file