Ns android beta

From Melvynx/saveit.now · View interactive version

Ns android beta is an AI agent skill from the GitHub repository Melvynx/saveit.now. Build a NowStack Mobile Android app and upload it to a Play testing track. Always check OS first: macOS may build locally; Windows/Linux must run ns-setup-expo and use EAS cloud.

How to use this skill

Skill file

Android Beta - NowStack Mobile

Take a NowStack Mobile app from local dev to an installable build on a Play testing track (internal first, then closed). This is the Android beta surface — the equivalent of iOS TestFlight. For the production release (promote to the production track + listing + staged rollout) use ns-android-distribute. The deep Google Play Console (gpc) tool reference is .agents/skills/ns-deploy-android-app/SKILL.md — read it for the upload/track commands. Run the steps here in order.

<platform_build_routing>

Before choosing a build command, detect the OS:

uname -s || node -p "process.platform"

</platform_build_routing>

<prerequisites>

Ask once, as a group (the agent cannot create these):

  1. Google Play Developer account (one-time $25, verified).
  2. A Play Console app for the package name in site-config.ts > androidPackage.
  3. A Play service-account JSON with the Google Play Developer API enabled (for gpc/fastlane upload).
  4. Expo account logged in and linked (npx eas-cli@latest whoami, real easProjectId) if building with EAS, and always on Windows/Linux.

</prerequisites>

<step n="1" title="Preflight">

npm run check-setup          # easProjectId must be real (Android builds need EAS too)
cd mobile-app && npx tsc --noEmit && npm run lint
uname -s || node -p "process.platform"

Confirm site-config.ts: androidPackage, payment.productIds.google, version. Package name is permanent once the Play listing exists.

</step>

<step n="2" title="Convex production + eas.json">

Same prod backend as iOS — if ns-ios-testflight already wired prod Convex + eas.json, reuse it. Otherwise follow docs/production-checklist.md stage 1, and ensure mobile-app/eas.json > build.production.env has the prod Convex URLs (the build bakes them in).

</step>

<step n="3" title="Build a signed AAB">

On Windows/Linux, first complete ns-setup-expo, then run the EAS cloud build:

cd mobile-app
npx eas-cli@latest build --platform android --profile production --non-interactive

On macOS, local builds are allowed when the Android SDK/toolchain is ready. Prefer the repo's local EAS build when avoiding cloud credits but still using EAS-managed Android signing:

cd mobile-app
npx eas-cli@latest build --platform android --profile production \
  --local --non-interactive --output /tmp/{slug}.aab

EAS manages the Android keystore (first build prompts to generate one; let EAS keep it). Download the .aab artifact when a cloud build reaches FINISHED, or use the explicit /tmp/{slug}.aab path from the local build. Do not use local Gradle production builds on Windows/Linux for this workflow.

</step>

<step n="4" title="In-app product (if the app sells anything)">

Create the managed product / subscription in Play Console with the EXACT id from site-config.ts > payment.productIds.google. Activate it before submitting, or purchases fail review.

</step>

<step n="5" title="Upload to the internal track">

Use gpc (see ns-deploy-android-app): authenticate with the service account, gpc preflight / gpc validate, then upload the .aab to the internal track for testing:

gpc preflight "{aab_path}" --fail-on error
gpc publish "{aab_path}" --track internal --validate-only   # dry run first
gpc releases upload "{aab_path}" --track internal
gpc status

Always validate before a real upload. Stop here — promoting beyond internal (closed/production) is ns-android-distribute's job.

</step>

<step n="6" title="Test the build">

Add testers to the internal track in Play Console, install via the opt-in link, and verify the app reaches the prod Convex backend and the purchase flow works. When the build is verified, you're ready for ns-android-distribute (production listing, metadata, review, staged rollout).

</step>

<failure_modes>

</failure_modes>

<success_metrics>

</success_metrics>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.