Skip to content

Commit 56b7ad9

Browse files
committed
added upload key config
1 parent 6e3ec9c commit 56b7ad9

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

android/app/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ android {
150150
keyAlias 'androiddebugkey'
151151
keyPassword 'android'
152152
}
153+
154+
release {
155+
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
156+
storeFile file(MYAPP_UPLOAD_STORE_FILE)
157+
storePassword MYAPP_UPLOAD_STORE_PASSWORD
158+
keyAlias MYAPP_UPLOAD_KEY_ALIAS
159+
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
160+
}
161+
}
153162
}
154163
buildTypes {
155164
debug {
@@ -158,7 +167,7 @@ android {
158167
release {
159168
// Caution! In production, you need to generate your own keystore file.
160169
// see https://facebook.github.io/react-native/docs/signed-apk-android.
161-
signingConfig signingConfigs.debug
170+
signingConfig signingConfigs.release
162171
minifyEnabled enableProguardInReleaseBuilds
163172
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
164173
}

android/gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ android.enableJetifier=true
2626

2727
# Version of flipper SDK to use with React Native
2828
FLIPPER_VERSION=0.33.1
29+
30+
# Upload key
31+
MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
32+
MYAPP_UPLOAD_KEY_ALIAS=upload-key
33+
MYAPP_UPLOAD_STORE_PASSWORD=
34+
MYAPP_UPLOAD_KEY_PASSWORD=

0 commit comments

Comments
 (0)