From d6665434739baeefaef7dac037d0c1bfe3248f99 Mon Sep 17 00:00:00 2001 From: Reid Baker Date: Fri, 19 Apr 2024 11:56:30 -0400 Subject: [PATCH 1/2] Add readme info about user choice billing and alternative billing --- .../in_app_purchase/in_app_purchase_android/CHANGELOG.md | 6 +++++- packages/in_app_purchase/in_app_purchase_android/README.md | 6 ++++++ .../in_app_purchase/in_app_purchase_android/pubspec.yaml | 3 +-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md index 20d700ac410..f5e5680598a 100644 --- a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md @@ -1,6 +1,10 @@ +## 0.3.4+1 + +* Adds documentation for UserChoice and Alternative Billing. + ## 0.3.4 -* Adds `countryCode` API. +* Adds `countryCode` API. ## 0.3.3+1 diff --git a/packages/in_app_purchase/in_app_purchase_android/README.md b/packages/in_app_purchase/in_app_purchase_android/README.md index d49315b41a0..cce9a29a4a7 100644 --- a/packages/in_app_purchase/in_app_purchase_android/README.md +++ b/packages/in_app_purchase/in_app_purchase_android/README.md @@ -11,6 +11,12 @@ so you do not need to add it to your `pubspec.yaml`. However, if you `import` this package to use any of its APIs directly, you should [add it to your `pubspec.yaml` as usual][3]. +## Alternative/UserChoice Billing + +Alternative and UserChoice billing from google play is exposed from this package. Using this feature requires google play app configuration, checking if the feature is available (`isAlternativeBillingOnlyAvailable`) and informing users that google play does not handle all aspects of purchase (`showAlternativeBillingOnlyInformationDialog`). After those calls then you can call `setBillingChoice` and respond when a user attempts a purchase. + +[Google Play documentation for Alternative billing](https://developer.android.com/google/play/billing/alternative) + ## Migrating to 0.3.0 To migrate to version 0.3.0 from 0.2.x, have a look at the [migration guide](migration_guide.md). diff --git a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml index 6950533f1ca..0e711948aef 100644 --- a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml @@ -2,8 +2,7 @@ name: in_app_purchase_android description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs. repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase_android issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22 - -version: 0.3.4 +version: 0.3.4+1 environment: sdk: ^3.1.0 From 6096952fb59ee77e2fbad872653af3ee418218d6 Mon Sep 17 00:00:00 2001 From: Reid Baker Date: Fri, 19 Apr 2024 13:11:56 -0400 Subject: [PATCH 2/2] google play to Google Play --- packages/in_app_purchase/in_app_purchase_android/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/in_app_purchase/in_app_purchase_android/README.md b/packages/in_app_purchase/in_app_purchase_android/README.md index cce9a29a4a7..f5cdbf9e0e9 100644 --- a/packages/in_app_purchase/in_app_purchase_android/README.md +++ b/packages/in_app_purchase/in_app_purchase_android/README.md @@ -13,7 +13,9 @@ should [add it to your `pubspec.yaml` as usual][3]. ## Alternative/UserChoice Billing -Alternative and UserChoice billing from google play is exposed from this package. Using this feature requires google play app configuration, checking if the feature is available (`isAlternativeBillingOnlyAvailable`) and informing users that google play does not handle all aspects of purchase (`showAlternativeBillingOnlyInformationDialog`). After those calls then you can call `setBillingChoice` and respond when a user attempts a purchase. +Alternative and UserChoice billing from Google Play is exposed from this package. + +Using the Alternative billing only feature requires Google Play app configuration, checking if the feature is available (`isAlternativeBillingOnlyAvailable`) and informing users that Google Play does not handle all aspects of purchase (`showAlternativeBillingOnlyInformationDialog`). After those calls then you can call `setBillingChoice` and respond when a user attempts a purchase. [Google Play documentation for Alternative billing](https://developer.android.com/google/play/billing/alternative)