File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -26,3 +26,9 @@ android.enableJetifier=true
2626
2727# Version of flipper SDK to use with React Native
2828FLIPPER_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 =
You can’t perform that action at this time.
0 commit comments