Menu

5 checks I put in front of every Capacitor release build (so a bad AAB never reaches Google Play)
πŸ“°

5 checks I put in front of every Capacitor release build (so a bad AAB never reaches Google Play)

DEV Community: capacitorΒ·Snuglab DevΒ·18 days ago
#BKU16cCP
#devtocapacitor#devto#dev#build#android
Long article (928 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Wrapping a web app with Capacitor takes an afternoon. Getting a correct signed bundle onto Google Play takes longer, mostly because the expensive mistakes happen after the code works: a build with last week's web files, a versionCode you already used, an app ID you can never change.

Each of those costs a Play Console round trip, and for new personal accounts every wasted upload also eats into the closed-test window (12 testers opted in for 14 days; check your own Console for current numbers). So I put the checks in code, in front of the release build, instead of relying on memory.

This is what each check does and why. Everything below is plain Node and Gradle, no framework. The snippets come from the scripts I use; I've only tested them on macOS (Node 24, JDK 21, Capacitor 8), so treat Windows/Linux as untested.

1. Never build Android from stale web files

./gradlew bundleRelease packages whatever is currently inside android/app/src/main/assets/public .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.