Skip to content

Commit fcdcb64

Browse files
committed
add example app apk
1 parent 822de1b commit fcdcb64

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

example/android/app/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ android {
9393
keyAlias 'androiddebugkey'
9494
keyPassword 'android'
9595
}
96+
release {
97+
storeFile file(MYAPP_UPLOAD_STORE_FILE)
98+
storePassword MYAPP_UPLOAD_STORE_PASSWORD
99+
keyAlias MYAPP_UPLOAD_KEY_ALIAS
100+
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
101+
}
96102
}
97103
buildTypes {
98104
debug {
@@ -101,7 +107,7 @@ android {
101107
release {
102108
// Caution! In production, you need to generate your own keystore file.
103109
// see https://reactnative.dev/docs/signed-apk-android.
104-
signingConfig signingConfigs.debug
110+
signingConfig signingConfigs.release
105111
minifyEnabled enableProguardInReleaseBuilds
106112
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
107113
}
2.71 KB
Binary file not shown.

example/android/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,8 @@ hermesEnabled=true
4242
# This allows your app to draw behind system bars for an immersive UI.
4343
# Note: Only works with ReactActivity and should not be used with custom Activity.
4444
edgeToEdgeEnabled=false
45+
46+
MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
47+
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
48+
MYAPP_UPLOAD_STORE_PASSWORD=password
49+
MYAPP_UPLOAD_KEY_PASSWORD=password

0 commit comments

Comments
 (0)