CONFIGURATION GUIDE
Configuring Android App Distribution
It's time for you to set up your Android app distribution pipeline. You'll configure the necessary credentials to publish your apps to the Google Play Store.
New to Google Play Console?
If you haven't set up your Google Play Console account yet:
- Visit play.google.com/console/signup
- Sign in with your Google account
- Accept the developer agreement
- Pay the one-time registration fee ($25)
- Complete your account details:
- Developer name (public)
- Contact information
- Address details
Setting Up Android Code Signing
Tutorial Video
Video recording in progress. Available soon.
Every Android app needs a digital signature - think of it as your app's unique fingerprint that verifies its authenticity to the Play Store. We'll create a new one and add it to Codemagic.
Understanding Android Code Signing
How Android App Signing Works
Google Play Store uses a two-key signing system to ensure your app's security:
Upload Key
- This is the key you create and manage
- Used to sign your app before uploading to Google Play
- What we'll be creating in the next step
App Signing Key
- Managed by Google Play through Play App Signing
- Used to sign the final APK distributed to users
- Adds an extra layer of security
Code signing verifies your app's authenticity and ensures it hasn't been tampered with after publishing. This protection is crucial for both your users' security and your app's integrity.
For more details, you can refer to the official Flutter documentation on signing Android apps.
Creating Your Keystore
To generate a keystore, you'll need to use Java's Keytool utility from the command line.
This command will ask you to enter your details and set up passwords for both the keystore and the key.
It will create a keystore file named codemagic_your_team_name.keystore
valid for 10,000 days.
keytool -genkey -v -keystore codemagic_your_team_name.keystore -storetype JKS \
-keyalg RSA -keysize 2048 -validity 10000 -alias codemagic_your_team_name
Adding Your Keystore to Codemagic
Let's securely store your keystore in Codemagic:
- Open your Codemagic Team settings
- Navigate to Code signing identities
- Select the Android keystores tab
- Upload your keystore file (drag and drop or choose file)
- Enter the required credentials:
- Keystore password
- Key alias
- Key password
- For the reference name, enter
Android Keystore (YOUR_CODEMAGICTEAM)
orAndroid Keystore (Personal Account)
if you are using your personal account. - Click Add keystore to save
Enable Automatic Google Play Publishing
In order for Codika to create the necessary service accounts to automate Play Store publishing, we need access to a Google Cloud project.
If you plan to use Firebase as a backend in your apps, we'll use that same Firebase project to manage your service accounts. No extra setup is required now.
However, if you're not using Firebase as backend we recommend creating a single Firebase project dedicated to manage service accounts for publishing to the Play Store.
You'll only need to create this project once, and it will be reused across all your apps. To setup a default Firebase project for Codika to manage your service accounts, run:
codika configure default-gcp
This will launch an interactive prompt. You'll have the option to create a new Firebase project or link an existing one.
? How do you want to set up your default GCP project?
❯ ◉ Create new Firebase project
◯ Link existing Firebase project
The project id will be stored in your CLI config.
What's Next?
Perfect! Your Android signing credentials are now set up. Let's move on to configuring Shorebird for live app updates.