Skip to content

PassKit watchOS xcode14.0 beta4

TJ Lambert edited this page Aug 3, 2022 · 3 revisions

#PassKit.framework https://github.com/xamarin/xamarin-macios/pull/15613

diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h	2022-06-30 21:56:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocument.h	2022-07-22 09:58:32.000000000 -0400
@@ -9,8 +9,6 @@
 
 #import <Foundation/Foundation.h>
 
-@class PKIdentityDocumentRawElements;
-
 NS_ASSUME_NONNULL_BEGIN
 
 /// Represents the response of a request for an identity document.
@@ -23,13 +21,6 @@
 /// This data is not intended to be read on-device.
 @property (nonatomic, readonly) NSData *encryptedData;
 
-/// The unsigned, unencrypted representation of the elements in the response, as specified by the issuer.
-/// When element values are returned, they match the corresponding element values within encryptedData, but
-/// do not possess an issuer signature. They can be used locally for use cases that do not require the
-/// authenticity guarantees provided by the issuer signature, but should never be used in situations that
-/// require trusted information.
-@property (nonatomic, readonly, nullable) PKIdentityDocumentRawElements *rawElements;
-
 - (instancetype)init NS_UNAVAILABLE;
 + (instancetype)new NS_UNAVAILABLE;
 
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h	2022-06-30 21:56:35.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentAgeThreshold.h	1969-12-31 19:00:00.000000000 -0500
@@ -1,37 +0,0 @@
-#if !__has_include(<PassKitCore/PKIdentityDocumentAgeThreshold.h>) || PK_USE_PUBLIC_PASSKIT
-//
-//  PKIdentityDocumentAgeThreshold.h
-//  PassKit
-//
-//  Copyright © 2022 Apple, Inc. All rights reserved.
-//
-
-
-#import <Foundation/Foundation.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/// Represents an age threshold in a PKIdentityDocument, which
-/// indicates whether the document holder's age is at least
-/// a certain age threshold in years.
-API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
-NS_SWIFT_NAME(PKIdentityDocument.AgeThreshold)
-@interface PKIdentityDocumentAgeThreshold: NSObject
-
-/// The age threshold in years requested in the originating request.
-@property (nonatomic, readonly) NSInteger years;
-
-/// True if the document holder's age is >= years, false otherwise.
-@property (nonatomic, readonly, getter=isAtLeastYearsOld) BOOL atLeastYearsOld;
-
-- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-
-#else
-#import <PassKitCore/PKIdentityDocumentAgeThreshold.h>
-#endif
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h	2022-06-30 21:56:31.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentIssuingAuthority.h	1969-12-31 19:00:00.000000000 -0500
@@ -1,38 +0,0 @@
-#if !__has_include(<PassKitCore/PKIdentityDocumentIssuingAuthority.h>) || PK_USE_PUBLIC_PASSKIT
-//
-//  PKIdentityDocumentIssuingAuthority.h
-//  PassKit
-//
-//  Copyright © 2022 Apple, Inc. All rights reserved.
-//
-
-
-#import <Foundation/Foundation.h>
-
-NS_ASSUME_NONNULL_BEGIN
-
-/// Represents a document's issuing authority in a PKIdentityDocument.
-API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
-NS_SWIFT_NAME(PKIdentityDocument.IssuingAuthority)
-@interface PKIdentityDocumentIssuingAuthority: NSObject
-
-/// The name of the issuing authority of the document.
-@property (nonatomic, readonly, nullable) NSString *name;
-
-/// The country subdivision code of the jurisdiction that issued the document.
-@property (nonatomic, readonly, nullable) NSString *jurisdiction;
-
-/// The ISO 3166-1 alpha-2 country code of the country that issued the document.
-@property (nonatomic, readonly, nullable) NSString *ISOCountryCode;
-
-- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-
-#else
-#import <PassKitCore/PKIdentityDocumentIssuingAuthority.h>
-#endif
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h	2022-06-30 21:56:36.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityDocumentRawElements.h	1969-12-31 19:00:00.000000000 -0500
@@ -1,65 +0,0 @@
-#if !__has_include(<PassKitCore/PKIdentityDocumentRawElements.h>) || PK_USE_PUBLIC_PASSKIT
-//
-//  PKIdentityDocumentRawElements.h
-//  PassKit
-//
-//  Copyright © 2022 Apple, Inc. All rights reserved.
-//
-
-
-#import <Foundation/Foundation.h>
-
-@class CNPostalAddress;
-@class PKIdentityDocumentIssuingAuthority;
-@class PKIdentityDocumentAgeThreshold;
-
-NS_ASSUME_NONNULL_BEGIN
-
-/// Represents the response elements in a PKIdentityDocument.
-/// Only properties that correspond to elements that were requested and
-/// are present in the underlying identity document will be set.
-API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos)
-NS_SWIFT_NAME(PKIdentityDocument.RawElements)
-@interface PKIdentityDocumentRawElements: NSObject
-
-/// The name of the document holder.
-@property (nonatomic, readonly, nullable) NSPersonNameComponents *name;
-
-/// The address of the document holder.
-@property (nonatomic, readonly, nullable) CNPostalAddress *address;
-
-/// The issuing authority that issued the document.
-@property (nonatomic, readonly, nullable) PKIdentityDocumentIssuingAuthority *issuingAuthority;
-
-/// The issue date of the document.
-@property (nonatomic, readonly, nullable) NSDateComponents *documentIssueDate;
-
-/// The expiration date of the document.
-@property (nonatomic, readonly, nullable) NSDateComponents *documentExpirationDate;
-
-/// The number identifying the document, as specified by its issuing authority.
-@property (nonatomic, readonly, nullable) NSString *documentNumber;
-
-/// The age (in years) of the document holder.
-@property (nonatomic, readonly, nullable) NSNumber *age NS_REFINED_FOR_SWIFT;
-
-/// An age threshold indicating whether the document holder is at least a requested age.
-@property (nonatomic, readonly, nullable) PKIdentityDocumentAgeThreshold *ageThreshold;
-
-/// The date of birth of the document holder.
-@property (nonatomic, readonly, nullable) NSDateComponents *dateOfBirth;
-
-/// The portrait of the document holder.
-@property (nonatomic, readonly, nullable) NSData *portraitImageData;
-
-- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
-
-@end
-
-NS_ASSUME_NONNULL_END
-
-
-#else
-#import <PassKitCore/PKIdentityDocumentRawElements.h>
-#endif
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h	2022-06-30 21:56:35.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PKIdentityError.h	2022-07-22 09:58:34.000000000 -0400
@@ -17,36 +17,30 @@
 /// Identity error codes.
 typedef NS_ERROR_ENUM(PKIdentityErrorDomain, PKIdentityError) {
     /// Catch-all for all errors without a specific error code.
-    PKIdentityErrorUnknown = 1,
+    PKIdentityErrorUnknown = 0,
 
-    /// Returned if the app is not entitled to call an API.
-    PKIdentityErrorNotEntitled = 2,
+    /// Returned if the request originates from an unsupported device.
+    PKIdentityErrorNotSupported = 1,
 
     /// Returned if the sheet was cancelled.
-    PKIdentityErrorCancelled = 3,
+    PKIdentityErrorCancelled = 2,
 
     /// Returned if a request cannot be processed because
     /// the network is not available.
-    PKIdentityErrorNetworkUnavailable = 4,
+    PKIdentityErrorNetworkUnavailable = 3,
 
     /// Returned if no supported elements were requested.
-    PKIdentityErrorNoElementsRequested = 5,
+    PKIdentityErrorNoElementsRequested = 4,
 
     /// Returned if a request is made but another request is already
     /// in progress.
-    PKIdentityErrorRequestAlreadyInProgress = 6,
+    PKIdentityErrorRequestAlreadyInProgress = 5,
 
     /// Returned if the caller-supplied nonce is too large or otherwise unsuitable.
-    PKIdentityErrorInvalidNonce = 7,
+    PKIdentityErrorInvalidNonce = 6,
 
     /// Returned if an element requested by the caller is invalid.
-    PKIdentityErrorInvalidElement = 8,
-
-    /// Returned if the merchant ID used in a request is invalid
-    PKIdentityErrorInvalidMerchantID = 9,
-    
-    /// Returned if the request originates from an unsupported device
-    PKIdentityErrorNotSupported = 10
+    PKIdentityErrorInvalidElement = 7
 } API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, watchos, tvos);
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h	2022-06-30 03:06:43.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/PassKit.framework/Headers/PassKit.h	2022-07-20 05:22:37.000000000 -0400
@@ -149,18 +149,9 @@
 #if __has_include(<PassKit/PKIdentityDocument.h>)
 #import <PassKit/PKIdentityDocument.h>
 #endif
-#if __has_include(<PassKit/PKIdentityDocumentAgeThreshold.h>)
-#import <PassKit/PKIdentityDocumentAgeThreshold.h>
-#endif
 #if __has_include(<PassKit/PKIdentityDocumentDescriptor.h>)
 #import <PassKit/PKIdentityDocumentDescriptor.h>
 #endif
-#if __has_include(<PassKit/PKIdentityDocumentIssuingAuthority.h>)
-#import <PassKit/PKIdentityDocumentIssuingAuthority.h>
-#endif
-#if __has_include(<PassKit/PKIdentityDocumentRawElements.h>)
-#import <PassKit/PKIdentityDocumentRawElements.h>
-#endif
 #if __has_include(<PassKit/PKIdentityElement.h>)
 #import <PassKit/PKIdentityElement.h>
 #endif
Clone this wiki locally