Configuring for Android Builds
In order to generate the needed files and publish the wallet to the Google Play Store several configuration steps are needed.
Enable the Android build
We allow white labeling both Android and iOS applications.
In the ../build-config.json file set build-android: true
.
Setup App in Google Play Console
Log in or sign up for a Google Android Developer account
Create your new app (instructions from Google's Help Center)
Setup App in Firebase
Sign up for a Firebase account Note: Android and iOS apps can share the same Firebase account
Register your app as an Android app (instructions from Firebase's Help Center)
Use the same package name that you have defined in the General Setup step.

Go to Project Settings and download the
google-services.json
file

Replace the
google-services.json
file in ../android/app/src/google-services.json
Modify Strings
Update the app_name
setting in ../android/app/src/main/res/values/strings.xml with the name of your app.
Generate Android Certificates
Android requires that all apps be digitally signed with a certificate before they can be installed. In order to distribute your Android application via Google Play store it needs to be signed with a release key that then needs to be used for all future updates.
You can generate the certificate using the commands below.
# Generate the certificate using keytool. You need to have Java JDK installed https://reactnative.dev/docs/signed-apk-android
# IMPORTANT: This is a interactive cli, and will ask you to provide a password to encrypt the certificate
# IMPORTANT: Do not rename the files
# Make sure to save this password, it will be needed later on
sudo keytool -genkey -v -keystore ../android-release.keystore -alias key0 -keyalg RSA -keysize 2048 -validity 10000
This command will replace the ../android-release.keystore
file.
Update the ../packaging.config file using the password created while generating the certificate.
RELEASE_STORE_PASSWORD=
RELEASE_KEY_PASSWORD=
Last updated
Was this helpful?