play-billing-library-version-upgrade

Automate Android project migration to the latest Google Play Billing Library.

28|5|Updated Oct 8, 2024
One-click install
npx skills add https://github.com/kabirnayeem99/Ktor2Curl --skill play-billing-library-version-upgrade-kabirnayeem99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: play-billing-library-version-upgrade
Source: https://github.com/kabirnayeem99/Ktor2Curl/tree/main/.agents/skills/play-billing-library-version-upgrade
Command: npx skills add https://github.com/kabirnayeem99/Ktor2Curl --skill play-billing-library-version-upgrade-kabirnayeem99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill automates the complex, multi-step migration process required when upgrading Android projects to the latest Google Play Billing Library (PBL) versions, preventing common integration errors and build failures.

Core Features & Use Cases

  • Migration Path Calculation: Automatically determines whether a direct or stepped migration is required based on your current library version.
  • Code Refactoring: Provides a structured checklist and logic for replacing deprecated APIs like SkuDetails with ProductDetails.
  • Compliance Verification: Ensures your project meets the latest SDK requirements, such as compileSdk 35 and mandatory auto-reconnection patterns.

Quick Start

Use the play-billing-library-version-upgrade skill to analyze my current project dependencies and generate a migration plan 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 my Android project to the latest Google Play Billing Library?

Migrating legacy Google Play Billing Library versions requires analyzing build configurations to determine whether a direct or stepped migration is needed, then refactoring deprecated APIs like SkuDetails into ProductDetails and enforcing mandatory auto-reconnection patterns for compliance.

What is the difference between direct and stepped Play Billing migration?

Direct Play Billing migration applies when moving straight to the latest stable release is safe, whereas stepped migration incrementally upgrades through intermediate library versions to resolve deprecated APIs and ensure current SDK compliance.

How do I replace deprecated SkuDetails with ProductDetails in Android Kotlin?

Replacing deprecated SkuDetails with ProductDetails in Android Kotlin requires refactoring source code to use modern billing patterns, shifting to product-based querying to maintain compatibility with the latest Play Billing Library.

Does upgrading the Play Billing Library require compileSdk 35?

Yes, upgrading the Play Billing Library requires compileSdk 35 to meet the latest SDK compliance requirements, ensuring your Android project supports mandatory modern billing patterns like auto-reconnection.

Why does my Play Billing build fail after updating Gradle dependencies?

Your Play Billing build fails after updating Gradle dependencies because legacy source code likely contains deprecated APIs that violate current SDK requirements, requiring an upgrade path calculation and refactoring to modern product-based querying patterns.

What's the best way to automate Android Play Billing migration?

The best way to automate Android Play Billing migration is to use a structured tool that analyzes existing Gradle build configurations and source code to generate a refactoring checklist, calculate the necessary upgrade path, and verify compliance with current SDK requirements.