mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-22 22:28:22 +03:00
prepare android release bundling
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
diff --git a/amnet-native/android/app/build.gradle b/amnet-native/android/app/build.gradle
|
||||
index 6ee4a34..eb8c5f0 100644
|
||||
--- a/amnet-native/android/app/build.gradle
|
||||
+++ b/amnet-native/android/app/build.gradle
|
||||
@@ -124,15 +124,21 @@ android {
|
||||
keyAlias 'androiddebugkey'
|
||||
keyPassword 'android'
|
||||
}
|
||||
+ release {
|
||||
+ if (project.hasProperty('AMNET_UPLOAD_STORE_FILE')) {
|
||||
+ storeFile file(AMNET_UPLOAD_STORE_FILE)
|
||||
+ storePassword AMNET_UPLOAD_STORE_PASSWORD
|
||||
+ keyAlias AMNET_UPLOAD_KEY_ALIAS
|
||||
+ keyPassword AMNET_UPLOAD_KEY_PASSWORD
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
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
|
||||
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
|
||||
minifyEnabled enableProguardInReleaseBuilds
|
||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||
Reference in New Issue
Block a user