Commit 6afc12be authored by zhuchuanyong's avatar zhuchuanyong

feat: key

parent 2dae1e3d
......@@ -144,6 +144,12 @@ android {
}
}
signingConfigs {
config {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
debug {
storeFile file('debug.keystore')
storePassword 'android'
......@@ -153,12 +159,12 @@ android {
}
buildTypes {
debug {
signingConfig signingConfigs.debug
signingConfig signingConfigs.config
}
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.config
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
......
......@@ -26,3 +26,8 @@ android.enableJetifier=true
# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.54.0
MYAPP_RELEASE_STORE_FILE=rnstudy.jks
MYAPP_RELEASE_KEY_ALIAS=VT
MYAPP_RELEASE_STORE_PASSWORD=123456
MYAPP_RELEASE_KEY_PASSWORD=123456
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment