mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
set up signing and a new release test command
This commit is contained in:
@@ -135,7 +135,7 @@ android {
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionName "1.0.0"
|
||||
}
|
||||
splits {
|
||||
abi {
|
||||
@@ -152,15 +152,25 @@ android {
|
||||
keyAlias 'androiddebugkey'
|
||||
keyPassword 'android'
|
||||
}
|
||||
release {
|
||||
if (project.hasProperty("SUBTRACKS_UPLOAD_STORE_FILE")) {
|
||||
storeFile file(SUBTRACKS_UPLOAD_STORE_FILE)
|
||||
storePassword SUBTRACKS_UPLOAD_STORE_PASSWORD
|
||||
keyAlias SUBTRACKS_UPLOAD_KEY_ALIAS
|
||||
keyPassword SUBTRACKS_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
|
||||
if (project.hasProperty("signReleaseWithDebug")) {
|
||||
signingConfig signingConfigs.debug
|
||||
} else {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
minifyEnabled enableProguardInReleaseBuilds
|
||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user