-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[in_app_pur]: Bump com.android.billingclient:billing from 5.2.0 to 6.0.0 in /packages/in_app_purchase/in_app_purchase_android/android #3988
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
Closed
dependabot
wants to merge
7
commits into
main
from
dependabot/gradle/packages/in_app_purchase/in_app_purchase_android/android/com.android.billingclient-billing-6.0.0
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d1d189f
[in_app_pur]: Bump com.android.billingclient:billing
dependabot[bot] 2184ab8
Merge branch 'main' into dependabot/gradle/packages/in_app_purchase/i…
gmackall b31fced
Merge branch 'main' into dependabot/gradle/packages/in_app_purchase/i…
gmackall 7997b5a
Suppress deprecation warnings for BillowFlowParams.ProrationMode
gmackall f3ab19f
Update pubspec.yaml
gmackall 8bdf00b
Update CHANGELOG.md
gmackall fff6bc0
Suppress deprecation warnings for BillowFlowParams.ProrationMode in t…
gmackall File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ | |
import com.android.billingclient.api.BillingClient; | ||
import com.android.billingclient.api.BillingClientStateListener; | ||
import com.android.billingclient.api.BillingFlowParams; | ||
import com.android.billingclient.api.BillingFlowParams.ProrationMode; | ||
import com.android.billingclient.api.BillingResult; | ||
import com.android.billingclient.api.ConsumeParams; | ||
import com.android.billingclient.api.ConsumeResponseListener; | ||
|
@@ -131,6 +130,7 @@ void onDetachedFromActivity() { | |
} | ||
|
||
@Override | ||
@SuppressWarnings(value = "deprecation") | ||
public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result result) { | ||
switch (call.method) { | ||
case MethodNames.IS_READY: | ||
|
@@ -156,7 +156,8 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result | |
(String) call.argument("purchaseToken"), | ||
call.hasArgument("prorationMode") | ||
? (int) call.argument("prorationMode") | ||
: ProrationMode.UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY, | ||
: com.android.billingclient.api.BillingFlowParams.ProrationMode | ||
.UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY, | ||
result); | ||
break; | ||
case MethodNames.QUERY_PURCHASES_ASYNC: | ||
|
@@ -222,6 +223,7 @@ private void queryProductDetailsAsync( | |
}); | ||
} | ||
|
||
@SuppressWarnings(value = "deprecation") | ||
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. Same. |
||
private void launchBillingFlow( | ||
String product, | ||
@Nullable String offerToken, | ||
|
@@ -273,7 +275,9 @@ private void launchBillingFlow( | |
} | ||
|
||
if (oldProduct == null | ||
&& prorationMode != ProrationMode.UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY) { | ||
&& prorationMode | ||
!= com.android.billingclient.api.BillingFlowParams.ProrationMode | ||
.UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY) { | ||
result.error( | ||
"IN_APP_PURCHASE_REQUIRE_OLD_PRODUCT", | ||
"launchBillingFlow failed because oldProduct is null. You must provide a valid oldProduct in order to use a proration mode.", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Generally we extract deprecated code paths to a minimal helper method that we can mark as deprecated, rather than making a whole large method, since the latter will hide future issues.
This also seems like something we should have an issue and TODO for migrating to the new API.