-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[in_app_purchase] Deprecated the InAppPurchaseAndroidPlatformAddition.enablePendingPurchases
method.
#4527
[in_app_purchase] Deprecated the InAppPurchaseAndroidPlatformAddition.enablePendingPurchases
method.
#4527
Conversation
b94cc98
to
a8de4c5
Compare
static bool _enablePendingPurchase = false; | ||
@Deprecated( | ||
'The requirement to call `enablePendingPurchases()` has become obsolete since Google Play no longer accepts app submissions that don\'t support pending purchases.') | ||
static bool get enablePendingPurchase => true; |
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 wasn't entirely sure about this update (always returning true
instead of returning the _enablePendingPurchase
variable). However I decided to do the update like this to prevent false expectations where people might think pending purchases are not enabled (because they never called enablePendingPurchases()
).
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.
This makes sense to me.
Deprecates the `InAppPurchaseAndroidPlatformAddition.enablePendingPurchases` method and the `InAppPurchaseAndroidPlatformAddition.enablePendingPurchase` property.
a8de4c5
to
7b296e4
Compare
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.
LGTM with nits, but @cyanglaz should probably review too.
...purchase/in_app_purchase_android/lib/src/billing_client_wrappers/billing_client_wrapper.dart
Outdated
Show resolved
Hide resolved
static bool _enablePendingPurchase = false; | ||
@Deprecated( | ||
'The requirement to call `enablePendingPurchases()` has become obsolete since Google Play no longer accepts app submissions that don\'t support pending purchases.') | ||
static bool get enablePendingPurchase => true; |
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.
This makes sense to me.
..._app_purchase/in_app_purchase_android/lib/src/in_app_purchase_android_platform_addition.dart
Outdated
Show resolved
Hide resolved
..._app_purchase/in_app_purchase_android/lib/src/in_app_purchase_android_platform_addition.dart
Outdated
Show resolved
Hide resolved
0d130ca
to
efffbb8
Compare
@cyanglaz I have resolved nits mentioned by @stuartmorgan could you please have a look at this PR? |
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.
LGTM
…mAddition.enablePendingPurchases` method. (flutter/plugins#4527)
…urchaseAndroidPlatformAddition.enablePendingPurchases ` method (#4597) This will resolve flutter/flutter#93837 & this work is just the follow-up from #4527 PR. We need to update the documentation in the README.md of the in_app_purchase package to remove the instruction of initialization with the deprecated `InAppPurchaseAndroidPlatformAddition.enablePendingPurchases` method. Fixes flutter/flutter#94977
…n.enablePendingPurchases` method. (flutter#4527)
…urchaseAndroidPlatformAddition.enablePendingPurchases ` method (flutter#4597) This will resolve flutter/flutter#93837 & this work is just the follow-up from flutter#4527 PR. We need to update the documentation in the README.md of the in_app_purchase package to remove the instruction of initialization with the deprecated `InAppPurchaseAndroidPlatformAddition.enablePendingPurchases` method. Fixes flutter/flutter#94977
…n.enablePendingPurchases` method. (flutter#4527)
…urchaseAndroidPlatformAddition.enablePendingPurchases ` method (flutter#4597) This will resolve flutter/flutter#93837 & this work is just the follow-up from flutter#4527 PR. We need to update the documentation in the README.md of the in_app_purchase package to remove the instruction of initialization with the deprecated `InAppPurchaseAndroidPlatformAddition.enablePendingPurchases` method. Fixes flutter/flutter#94977
Deprecates the
InAppPurchaseAndroidPlatformAddition.enablePendingPurchases
method and theInAppPurchaseAndroidPlatformAddition.enablePendingPurchase
property.An additional PR will follow to update the documentation in the README.md of the in_app_purchase package as this needs to be released separately.
Resolves flutter/flutter#93837
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.