diff --git a/CHANGELOG.md b/CHANGELOG.md index c027626..7b1acb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.0-beta.1 +* Handles Android Billing library 5 changes to handle base plan and offer tokens + ## 0.4.0 Chore * Updates Android Billing library version from 4.x to 5.2.1 diff --git a/README.md b/README.md index 362ddcd..58193b2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # Flutter SDK +> [!NOTE] +> #### Updates for Billing Library 5 +> - SDK Version 1.0: This version uses Google Billing Library 5.2.1 APIs to fetch product information from the Google Play Console and make purchases. If you’re integrating Chargebee’s SDK for the first time, then use this version, and if you’re migrating from the older version of SDK to this version, follow the migration steps in this [document](https://www.chargebee.com/docs/2.0/mobile-playstore-billing-library-5.html). +> - SDK Version 0.4.0: This [version](https://github.com/chargebee/chargebee-flutter/tree/master) includes Billing Library 5.2.1 but still uses Billing Library 4.0 APIs to fetch product information from the Google Play Console and make purchases. This will enable you to list or update your Android app on the store without any warnings from Google and give you enough time to migrate to version 2.0. + Chargebee's Flutter SDK enables you to build a seamless and efficient customer experience for your subscription business. Post-installation, initialization, and authentication with the Chargebee site, this SDK will support the following process. @@ -27,7 +32,7 @@ To use Chargebee SDK in your Flutter app, follow these steps: ``` dart dependencies: - chargebee_flutter: ^0.4.0 + chargebee_flutter: ^1.0.0-beta.1 ``` 2. Install dependency. @@ -100,7 +105,7 @@ Pass the `Product` and `CBCustomer` objects to the following function when the ``` dart try { final customer = CBCustomer('customerId','firstName','lastName','emailId'); - final result = await Chargebee.purchaseStoreProduct(product, customer: customer); + final result = await Chargebee.purchaseProduct(product, customer: customer); print("subscription id : ${result.subscriptionId}"); print("subscription status : ${result.status}"); } on PlatformException catch (e) { diff --git a/android/build.gradle b/android/build.gradle index a6ef65c..568e9f0 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.chargebee.flutter.sdk' -version '0.4.0' +version '1.0.0-beta.1' buildscript { ext.kotlin_version = '1.6.0' diff --git a/ios/chargebee_flutter.podspec b/ios/chargebee_flutter.podspec index 916dae0..85f0acb 100644 --- a/ios/chargebee_flutter.podspec +++ b/ios/chargebee_flutter.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'chargebee_flutter' - s.version = '0.4.0' + s.version = '1.0.0-beta.1' s.summary = 'This is the official Software Development Kit (SDK) for Chargebee Flutter.' s.description = <<-DESC A new Flutter plugin. diff --git a/lib/src/models/product.dart b/lib/src/models/product.dart index 426358f..7bb8ae2 100644 --- a/lib/src/models/product.dart +++ b/lib/src/models/product.dart @@ -14,7 +14,7 @@ class Product { /// For Android, the offerToken will be returned. late String? offerToken; - /// title of the product + /// Title of the product late String title; /// Currency code for the price diff --git a/pubspec.yaml b/pubspec.yaml index 0568373..cc2784b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: chargebee_flutter description: This is the official Software Development Kit (SDK) for Chargebee Flutter. -version: 0.4.0 +version: 1.0.0-beta.1 homepage: 'https://chargebee.com' repository: 'https://github.com/chargebee/chargebee-flutter'