[in_app_purchase_storekit] Remove unneeded platform annotations (#7914)
Fixes https://github.com/flutter/flutter/issues/155213
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 4e46c34..5f5456c 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 4047647..77edd75 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 @@
/// A list of SKPaymentTransactions, which each represents a single transaction
@property(nonatomic, strong) NSArray<SKPaymentTransaction *> *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<SKPaymentQueueDelegate> 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 @@
/// 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 fd97794..943bdc2 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 @@
[self.queue restoreCompletedTransactionsWithApplicationUsername:username];
}
-- (id<SKPaymentQueueDelegate>)delegate API_AVAILABLE(ios(13.0), macos(10.15), watchos(6.2),
- visionos(1.0)) {
+- (id<SKPaymentQueueDelegate>)delegate API_AVAILABLE(ios(13.0), macos(10.15), watchos(6.2)) {
return self.queue.delegate;
}
-- (NSArray<SKPaymentTransaction *> *)transactions API_AVAILABLE(ios(3.0), macos(10.7), watchos(6.2),
- visionos(1.0)) {
+- (NSArray<SKPaymentTransaction *> *)transactions API_AVAILABLE(ios(3.0), macos(10.7),
+ watchos(6.2)) {
return self.queue.transactions;
}
@@ -58,15 +57,13 @@
}
#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 bfdec37..14bbed8 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 @@
@property(nonatomic, strong, nullable) id<SKPaymentTransactionObserver> observer;
@property(nonatomic, strong, readwrite) SKStorefront *storefront API_AVAILABLE(ios(13.0));
@property(nonatomic, strong, readwrite) NSArray<SKPaymentTransaction *> *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 eeaa9a8..71b78b1 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 @@
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