Skip to content

v2.0.0-alpha01

Choose a tag to compare

@i2hammad i2hammad released this 08 Jul 17:03
· 118 commits to main since this release

AdManageKit Release Notes

Version 2.0.0-alpha01 (Beta)

Released: July 8, 2025

What's New

  • Google Play Billing Library Upgraded to Version 8:
    • Updated the ad-manage-kit-billing module to use Google Play Billing Library version 8, introducing support for PendingPurchasesParams and enableAutoServiceReconnection for improved reliability.
    • Enhanced AppPurchase class with thread-safe billing connection management using AtomicBoolean.
    • Unified product details management with a single productDetailsMap for both in-app purchases and subscriptions, improving performance and consistency.
    • Improved error handling and purchase flow for in-app purchases and subscriptions, with detailed logging and listener notifications.
    • Added support for subscription offer tokens and one-time purchase offer details, ensuring compatibility with the latest billing APIs.
  • New Billing Methods:
    • Added queryProductDetails to fetch product details for in-app and subscription products.
    • Enhanced purchase and subscribe methods to support both in-app and subscription purchases with debug mode simulation using PurchaseDevBottomSheet.
    • Added getPrice, getPriceSub, getPricePricingPhaseList, getIntroductorySubPrice, getCurrency, and getPriceWithoutCurrency for flexible price handling.
    • Introduced setDiscount and getDiscount for managing discount values.
    • Added verifyPurchased and updatePurchaseStatus for robust purchase verification and status updates.
  • Debug Mode Enhancements:
    • Retained PurchaseDevBottomSheet for simulating purchases and subscriptions in debug mode.
    • Added test product (android.test.purchased) automatically in debug mode for easier testing.
  • Breaking Changes:
    • Deprecated initBilling(Application, List<String>, List<String>), purchase(Activity), and getPrice() to align with modern billing practices. Use initBilling(Application, List<PurchaseItem>), purchase(Activity, String), and getPrice(String) instead.
    • Removed unused fields (K, L, q, s, t, w, x, y, z, A) from AppPurchase to simplify the codebase.
  • Known Issues:
    • PurchaseDevBottomSheet requires verification for compatibility with Billing Library version 8.
    • Limited testing in production environments; beta testers are encouraged to report issues.

Upgrade Instructions

  • Update your build.gradle to include the beta version:
    implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit:2.0.0-alpha01'
    implementation 'com.github.i2hammad.AdManageKit:ad-manage-kit-billing:2.0.0-alpha01'
    

Full Changelog: v1.3.2...v2.0.0-alpha01