diff --git a/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md index 4e46c343ea1..5f5456c7f1d 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.19+1 + +* Removes unneeded platform availability annotations. + ## 0.3.19 * Adds StoreKit2 Transaction expiration date. diff --git a/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h b/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h index 40476471200..77edd7553e2 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h +++ b/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.h @@ -14,11 +14,11 @@ NS_ASSUME_NONNULL_BEGIN /// A list of SKPaymentTransactions, which each represents a single transaction @property(nonatomic, strong) NSArray *transactions API_AVAILABLE( - ios(3.0), macos(10.7), watchos(6.2), visionos(1.0)); + ios(3.0), macos(10.7), watchos(6.2)); /// An object that provides information needed to complete transactions. @property(nonatomic, weak, nullable) id delegate API_AVAILABLE( - ios(13.0), macos(10.15), watchos(6.2), visionos(1.0)); + ios(13.0), macos(10.15), watchos(6.2)); /// Remove a finished (i.e. failed or completed) transaction from the queue. Attempting to finish a /// purchasing transaction will throw an exception. @@ -40,19 +40,17 @@ NS_ASSUME_NONNULL_BEGIN /// Will add completed transactions for the current user back to the queue to be re-completed. This /// version requires an identifier to the user's account. - (void)restoreCompletedTransactionsWithApplicationUsername:(nullable NSString *)username - API_AVAILABLE(ios(7.0), macos(10.9), watchos(6.2), visionos(1.0)); + API_AVAILABLE(ios(7.0), macos(10.9), watchos(6.2)); /// Call this method to have StoreKit present a sheet enabling the user to redeem codes provided by /// your app. Only for iOS. -- (void)presentCodeRedemptionSheet API_AVAILABLE(ios(14.0), visionos(1.0)) - API_UNAVAILABLE(tvos, macos, watchos); +- (void)presentCodeRedemptionSheet API_AVAILABLE(ios(14.0))API_UNAVAILABLE(tvos, macos, watchos); /// If StoreKit has called your SKPaymentQueueDelegate's "paymentQueueShouldShowPriceConsent:" /// method and you returned NO, you can use this method to show the price consent UI at a later time /// that is more appropriate for your app. If there is no pending price consent, this method will do /// nothing. -- (void)showPriceConsentIfNeeded API_AVAILABLE(ios(13.4), visionos(1.0)) - API_UNAVAILABLE(tvos, macos, watchos); +- (void)showPriceConsentIfNeeded API_AVAILABLE(ios(13.4))API_UNAVAILABLE(tvos, macos, watchos); @end diff --git a/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.m b/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.m index fd97794bae8..943bdc2cf39 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.m +++ b/packages/in_app_purchase/in_app_purchase_storekit/darwin/Classes/Protocols/FLTPaymentQueueProtocol.m @@ -43,13 +43,12 @@ - (void)restoreCompletedTransactionsWithApplicationUsername:(nullable NSString * [self.queue restoreCompletedTransactionsWithApplicationUsername:username]; } -- (id)delegate API_AVAILABLE(ios(13.0), macos(10.15), watchos(6.2), - visionos(1.0)) { +- (id)delegate API_AVAILABLE(ios(13.0), macos(10.15), watchos(6.2)) { return self.queue.delegate; } -- (NSArray *)transactions API_AVAILABLE(ios(3.0), macos(10.7), watchos(6.2), - visionos(1.0)) { +- (NSArray *)transactions API_AVAILABLE(ios(3.0), macos(10.7), + watchos(6.2)) { return self.queue.transactions; } @@ -58,15 +57,13 @@ - (SKStorefront *)storefront API_AVAILABLE(ios(13.0)) { } #if TARGET_OS_IOS -- (void)presentCodeRedemptionSheet API_AVAILABLE(ios(14.0), visionos(1.0)) - API_UNAVAILABLE(tvos, macos, watchos) { +- (void)presentCodeRedemptionSheet API_AVAILABLE(ios(14.0))API_UNAVAILABLE(tvos, macos, watchos) { [self.queue presentCodeRedemptionSheet]; } #endif #if TARGET_OS_IOS -- (void)showPriceConsentIfNeeded API_AVAILABLE(ios(13.4), visionos(1.0)) - API_UNAVAILABLE(tvos, macos, watchos) { +- (void)showPriceConsentIfNeeded API_AVAILABLE(ios(13.4))API_UNAVAILABLE(tvos, macos, watchos) { [self.queue showPriceConsentIfNeeded]; } #endif diff --git a/packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/Stubs.h b/packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/Stubs.h index bfdec37d394..14bbed8ceea 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/Stubs.h +++ b/packages/in_app_purchase/in_app_purchase_storekit/example/shared/RunnerTests/Stubs.h @@ -83,7 +83,7 @@ API_AVAILABLE(ios(13.0), macos(10.15)) @property(nonatomic, strong, nullable) id observer; @property(nonatomic, strong, readwrite) SKStorefront *storefront API_AVAILABLE(ios(13.0)); @property(nonatomic, strong, readwrite) NSArray *transactions API_AVAILABLE( - ios(3.0), macos(10.7), watchos(6.2), visionos(1.0)); + ios(3.0), macos(10.7), watchos(6.2)); // Test Properties @property(nonatomic, assign) diff --git a/packages/in_app_purchase/in_app_purchase_storekit/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_storekit/pubspec.yaml index eeaa9a865f2..71b78b1d9f0 100644 --- a/packages/in_app_purchase/in_app_purchase_storekit/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_storekit/pubspec.yaml @@ -2,7 +2,7 @@ name: in_app_purchase_storekit description: An implementation for the iOS and macOS platforms of the Flutter `in_app_purchase` plugin. This uses the StoreKit Framework. repository: https://github.com/flutter/packages/tree/main/packages/in_app_purchase/in_app_purchase_storekit issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22 -version: 0.3.19 +version: 0.3.19+1 environment: sdk: ^3.3.0