Skip to content

Commit 1f5d478

Browse files
committed
release-apk build successful
Signed-off-by: TBS96 <[email protected]>
1 parent 26e3ba5 commit 1f5d478

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

ReactNativeApp10/android/app/build.gradle

+13-5
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,19 @@ android {
8383
versionName "1.0"
8484
}
8585
signingConfigs {
86-
debug {
87-
storeFile file('debug.keystore')
88-
storePassword 'android'
89-
keyAlias 'androiddebugkey'
90-
keyPassword 'android'
86+
// debug {
87+
// storeFile file('debug.keystore')
88+
// storePassword 'android'
89+
// keyAlias 'androiddebugkey'
90+
// keyPassword 'android'
91+
// }
92+
release {
93+
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
94+
storeFile file(MYAPP_RELEASE_STORE_FILE)
95+
storePassword MYAPP_RELEASE_STORE_PASSWORD
96+
keyAlias MYAPP_RELEASE_KEY_ALIAS
97+
keyPassword MYAPP_RELEASE_KEY_PASSWORD
98+
}
9199
}
92100
}
93101
buildTypes {

ReactNativeApp10/android/gradle.properties

+6
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ newArchEnabled=false
3939
# Use this property to enable or disable the Hermes JS engine.
4040
# If set to false, you will be using JSC instead.
4141
hermesEnabled=true
42+
43+
44+
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
45+
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
46+
MYAPP_RELEASE_STORE_PASSWORD=199619
47+
MYAPP_RELEASE_KEY_PASSWORD=199619

0 commit comments

Comments
 (0)