Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update availability
  • Loading branch information
LouiseHsu committed Jul 18, 2024
commit dbcfc3d7f832d3f3b1af8a2a05e31e44b73bc1eb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

NS_ASSUME_NONNULL_BEGIN

API_AVAILABLE(ios(13))
API_UNAVAILABLE(tvos, macos, watchos)
API_AVAILABLE(ios(13), macos(10.15))
Copy link
Contributor Author

@LouiseHsu LouiseHsu Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should've always been here. When mac support first got added i think this got missed here
For some reason the objc macos tests still ran fine even though it was using FIAPPaymentQueueDelegate which was technically unavailable, but when i rewrote the tests in swift, the compiler complained.
Adding this should be fine as its a wrapper over SKPaymentQueueDelegate and mac is supported

API_UNAVAILABLE(tvos, watchos)
@interface FIAPPaymentQueueDelegate : NSObject <SKPaymentQueueDelegate>
- (id)initWithMethodChannel:(id<FLTMethodChannelProtocol>)methodChannel;
@end
Expand Down