Repository navigation
[in_app_purchase_storekit] Add SK2Transaction.currentEntitlements() - #13373
Merged
auto-submit[bot] merged 2 commits intoOct 30, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds the SK2Transaction.currentEntitlements() method to the in_app_purchase_storekit package, allowing clients to query active subscriptions and non-consumable entitlements. The implementation wraps StoreKit 2's Transaction.currentEntitlements on the Swift side, exposes it via Pigeon, and adds the corresponding Dart wrapper. Additionally, the changes include fake platform updates and new unit tests to verify the functionality. There are no review comments, and I have no feedback to provide.
Member
|
I think this also fixes flutter/flutter#118960 |
LongCatIsLooong
approved these changes
Oct 30, 2026
chunhtai
pushed a commit
to chunhtai/flutter
that referenced
this pull request
Nov 2, 2026
flutter/packages@3742a4e...3f34a6f 2026-11-01 [email protected] Roll Flutter from ee8b482 to fcfb4f2 (3 revisions) (flutter/packages#13520) 2026-10-31 [email protected] Roll Flutter from 5e805bf to ee8b482 (17 revisions) (flutter/packages#13512) 2026-10-30 [email protected] [VPAT] Describe the a11y_assessments dialog for screen readers (flutter/packages#13462) 2026-10-30 [email protected] [go_router_builder] Allow `build` 5 (flutter/packages#13455) 2026-10-30 [email protected] [go_router] Support nested parentheses, groups, and lookaround assertions in path parameters (flutter/packages#12571) 2026-10-30 [email protected] [in_app_purchase_storekit] Add SK2Transaction.currentEntitlements() (flutter/packages#13373) 2026-10-30 [email protected] [all] Remove broken .claude/skills symlink (flutter/packages#13492) 2026-10-30 [email protected] Roll Flutter from c091098 to 5e805bf (15 revisions) (flutter/packages#13504) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gmackall
pushed a commit
to gmackall/flutter
that referenced
this pull request
Nov 3, 2026
flutter/packages@3742a4e...3f34a6f 2026-11-01 [email protected] Roll Flutter from ee8b482 to fcfb4f2 (3 revisions) (flutter/packages#13520) 2026-10-31 [email protected] Roll Flutter from 5e805bf to ee8b482 (17 revisions) (flutter/packages#13512) 2026-10-30 [email protected] [VPAT] Describe the a11y_assessments dialog for screen readers (flutter/packages#13462) 2026-10-30 [email protected] [go_router_builder] Allow `build` 5 (flutter/packages#13455) 2026-10-30 [email protected] [go_router] Support nested parentheses, groups, and lookaround assertions in path parameters (flutter/packages#12571) 2026-10-30 [email protected] [in_app_purchase_storekit] Add SK2Transaction.currentEntitlements() (flutter/packages#13373) 2026-10-30 [email protected] [all] Remove broken .claude/skills symlink (flutter/packages#13492) 2026-10-30 [email protected] Roll Flutter from c091098 to 5e805bf (15 revisions) (flutter/packages#13504) If this roll has caused a breakage, revert this CL and set the roller to dry run mode using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Exposes StoreKit 2's
Transaction.currentEntitlementsviaSK2Transaction.currentEntitlements().Previously,
SK2Transaction.transactions()only wrappedTransaction.all, which returns the user's full transaction history rather than only their currently active entitlements (non-consumable purchases and active auto-renewable/non-renewing subscriptions). AddingSK2Transaction.currentEntitlements()allows callers to query active subscriptions and entitlements directly without invokingrestorePurchases()or manually filtering historical transactions.Fixes flutter/flutter#61339 and flutter/flutter#118960
Pre-Review Checklist
[shared_preferences]///).