-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[in_app_purchase] Update Play Billing library to 7.1.1 #8218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 25 commits
c23348b
0078d50
ab5e118
2c6f0ee
4312cf7
ce29380
dbc0161
cc9c473
a67edf9
3acbb0f
ac183c4
fbaa88c
a88dfdd
12ba75d
d1d33b0
0234a7c
58a9151
e62c70c
0a926bc
798d305
5c89a99
682bb0e
a9c5677
75b21e9
e630285
dc4425c
b584ff2
e9d8907
faec504
9df2100
16df184
7ab27c7
ae5ccbd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
## 0.4.0 | ||
|
||
* Updates Google Play Billing Library from 6.2.0 to 7.1.1. | ||
* **BREAKING CHANGES**: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we are doing a breaking change, this seems like a good opportunity to rip out all the pre-Pigeon There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds like a good idea, I have one question though. E.g. BillingResponse billingResponseFromPlatformResponseCode(int responseCode) {
return switch (responseCode) {
-3 => BillingResponse.serviceTimeout,
-2 => BillingResponse.featureNotSupported,
-1 => BillingResponse.serviceDisconnected,
0 => BillingResponse.ok,
1 => BillingResponse.userCanceled,
2 => BillingResponse.serviceUnavailable,
3 => BillingResponse.billingUnavailable,
4 => BillingResponse.itemUnavailable,
5 => BillingResponse.developerError,
6 => BillingResponse.error,
7 => BillingResponse.itemAlreadyOwned,
8 => BillingResponse.itemNotOwned,
12 => BillingResponse.networkError,
_ => BillingResponse.error,
};
} That looks a bit sketchy to me though as we have to deal with those hardcoded constants in Dart. Should we perhaps change the definition of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, that's definitely what we want to do. The fact that we are still using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I refactored this and introduced new enums in Pigeon contracts. I also noticed that the representation of https://developer.android.com/reference/com/android/billingclient/api/BillingClient.FeatureType was very outdated so I made it match the current API. As it removes two variants it's another breaking changes, but I think it would be good to include this with those other breaking changes. |
||
* Removes the deprecated `ProrationMode` enum. `ReplacementMode` should be used instead. | ||
* Removes the deprecated `BillingClientWrapper.enablePendingPurchases` method. | ||
* Adds `installmentPlanDetails` to `SubscriptionOfferDetailsWrapper`. | ||
* Adds APIs to support pending transactions for subscription prepaid plans (`PendingPurchasesParams`). | ||
|
||
## 0.3.6+13 | ||
|
||
* Updates androidx.annotation:annotation to 1.9.1. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is worthy of a version bump.