Shipping an Android app for the first time is a lot of paperwork before you even get to the code.
Internal testing needs its own setup. Closed testing needs another. And production? You need 12 testers opted in for 14 days before Google lets you through. As a solo dev and a proud introvert, finding testers is its own side quest. I've been stuck at 4 testers for a while now, and honestly, I'm fine with it (I'm not fine with it).
And I kept second-guessing everything. Am I violating a policy? Did I fill in that form right? Is this the thing that gets my account flagged? Probably overthinking, but when it's your first app and you're the only person on the team, nobody tells you "you're good."
The part that actually broke me: updates
Here's what nobody warns you about. Testing means bugs, and bugs mean updates. Every single fix goes like this:
- Bump the version
- Rebuild the bundle
- Upload the AAB to Play Console
- Wait
Now add my setup. I work on two computers: one for coding, and one that hosts all my files and builds. So every release looked like: build on one machine, download the AAB, move it to the other, open the browser, upload. Again. And again. For every tiny bug fix.
At some point I asked myself: why am I doing this by hand? Why can't I just type one command and have it land in Play Console?
How I found fastlane
I searched for a way to upload my AAB to Play Console straight from the terminal, and fastlane was what came up. The name made sense, the docs were easy to follow, and fastlane supply does what it says. So I tried it, it worked, and I never looked back.
It was only before writing this article that I found out there are other ways to do the same thing:
- Gradle Play Publisher: a Gradle plugin, so you stay inside your Android build.
- GitHub Actions: upload from CI instead of your own machine.
I haven't tried either, so I can't tell you which is better. Fastlane is the one I know, and it fits my Makefile setup. If you're starting fresh, it's worth a quick look at all three before you pick.
The setup (one time only)
- Enable the Google Play Android Developer API in Google Cloud Console.
- Create a service account for your project and download its JSON key.
- Invite that service account to Play Console. Yes, it's the service account's email address. Add it under Users and permissions, and give it access to your app.
- Install fastlane and point it at the JSON key. You pass the key path straight to the command, so you don't even need a Fastfile.
Two warnings from experience:
- Keep that JSON key out of git. It's basically a password.
- Your first release still has to be uploaded manually in Play Console. The API only takes over after the app exists. Do that once, then automate everything after.
The payoff
This is the whole setup, a few variables and one Makefile target:
APP_ID := sportscore.humfurie.com
AAB := app/build/outputs/bundle/release/app-release.aab
PLAY_KEY ?= $(HOME)/.config/play/sportscore.json
TRACK ?= alpha
RELEASE_STATUS ?= completed
upload:
@test -f "$(AAB)" || { echo "No AAB found. Run: make bundle"; exit 1; }
@test -f "$(PLAY_KEY)" || { echo "Missing Play service-account key: $(PLAY_KEY)"; exit 1; }
fastlane supply --aab $(AAB) --track $(TRACK) --release_status $(RELEASE_STATUS) --package_name $(APP_ID) --json_key $(PLAY_KEY) \
--skip_upload_metadata --skip_upload_images --skip_upload_changelogs --skip_upload_screenshots
A few things I like about this setup:
- The key lives outside the project. It sits in
~/.config/play/, so I can't commit it by accident. - Guard rails. If I forgot to build the bundle or the key is missing, it tells me what to do instead of failing with a confusing fastlane error.
- It only touches the AAB. The
--skip_upload_*flags keep fastlane away from my store listing. ?=makes it overridable. Need a different track?make upload TRACK=internaldoes it, no editing needed.
A quick note on track names: internal is internal testing, alpha is closed testing, beta is open testing, and production is production.
Now my whole release flow is: bump the version, make bundle, make upload. Done. No download, no browser tab, no copying files between machines. The upload happens straight from the terminal on whichever computer built it.
Worth it?
Absolutely. Setup is a one-time job, and every release since has been a single command. If you're shipping lots of small fixes to a handful of testers like I am, those saved minutes add up fast.
And speaking of testers: I'm still hunting for my last 8. Do you want to be a tester too? It would really help me out. Message me at humfurie.com and I'll get you set up. If you're an Android dev, I'm happy to test your app in return.