This release syncs with OpenIAP v1.3.17, adding new types for Google Play Billing Library 5.0+ and 7.0+ features.
7 posts tagged with "android"
View All Tags1.3.4 - One-Time Purchase Discounts & Simplified Field Names
This release syncs with OpenIAP gql v1.3.15 / google v1.3.26 / apple v1.3.13.
1.3.2 - Android Product Status Codes & Type Updates
This release syncs with OpenIAP gql v1.3.14 / google v1.3.25 / apple v1.3.13.
1.2.0 - Billing Programs API & One-Time Product Discounts
KMP-IAP 1.2.0 brings Google Play Billing Library 8.2.0 features including the new Billing Programs API for external billing and one-time product discount support from Billing Library 7.0+.
1.0.0-rc.4 - OpenIAP Monorepo Conversion & Alternative Billing
KMP-IAP 1.0.0-rc.4 marks a major milestone with the OpenIAP monorepo conversion and introduces Alternative Billing support for both iOS and Android platforms.
1.0.0-beta - Comprehensive API Enhancements & OpenIAP Compliance
We're thrilled to announce the most comprehensive update to KMP-IAP yet! Version 1.0.0-beta brings complete platform parity, 100% compliance with the OpenIAP specification, improved naming conventions, and extensive field additions for both Android and iOS platforms.
Initial Release - StoreKit 2 and Google Play Billing Library Support
kmp-iap Initial Release 🎉
We're excited to announce the first release of kmp-iap, a unified in-app purchase library for Kotlin Multiplatform!
Key Features
🍎 iOS - Full StoreKit 2 Support
- Complete support for Apple's latest StoreKit 2 framework
- Enhanced purchase verification and transaction management
- Improved subscription status tracking
- Leverages modern Swift async/await patterns
🤖 Android - Google Play Billing Library 7.1.1 Support
Supporting Google Play Billing Library 7.1.1 with comprehensive features:
- Product Details API: Modern API for querying product information
- Subscription offers: Support for multiple subscription offers and pricing phases
- Pending purchases: Full support for pending transactions
- Error handling: Detailed error codes and debugging information
- Purchase verification: Secure purchase token verification
🎯 Unified API
- Same API for in-app purchases on both iOS and Android
- Reactive programming with Kotlin Coroutines and Flow
- Type-safe Kotlin native implementation
Getting Started
// Initialize
KmpIAP.initConnection()
// Load products
val products = KmpIAP.requestProducts(
ProductRequest(
skus = listOf("product_id"),
type = ProductType.INAPP
)
)
// Request purchase
KmpIAP.requestPurchase(
UnifiedPurchaseRequest(
sku = "product_id",
quantity = 1
)
)
// Observe purchase state
KmpIAP.purchaseUpdatedListener.collect { purchase ->
// Handle purchase
}
Next Steps
We'll continue to improve the library and add new features. Your feedback and contributions are welcome!
