play-billing-library-version-upgrade

Upgrades Play Billing Library projects by planning phased migrations to newer versions.

Updated May 22, 2026
One-click install
npx skills add https://github.com/ekawijayasusilo/kmp_template --skill play-billing-library-version-upgrade-ekawijayasusilo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: play-billing-library-version-upgrade
Source: https://github.com/ekawijayasusilo/kmp_template/tree/main/.claude/skills/play-billing-library-version-upgrade
Command: npx skills add https://github.com/ekawijayasusilo/kmp_template --skill play-billing-library-version-upgrade-ekawijayasusilo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Upgrading an Android app’s Google Play Billing integration can break compilation and runtime purchase flows when legacy Billing APIs and connection/purchase models are deprecated or removed.

Core Features & Use Cases

  • Effective-version discovery: Detects the billing baseline by locating the current dependency and, if builds fail, infers the effective baseline by scanning for deprecated billing artifacts (e.g., SkuDetails usage).
  • Direct or stepped migration planning: Computes a migration path based on major-version distance (direct within two majors; otherwise upgrades two majors at a time).
  • Version-aware execution checklist: For each major jump, derives required code changes from migration guides plus release-note deprecations/breaking changes and then provides a concrete implementation checklist (including connection management, product querying, subscription modernization, purchase querying, and pending/one-time product configuration).

Quick Start

Use the play-billing-library-version-upgrade skill to upgrade your app from its current legacy Play Billing Library version to the latest stable version.

Frequently Asked Questions about play-billing-library-version-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Android in-app purchases from SkuDetails to ProductDetails?

Migrate Android in-app purchases by replacing deprecated SkuDetails-based flows with modern ProductDetails-based async implementations. This process requires querying product details asynchronously, modernizing subscription configurations, and aligning purchase querying with current Google Play Billing policies.

What is the best way to upgrade the Google Play Billing Library across multiple major versions?

Upgrading the Google Play Billing Library across multiple major versions requires a stepped migration plan, progressing two major versions at a time. This approach sequentially applies version-aware execution checklists derived from release notes to prevent compilation breaks before reaching the latest stable PBL.

How do I fix Google Play Billing compilation errors after a dependency upgrade?

Fix Google Play Billing compilation errors after a dependency upgrade by inferring the effective billing baseline. If builds fail, scan the project for deprecated billing artifacts like legacy SkuDetails usage to identify the actual API version and generate a targeted refactoring checklist.

Does the Play Billing Library migration support manual connection management and older purchase querying patterns?

Yes, the Play Billing Library migration explicitly addresses manual billing client reconnection and older purchase querying patterns. It refactors these legacy implementations into modern, async, and policy-compliant connection management and purchase flows required by the latest stable library.

When do I need a stepped migration plan instead of a direct upgrade for Android subscriptions?

A stepped migration plan for Android subscriptions is needed when the major-version distance exceeds two. Instead of a direct upgrade, you sequentially upgrade two majors at a time, applying version-aware checklists and verification routines to ensure subscription modernization remains stable.

What validation routine should I run after completing a Google Play Billing Library version upgrade?

After completing a Google Play Billing Library version upgrade, run a final validation build and test routine. This verifies that the codebase successfully compiles and that the modernized async purchase flows, connection management, and subscription querying operate correctly.