skills/gplay-submission-checks/SKILL.md
Pre-submission validation for Google Play releases covering metadata, screenshots, bundle integrity, data safety, and policy compliance. Use when preparing a release to avoid rejections and catch issues before submitting.
npx skillsauth add tamtom/gplay-cli-skills gplay-submission-checksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to validate everything before submitting a release to Google Play, reducing rejections and failed edits.
gplay auth login or GPLAY_SERVICE_ACCOUNT env var).--package or GPLAY_PACKAGE).gplay validate bundle --file app-release.aab
Checks:
.aab extensionIf using APK instead:
gplay validate bundle --file app-release.apk
gplay validate listing --dir ./metadata
Checks:
Validate a specific locale:
gplay validate listing --dir ./metadata --locale en-US
For JSON format metadata:
gplay validate listing --dir ./metadata --format json
gplay validate screenshots --dir ./metadata
Checks:
Validate for a specific locale:
gplay validate screenshots --dir ./metadata --locale en-US
Compare local metadata against what is live:
gplay sync diff-listings \
--package com.example.app \
--dir ./metadata
Check all configured locales:
EDIT_ID=$(gplay edits create --package com.example.app | jq -r '.id')
gplay listings list --package com.example.app --edit $EDIT_ID --output table
Ensure the data safety form is complete. Missing or inaccurate data safety declarations are a common rejection reason.
gplay data-safety update \
--package com.example.app \
--json @data-safety.json
The version code must be strictly higher than all previous releases on every track. Check current track status:
gplay tracks list --package com.example.app --output table
Get details for a specific track:
EDIT_ID=$(gplay edits create --package com.example.app | jq -r '.id')
gplay tracks get --package com.example.app --edit $EDIT_ID --track production --output table
Upload ProGuard/R8 mapping files so crash reports in Play Console are readable:
gplay deobfuscation upload \
--package com.example.app \
--version-code 42 \
--file mapping.txt
Without mapping files, crash stack traces in Android Vitals will be obfuscated and unusable.
The safest pre-submission check. Performs the full release pipeline without committing:
gplay release \
--package com.example.app \
--track production \
--bundle app-release.aab \
--release-notes @release-notes.json \
--dry-run
This will:
If the dry run succeeds, the real release will succeed.
When using the manual edit workflow, always validate before committing:
EDIT_ID=$(gplay edits create --package com.example.app | jq -r '.id')
# ... upload bundle, update tracks, etc. ...
# Validate the edit (catches all server-side issues)
gplay edits validate --package com.example.app --edit $EDIT_ID
# Only commit if validation passes
gplay edits commit --package com.example.app --edit $EDIT_ID
Google Play requires apps to target a recent Android API level. As of 2025:
Check your build.gradle or build.gradle.kts:
android {
defaultConfig {
targetSdkVersion 34 // or targetSdk = 34
}
}
Builds targeting older API levels will be rejected by the Play Console.
Sensitive permissions require justification in the Play Console:
ACCESS_FINE_LOCATION / ACCESS_BACKGROUND_LOCATIONREAD_CONTACTS, READ_CALL_LOG, READ_SMSCAMERA, RECORD_AUDIOREQUEST_INSTALL_PACKAGESQUERY_ALL_PACKAGESRemove any permissions your app does not actually need. Unused sensitive permissions are a top rejection reason.
All apps must have a complete data safety section. Common data types to declare:
Ensure your content rating questionnaire is completed in Play Console. Missing ratings block distribution.
| Device Type | Image Type | Min | Max | Min Resolution |
|-------------|-----------|-----|-----|----------------|
| Phone | phoneScreenshots | 2 | 8 | 320px (min side) |
| 7-inch Tablet | sevenInchScreenshots | 0 | 8 | 320px (min side) |
| 10-inch Tablet | tenInchScreenshots | 0 | 8 | 320px (min side) |
| Android TV | tvScreenshots | 0 | 8 | 1280x720 |
| Wear OS | wearScreenshots | 0 | 8 | 320px (min side) |
Additional image assets:
| Asset | Type | Required |
|-------|------|----------|
| Feature Graphic | featureGraphic | Yes (for featuring) |
| Promo Graphic | promoGraphic | No |
| Icon | icon | Set via Play Console |
| TV Banner | tvBanner | Required for TV apps |
Cause: The version code in your bundle matches an existing release.
Fix: Increment versionCode in build.gradle and rebuild.
Cause: targetSdkVersion is too low.
Fix: Update targetSdkVersion to 34 or higher and rebuild.
Cause: The data safety declaration is missing or incomplete. Fix: Complete the data safety form in Play Console or update via CLI:
gplay data-safety update --package com.example.app --json @data-safety.json
Cause: Phone screenshots are required for all apps. Fix: Add at least 2 phone screenshots:
EDIT_ID=$(gplay edits create --package com.example.app | jq -r '.id')
gplay images upload \
--package com.example.app \
--edit $EDIT_ID \
--locale en-US \
--type phoneScreenshots \
--file screenshot1.png
Cause: No "What's New" text for the default language. Fix: Include release notes in the release command:
gplay release \
--package com.example.app \
--track production \
--bundle app.aab \
--release-notes '{"en-US": "Bug fixes and improvements"}'
Cause: The bundle is signed with a different key than what Play Console expects. Fix: Use the same upload key configured in Play App Signing. Check your keystore configuration.
Cause: Mapping file exceeds 300 MB limit. Fix: Strip unused mappings or compress the file.
Google Play runs automated tests on your app before review (pre-launch report). Common issues surfaced:
Check pre-launch reports in Play Console after uploading to any track. Address critical issues before promoting to production.
#!/bin/bash
# pre-submission-checks.sh
PACKAGE="com.example.app"
BUNDLE="app-release.aab"
METADATA_DIR="./metadata"
RELEASE_NOTES="release-notes.json"
MAPPING="app/build/outputs/mapping/release/mapping.txt"
echo "=== Step 1: Validate bundle ==="
gplay validate bundle --file "$BUNDLE" --output table
echo "=== Step 2: Validate listings ==="
gplay validate listing --dir "$METADATA_DIR" --output table
echo "=== Step 3: Validate screenshots ==="
gplay validate screenshots --dir "$METADATA_DIR" --output table
echo "=== Step 4: Diff listings against Play Store ==="
gplay sync diff-listings --package "$PACKAGE" --dir "$METADATA_DIR" --output table
echo "=== Step 5: Dry run release ==="
gplay release \
--package "$PACKAGE" \
--track production \
--bundle "$BUNDLE" \
--release-notes "@$RELEASE_NOTES" \
--listings-dir "$METADATA_DIR" \
--screenshots-dir "$METADATA_DIR" \
--dry-run \
--output table
echo "=== Step 6: Upload mapping file ==="
gplay deobfuscation upload \
--package "$PACKAGE" \
--version-code 42 \
--file "$MAPPING"
echo "=== All checks passed. Ready to release. ==="
Add these checks to your CI pipeline to catch issues before they reach Play Console:
# GitHub Actions example
- name: Validate bundle
run: gplay validate bundle --file app/build/outputs/bundle/release/app-release.aab
- name: Validate metadata
run: gplay validate listing --dir metadata/
- name: Validate screenshots
run: gplay validate screenshots --dir metadata/
- name: Dry run release
run: |
gplay release \
--package ${{ secrets.PACKAGE_NAME }} \
--track internal \
--bundle app/build/outputs/bundle/release/app-release.aab \
--dry-run
env:
GPLAY_SERVICE_ACCOUNT: ${{ secrets.GPLAY_SERVICE_ACCOUNT_PATH }}
gplay validate commands before attempting a release.--dry-run as the final gate before real releases.--help before running commands.--output table for human-readable validation output.gplay validate commands run locally and do not require API calls.gplay release --dry-run creates a real edit session but discards it after validation.gplay edits validate is the server-side equivalent, catching issues that local validation cannot.--help to verify flags for the exact command.--output table for human-readable output; default is JSON.development
App vitals monitoring for crashes, ANRs, performance metrics, and errors via gplay vitals commands. Use when asked to check app stability, crash rates, ANR rates, or performance data from Google Play Console.
development
User and grant management for Google Play Console via gplay users and gplay grants commands. Use when asked to manage developer account users, permissions, or app-level access grants.
development
Beta testing groups and tester management for Google Play closed testing tracks. Use when managing testers and beta groups.
tools
Bulk-localize subscription display names, descriptions, and offer tags across all Google Play locales using gplay. Use when you want to fill in subscription metadata for every language without clicking through Play Console manually.