Repository navigation
Closed
flutter/packages
#13745Closed
Copy link
Labels
P1High-priority issues at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team
Description
flutter/packages#13284, which would fix #194517, is currently blocked on an IAP warning:
iOS version:
/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.2.sdk/Developer/Library/Frameworks/StoreKitTest.framework/Headers/SKTestTransaction.h:34:32: error: 'SKPaymentTransactionState' is deprecated: first deprecated in iOS 18.0 - Use PurchaseResult from Product.purchase(confirmIn:options:).
32 | @property(nonatomic, readonly) NSDate *purchaseDate;
33 |
34 | @property(nonatomic, readonly) SKPaymentTransactionState state;
| `- error: 'SKPaymentTransactionState' is deprecated: first deprecated in iOS 18.0 - Use PurchaseResult from Product.purchase(confirmIn:options:).
35 |
36 | @property(nonatomic, readonly) BOOL pendingPriceIncreaseConsent API_AVAILABLE(ios(15.4), macos(12.3), tvos(15.4), watchos(8.5), visionos(1.0)) NS_SWIFT_NAME(isPendingPriceIncreaseConsent);
macOS version:
/Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17c52/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/StoreKitTest.framework/Headers/SKTestTransaction.h:34:32: error: 'SKPaymentTransactionState' is deprecated: first deprecated in macOS 15.0 - Use PurchaseResult from Product.purchase(confirmIn:options:).
32 | @property(nonatomic, readonly) NSDate *purchaseDate;
33 |
34 | @property(nonatomic, readonly) SKPaymentTransactionState state;
| `- error: 'SKPaymentTransactionState' is deprecated: first deprecated in macOS 15.0 - Use PurchaseResult from Product.purchase(confirmIn:options:).
35 |
36 | @property(nonatomic, readonly) BOOL pendingPriceIncreaseConsent API_AVAILABLE(ios(15.4), macos(12.3), tvos(15.4), watchos(8.5), visionos(1.0)) NS_SWIFT_NAME(isPendingPriceIncreaseConsent);
It's not obvious from the log where this is triggering from, but I'm assuming it's this code.
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team
Activity
cbracken commentedon Nov 5, 2026
/cc @LouiseHsu
jmagman commentedon Nov 20, 2026
It's actually more surprising than this. Just calling
import StoreKitTestis doing it, it's not coming from our code:https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8664589460494951473/+/u/Run_package_tests/native_test/stdout
SKTestTransactionheader has aSKPaymentTransactionStateproperty but isn't suppressing anything about it:Not sure what to do except skip
-Wno-error=deprecated-declarationsin the test project targets. I don't think there's a way to suppress it around the import itself.[in_app_purchase_storekit] Suppress StoreKit 1 deprecations in import…
[in_app_purchase_storekit] Suppress StoreKit 1 deprecations in import…
[in_app_purchase_storekit] Suppress StoreKit 1 deprecations in import…