Skip to content

Commit 2768a93

Browse files
author
Michael Kuczera
committed
example release build android
1 parent 5d7fbc5 commit 2768a93

2 files changed

Lines changed: 13 additions & 7 deletions

File tree

example/android/app/build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ android {
8282
applicationId "com.hapticfeedbackexample"
8383
minSdkVersion rootProject.ext.minSdkVersion
8484
targetSdkVersion rootProject.ext.targetSdkVersion
85-
versionCode 1
86-
versionName "1.0"
85+
versionCode 1001
86+
versionName "1.0.0"
8787
}
8888
signingConfigs {
8989
debug {
@@ -92,15 +92,20 @@ android {
9292
keyAlias 'androiddebugkey'
9393
keyPassword 'android'
9494
}
95+
96+
release {
97+
storeFile file(HAPTIC_FEEDBACK_STORE_FILE)
98+
storePassword HAPTIC_FEEDBACK_STORE_PASSWORD
99+
keyAlias HAPTIC_FEEDBACK_KEY_ALIAS
100+
keyPassword HAPTIC_FEEDBACK_KEY_PASSWORD
101+
}
95102
}
96103
buildTypes {
97104
debug {
98105
signingConfig signingConfigs.debug
99106
}
100107
release {
101-
// Caution! In production, you need to generate your own keystore file.
102-
// see https://reactnative.dev/docs/signed-apk-android.
103-
signingConfig signingConfigs.debug
108+
signingConfig signingConfigs.release
104109
minifyEnabled enableProguardInReleaseBuilds
105110
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
106111
}

example/package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)