MobileAndroid
Signing Key
Create Signing Keystore
Using keygen
change [APPNAME] and [APP_ALIAS] according to your needs
Using Android Studio (recommended)
- Open your android project
- Go to
Build > Generate Signed Bundle or APK
. - Choose either App Bundle or APK, click next.
- When asked for key store path, click
Create new...
button. - Follow along the instructions.
Manage and using the Signing Key
- Create
*.properties
file (secret.properties
orkeystore.properties
) containing the keystore credentials (inandroid
folder if you are using ionic or flutter):
Variable name (
keystorePassword
,keyAlias
,keyPassword
) doesn't have to be the same as above, this is just example. Don't forget to exclude this file using.gitignore
- Open the module's
build.gradle
: located inapp/build.gradle
(orandroid/app/build.gradle
for ionic or flutter), then load our previously created properties
- Add
signingConfigs
to refer the signing information stored inkeystoreProperties
-
Open Build Variants (usually in the left side of the Android studio window) and ensure the selected flavor is correct.
-
Select
Build > Build bundle(s) / APK(s)
References
- https://developer.android.com/studio/publish/app-signing
- https://coderwall.com/p/zrdsmq/signing-configs-with-gradle-android
Personal Examples
- ragambudaya (ionic)
- kapturalumina (ionic)
build.gradle
file