Skip to content

VideoSubscriberAccount macOS xcode15.3 b3

Alex Soto edited this page Jul 9, 2024 · 2 revisions

#VideoSubscriberAccount.framework https://github.com/xamarin/xamarin-macios/pull/20780

diff -ruN /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSAppleSubscription.h /Applications/Xcode_15.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSAppleSubscription.h
--- /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSAppleSubscription.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSAppleSubscription.h	2024-02-06 09:38:22
@@ -0,0 +1,32 @@
+//
+//  VSAppleSubscription.h
+//  VideoSubscriberAccountFramework
+//
+//  Created by Joao on 11/6/23.
+//  Copyright © 2023 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <VideoSubscriberAccount/VideoSubscriberAccountDefines.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+VS_EXPORT API_AVAILABLE(ios(17.4), tvos(17.4), macos(14.4), visionos(1.1)) API_UNAVAILABLE(watchos, macCatalyst)
+NS_REFINED_FOR_SWIFT
+NS_SWIFT_SENDABLE
+@interface VSAppleSubscription : NSObject
+
+// The identifier of the customer as previously reported to Apple.
+@property (nonatomic, strong) NSString *customerID;
+
+// List of product codes for Apple services the customer is subscribed to.
+@property (nonatomic, strong) NSArray<NSString *> *productCodes;
+
+- (instancetype)initWithCustomerID:(NSString *)customerID productCodes:(NSArray<NSString *> *)productCodes;
+
+// Use - initWithCustomerID: productCodes: instead.
+VS_INIT_UNAVAILABLE;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSUserAccount.h /Applications/Xcode_15.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSUserAccount.h
--- /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSUserAccount.h	2024-01-27 01:16:51
+++ /Applications/Xcode_15.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VSUserAccount.h	2024-02-06 09:38:22
@@ -6,6 +6,7 @@
 //  Copyright © 2022 Apple Inc. All rights reserved.
 //
 
+#import <VideoSubscriberAccount/VSAppleSubscription.h>
 #import <VideoSubscriberAccount/VideoSubscriberAccountDefines.h>
 
 #import <Foundation/Foundation.h>
@@ -24,6 +25,7 @@
 
 VS_EXPORT API_AVAILABLE(ios(16.4), tvos(16.4), macos(13.3)) API_UNAVAILABLE(watchos, macCatalyst)
 NS_REFINED_FOR_SWIFT
+NS_SWIFT_SENDABLE
 @interface VSUserAccount : NSObject
 
 // The URL pointing to the application JS that can respond to account update requests, or nil if JS updates are not supported.
@@ -74,6 +76,10 @@
 
 // The type of device the VSUserAccount was registered on.
 @property (nonatomic, readonly) VSOriginatingDeviceCategory deviceCategory;
+
+// The Apple service subscription associated with the user account.
+@property (nonatomic, strong, nullable) VSAppleSubscription *appleSubscription
+    API_AVAILABLE(ios(17.4), tvos(17.4), macos(14.4), visionos(1.1)) API_UNAVAILABLE(watchos, macCatalyst);
 
 // Use -initWithAccountType:updateURL: or -initWithAccountProviderIdentifier: instead.
 VS_INIT_UNAVAILABLE
diff -ruN /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VideoSubscriberAccount.h /Applications/Xcode_15.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VideoSubscriberAccount.h
--- /Applications/Xcode_15.3.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VideoSubscriberAccount.h	2024-01-27 18:57:38
+++ /Applications/Xcode_15.3.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Headers/VideoSubscriberAccount.h	2024-02-06 09:38:22
@@ -5,15 +5,16 @@
 //  Copyright © 2016 Apple Inc. All rights reserved.
 //
 
-#import <VideoSubscriberAccount/VideoSubscriberAccountDefines.h>
-#import <VideoSubscriberAccount/VideoSubscriberAccountErrors.h>
 #import <VideoSubscriberAccount/VSAccountApplicationProvider.h>
 #import <VideoSubscriberAccount/VSAccountManager.h>
 #import <VideoSubscriberAccount/VSAccountManagerResult.h>
 #import <VideoSubscriberAccount/VSAccountMetadata.h>
 #import <VideoSubscriberAccount/VSAccountMetadataRequest.h>
 #import <VideoSubscriberAccount/VSAccountProviderResponse.h>
+#import <VideoSubscriberAccount/VSAppleSubscription.h>
 #import <VideoSubscriberAccount/VSSubscription.h>
 #import <VideoSubscriberAccount/VSSubscriptionRegistrationCenter.h>
-#import <VideoSubscriberAccount/VSUserAccountManager.h>
 #import <VideoSubscriberAccount/VSUserAccount.h>
+#import <VideoSubscriberAccount/VSUserAccountManager.h>
+#import <VideoSubscriberAccount/VideoSubscriberAccountDefines.h>
+#import <VideoSubscriberAccount/VideoSubscriberAccountErrors.h>