Skip to content

v1.1.0: Google Play Billing Library Check & Status Gates on Cached Data

Choose a tag to compare

@yasserstudio yasserstudio released this 13 Nov 14:38
· 30 commits to main since this release

What's Changed

  • feat: gpc preflight checks the Google Play Billing Library version. When an app holds com.android.vending.BILLING, preflight reads the library version from the manifest and rates it against Google's deprecation deadlines on the day of the scan: error after the extension deadline, warning after the update deadline, info in the 12 months before it. Google Play stopped accepting new apps and updates on Billing Library 7 after its November 1, 2026 extension deadline, so an AAB on 7 or older now fails the default failOn: "error"; the fix is to move to Billing Library 8 or later. A pipeline that never uploads to Google Play can turn the check off with "disabledRules": ["billing-library-deprecated"]. A billing app whose version cannot be read gets a billing-library-version-unknown info finding. AAB only.
  • feat: new policy-local-network-declaration preflight advisory. An app targeting Android 17 (API 37) or higher that requests ACCESS_LOCAL_NETWORK is reminded that Google Play requires a Play Console declaration for it from August 25, 2027.
  • feat: the API client types RegionalTaxRateInfo.eligibleForStreamingServiceTaxRate, added by Google in October 2026.
  • fix: gpc status rates a cached status against the thresholds of the current run. A cached status kept the thresholds of the run that fetched it, so --threshold and config vitals.thresholds were ignored until the cache entry expired, and a loose threshold from an earlier run could let a later CI gate pass.
  • fix: gpc status gates no longer pass on data that cannot answer them. A fresh cache is reused only when it holds every requested section for the same --days and --review-days windows and recorded no errors; otherwise the run fetches live, and --cached fails with STATUS_NO_CACHE (exit 2). --ttl now always decides freshness, where a longer TTL saved by an earlier run used to win, and a --ttl that is not a number (such as an unset CI variable) exits 2. With a threshold set, vitals that cannot be read exit 4 (STATUS_VITALS_UNREADABLE) instead of 0. gpc status --all-apps exits with the failing app's error code when an app fails, instead of 0.
  • fix: gpc status rejects a rate threshold that can never fire, as the docs already promised: a config rate of 1 or more, negative, blank or not a number, or a --threshold of 100 percent or more, exits with THRESHOLD_INVALID (exit 2) before any API call instead of leaving the gate open.
  • fix: gpc apps info --app <package> shows that app instead of the profile's app. A malformed package name is rejected with INVALID_PACKAGE_NAME.
  • docs: gpc status --threshold help and docs say its values are percent, unlike config thresholds, which are fractions. The gpc status exit code table is corrected.

CI impact: an AAB built on Google Play Billing Library 7 or older now fails gpc preflight with the default failOn: "error". Move to Billing Library 8 or later, or turn the check off with "disabledRules": ["billing-library-deprecated"] if the pipeline never uploads to Google Play.

Full Changelog: v1.0.1...v1.1.0