feat: add Play Store publish workflow and signing config

This commit is contained in:
Ubuntu
2026-05-17 21:11:43 +00:00
parent ca345556e3
commit 4ad09eae82
5 changed files with 145 additions and 3 deletions

View File

@@ -104,15 +104,21 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
if (System.getenv("RELEASE_STORE_FILE")) {
storeFile file(System.getenv("RELEASE_STORE_FILE"))
storePassword System.getenv("RELEASE_STORE_PASSWORD")
keyAlias System.getenv("RELEASE_KEY_ALIAS")
keyPassword System.getenv("RELEASE_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 System.getenv("RELEASE_STORE_FILE") ? signingConfigs.release : signingConfigs.debug
def enableShrinkResources = findProperty('android.enableShrinkResourcesInReleaseBuilds') ?: 'false'
shrinkResources enableShrinkResources.toBoolean()
minifyEnabled enableMinifyInReleaseBuilds