Skip to content

AuthenticationServices watchOS xcode13.0 beta1

tj_devel709 edited this page Jul 23, 2021 · 4 revisions

#AuthenticationServices.framework https://github.com/xamarin/xamarin-macios/pull/12203

diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationController.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationController.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationController.h	2021-03-16 05:20:45.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationController.h	2021-06-02 07:36:25.000000000 -0400
@@ -6,6 +6,7 @@
 //
 
 #import <AuthenticationServices/ASFoundation.h>
+#import <AuthenticationServices/ASAuthorizationCustomMethod.h>
 #import <Foundation/Foundation.h>
 
 NS_ASSUME_NONNULL_BEGIN
@@ -21,6 +22,7 @@
 - (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithAuthorization:(ASAuthorization *)authorization NS_SWIFT_NAME(authorizationController(controller:didCompleteWithAuthorization:));
 - (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithError:(NSError *)error  NS_SWIFT_NAME(authorizationController(controller:didCompleteWithError:));
 
+- (void)authorizationController:(ASAuthorizationController *)controller didCompleteWithCustomMethod:(ASAuthorizationCustomMethod)method  NS_SWIFT_NAME(authorizationController(_:didCompleteWithCustomMethod:)) API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(ios, macos, watchos);
 @end
 
 AS_EXTERN API_AVAILABLE(ios(13.0), macos(10.15), tvos(13.0)) API_UNAVAILABLE(watchos)
@@ -52,6 +54,14 @@
  */
 @property (nonatomic, weak, nullable) id <ASAuthorizationControllerPresentationContextProviding> presentationContextProvider API_UNAVAILABLE(watchos);
 
+/*! @abstract A list of custom authorization methods that may be displayed in the authorization UI.
+
+ If the user selects one of these methods, instead of attempting to secure an authorization for the requests, the
+ controller will call authorizationController:didCompleteWithCustomMethod: with the selected method, allowing
+ the client to perform the requested authorization.
+ */
+@property (nonatomic, copy) NSArray<ASAuthorizationCustomMethod> *customAuthorizationMethods API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(ios, macos, watchos);
+
 /*! @abstract Initialize the controller with authorization requests.
  
  @param authorizationRequests At least one request should be provided. Requests of same type maybe honored in first in first out order
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationCustomMethod.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationCustomMethod.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationCustomMethod.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationCustomMethod.h	2021-06-02 07:36:24.000000000 -0400
@@ -0,0 +1,18 @@
+// Copyright © 2021 Apple Inc. All rights reserved.
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+typedef NSString * ASAuthorizationCustomMethod NS_TYPED_ENUM API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(ios, macos, watchos);
+
+/// An authorization method that uses the VideoSubscriberAccount framework to sign in.
+AS_EXTERN ASAuthorizationCustomMethod const ASAuthorizationCustomMethodVideoSubscriberAccount API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(ios, macos, watchos);
+
+/// An authorization method that restores an in-app purchase to sign in.
+AS_EXTERN ASAuthorizationCustomMethod const ASAuthorizationCustomMethodRestorePurchase API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(ios, macos, watchos);
+
+/// An authorization method that uses some other sign-in mechanism.
+AS_EXTERN ASAuthorizationCustomMethod const ASAuthorizationCustomMethodOther API_AVAILABLE(tvos(15.0)) API_UNAVAILABLE(ios, macos, watchos);
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationError.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationError.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationError.h	2021-03-16 05:20:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationError.h	2021-06-02 07:36:24.000000000 -0400
@@ -18,6 +18,7 @@
     ASAuthorizationErrorInvalidResponse = 1002,
     ASAuthorizationErrorNotHandled = 1003,
     ASAuthorizationErrorFailed = 1004,
+    ASAuthorizationErrorNotInteractive API_AVAILABLE(ios(15.0), macos(12.0)) API_UNAVAILABLE(tvos, watchos) = 1005,
 } API_AVAILABLE(ios(13.0), macos(10.15), tvos(13.0), watchos(6.0));
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordProvider.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordProvider.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordProvider.h	2021-03-16 05:20:45.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordProvider.h	2021-06-02 07:36:25.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-AS_EXTERN API_AVAILABLE(ios(13.0), macos(10.15), tvos(13.0), watchos(6.0))
+AS_EXTERN API_AVAILABLE(ios(13.0), macos(10.15), tvos(15.0), watchos(6.0))
 @interface ASAuthorizationPasswordProvider : NSObject <ASAuthorizationProvider>
 
 - (ASAuthorizationPasswordRequest *)createRequest;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordRequest.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordRequest.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordRequest.h	2021-03-16 05:20:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationPasswordRequest.h	2021-06-02 07:36:24.000000000 -0400
@@ -9,7 +9,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-AS_EXTERN API_AVAILABLE(ios(13.0), macos(10.15), tvos(13.0), watchos(6.0))
+AS_EXTERN API_AVAILABLE(ios(13.0), macos(10.15), tvos(15.0), watchos(6.0))
 @interface ASAuthorizationPasswordRequest : ASAuthorizationRequest
 
 @end
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationRequest.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationRequest.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationRequest.h	2021-03-16 09:55:28.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationRequest.h	2021-06-02 12:45:13.000000000 -0400
@@ -33,6 +33,8 @@
 
 @end
 
+@class ASAuthorizationProviderExtensionAuthorizationResult;
+
 AS_EXTERN API_AVAILABLE(ios(13.0), macCatalyst(14.0), macos(10.15)) API_UNAVAILABLE(watchos, tvos)
 @interface ASAuthorizationProviderExtensionAuthorizationRequest : NSObject
 
@@ -56,13 +58,19 @@
  */
 - (void)completeWithHTTPResponse:(NSHTTPURLResponse *)httpResponse httpBody:(nullable NSData *)httpBody NS_SWIFT_NAME(complete(httpResponse:httpBody:));
 
+/*! @abstract Call when authorization succeeded with @see ASAuthorizationProviderExtensionAuthorizationResult.
+ */
+- (void)completeWithAuthorizationResult:(ASAuthorizationProviderExtensionAuthorizationResult *)authorizationResult NS_SWIFT_NAME(complete(authorizationResult:)) API_AVAILABLE(ios(15.0), macCatalyst(15.0), macos(12)) API_UNAVAILABLE(watchos, tvos);
+
 /*! @abstract Call when authorization failed with an error.
  */
 - (void)completeWithError:(NSError *)error NS_SWIFT_NAME(complete(error:));
 
 /*! @abstract Asks authorization service to show extension view controller. If the controller cannot be shown an error is returned.
  */
-- (void)presentAuthorizationViewControllerWithCompletion:(void(^)(BOOL success, NSError * _Nullable error))completion;
+- (void)presentAuthorizationViewControllerWithCompletion:(void(^)(BOOL success, NSError * _Nullable error))completion
+    NS_SWIFT_ASYNC_THROWS_ON_FALSE(1)
+    ;
 
 /*! @abstract Request URL with all components.
  */
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationResult.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationResult.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationResult.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationProviderExtensionAuthorizationResult.h	2021-06-02 07:36:24.000000000 -0400
@@ -0,0 +1,42 @@
+//
+//  ASAuthorizationProviderExtensionAuthorizationResult.h
+//  AuthenticationServices Framework
+//
+//  Copyright © 2021 Apple. All rights reserved.
+//
+
+#import <AuthenticationServices/ASFoundation.h>
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+AS_EXTERN API_AVAILABLE(ios(15.0), macCatalyst(15.0), macos(12.0)) API_UNAVAILABLE(watchos, tvos)
+@interface ASAuthorizationProviderExtensionAuthorizationResult : NSObject
+
+/*! @abstract Authorization succeeded with an authorization tokens stored in HTTP headers.
+ */
+- (instancetype)initWithHTTPAuthorizationHeaders:(NSDictionary<NSString *, NSString *> *)httpAuthorizationHeaders  NS_SWIFT_NAME(init(httpAuthorizationHeaders:));
+
+/*! @abstract Authorization succeeded with a HTTP response.
+ */
+- (instancetype)initWithHTTPResponse:(NSHTTPURLResponse *)httpResponse httpBody:(nullable NSData *)httpBody NS_SWIFT_NAME(init(httpResponse:httpBody:));
+
+/*! @abstract HTTP extra headers for addition with credentials.
+ */
+@property (nonatomic, nullable) NSDictionary<NSString *, NSString *> *httpAuthorizationHeaders;
+
+/*! @abstract HTTP response for OAUth and SAML based authentications.
+ */
+@property (copy, nonatomic, nullable) NSHTTPURLResponse *httpResponse;
+
+/*! @abstract HTTP response body for OAUth and SAML based authentications.
+ */
+@property (nonatomic, nullable) NSData *httpBody;
+
+/*! @abstract Private SecKeys.
+ */
+@property (nonatomic) NSArray *privateKeys;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnCredential.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnCredential.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnCredential.h	2021-03-16 05:20:45.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnCredential.h	2021-06-02 07:36:25.000000000 -0400
@@ -35,6 +35,10 @@
  */
 @property (nonatomic, copy, readonly, nullable) NSHTTPURLResponse *authenticatedResponse;
 
+/*! @abstract Private SecKeys returned from the AuthenticationServices extension.
+ */
+@property (nonatomic, readonly) NSArray *privateKeys API_AVAILABLE(ios(15.0), macos(12.0)) API_UNAVAILABLE(tvos, watchos);
+
 + (instancetype)new NS_UNAVAILABLE;
 
 - (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnRequest.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnRequest.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnRequest.h	2021-03-16 05:20:45.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASAuthorizationSingleSignOnRequest.h	2021-06-02 07:36:25.000000000 -0400
@@ -16,6 +16,11 @@
  */
 @property(nonatomic, copy) NSArray<NSURLQueryItem *> *authorizationOptions;
 
+/*! @abstract Enables or disables the authorization user interface.
+ @discussion The default values is YES. If user interface is not enabled, then the authorization will fail with @see ASAuthorizationErrorNotInteractive if it attempts to display the authorization user interface.
+*/
+@property (nonatomic, getter=isUserInterfaceEnabled) BOOL userInterfaceEnabled API_AVAILABLE(ios(15.0), macos(12.0), macCatalyst(15.0)) API_UNAVAILABLE(tvos, watchos);
+
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialIdentityStore.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialIdentityStore.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialIdentityStore.h	2021-03-16 05:20:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialIdentityStore.h	2021-06-02 11:09:12.000000000 -0400
@@ -40,7 +40,9 @@
  Use the provided ASCredentialIdentityStoreState to find out if the store is enabled and whether it supports incremental
  updates.
  */
-- (void)getCredentialIdentityStoreStateWithCompletion:(void (^)(ASCredentialIdentityStoreState *state))completion;
+- (void)getCredentialIdentityStoreStateWithCompletion:(void (^)(ASCredentialIdentityStoreState *state))completion
+    NS_SWIFT_ASYNC_NAME(state())
+    ;
 
 /*! @abstract Save the given credential identities to the store.
  @param credentialIdentities array of ASPasswordCredentialIdentity objects to save to the store.
@@ -53,7 +55,9 @@
  If some credential identities in credentialIdentities already exist in the store, they will be replaced by
  those from credentialIdentities.
  */
-- (void)saveCredentialIdentities:(NSArray<ASPasswordCredentialIdentity *> *)credentialIdentities completion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion;
+- (void)saveCredentialIdentities:(NSArray<ASPasswordCredentialIdentity *> *)credentialIdentities completion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion
+    NS_SWIFT_ASYNC_THROWS_ON_FALSE(1)
+    ;
 
 /*! @abstract Remove the given credential identities from the store.
  @param credentialIdentities array of ASPasswordCredentialIdentity objects to remove from the store.
@@ -63,14 +67,18 @@
  @discussion Use this method only if the store supports incremental updates to remove previously added
  credentials to the store.
  */
-- (void)removeCredentialIdentities:(NSArray<ASPasswordCredentialIdentity *> *)credentialIdentities completion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion;
+- (void)removeCredentialIdentities:(NSArray<ASPasswordCredentialIdentity *> *)credentialIdentities completion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion
+    NS_SWIFT_ASYNC_THROWS_ON_FALSE(1)
+    ;
 
 /*! @abstract Remove all existing credential identities from the store.
  @param completion optional completion handler to be called after removing all existing credential identities.
  If the operation fails, an error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of
  the existing credential identities will be removed from the store.
  */
-- (void)removeAllCredentialIdentitiesWithCompletion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion;
+- (void)removeAllCredentialIdentitiesWithCompletion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion
+    NS_SWIFT_ASYNC_THROWS_ON_FALSE(1)
+    ;
 
 /*! @abstract Replace existing credential identities with new credential identities.
  @param newCredentialIdentities array of new credential identity objects to replace the old ones.
@@ -80,7 +88,9 @@
  error with domain ASCredentialIdentityStoreErrorDomain will be provided and none of the new credential
  identities will be saved.
  */
-- (void)replaceCredentialIdentitiesWithIdentities:(NSArray<ASPasswordCredentialIdentity *> *)newCredentialIdentities completion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion;
+- (void)replaceCredentialIdentitiesWithIdentities:(NSArray<ASPasswordCredentialIdentity *> *)newCredentialIdentities completion:(void (^ _Nullable)(BOOL success, NSError * _Nullable error))completion
+    NS_SWIFT_ASYNC_THROWS_ON_FALSE(1)
+    ;
 
 @end
 
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialProviderExtensionContext.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialProviderExtensionContext.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialProviderExtensionContext.h	2021-03-16 05:20:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASCredentialProviderExtensionContext.h	2021-06-02 07:36:24.000000000 -0400
@@ -23,7 +23,9 @@
  non-expiration invocation of the completionHandler.
  @discussion Calling this method will eventually dismiss the associated view controller.
  */
-- (void)completeRequestWithSelectedCredential:(ASPasswordCredential *)credential completionHandler:(void(^ _Nullable)(BOOL expired))completionHandler;
+- (void)completeRequestWithSelectedCredential:(ASPasswordCredential *)credential completionHandler:(void(^ _Nullable)(BOOL expired))completionHandler
+    NS_SWIFT_DISABLE_ASYNC
+    ;
 
 /*! @abstract Complete the request to configure the extension.
  @discussion Calling this method will eventually dismiss the associated view controller.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h	2021-03-16 05:15:48.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h	2021-06-01 23:01:57.000000000 -0400
@@ -19,8 +19,10 @@
 #if __has_include(<UIKit/UIViewController.h>)
 typedef UIViewController ASViewController;
 #endif
+typedef UIImage ASImage;
 #elif __has_include(<AppKit/AppKit.h>)
 #import <AppKit/AppKit.h>
 typedef NSWindow * ASPresentationAnchor;
 typedef NSViewController ASViewController;
+typedef NSImage ASImage;
 #endif
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASPasswordCredential.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASPasswordCredential.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASPasswordCredential.h	2021-03-16 05:20:44.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASPasswordCredential.h	2021-06-02 07:36:24.000000000 -0400
@@ -11,7 +11,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-AS_EXTERN API_AVAILABLE(ios(12.0), macos(10.15), tvos(13.0), watchos(6.0))
+AS_EXTERN API_AVAILABLE(ios(12.0), macos(10.15), tvos(15.0), watchos(6.0))
 @interface ASPasswordCredential : NSObject <ASAuthorizationCredential>
 
 /*! @abstract Initializes an ASPasswordCredential object.
diff -ruN /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h
--- /Applications/Xcode_12.5.0.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h	2021-03-16 05:15:49.000000000 -0400
+++ /Applications/Xcode_13.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h	2021-06-01 23:01:58.000000000 -0400
@@ -33,6 +33,7 @@
 #import <AuthenticationServices/ASAuthorizationSingleSignOnProvider.h>
 #import <AuthenticationServices/ASAuthorizationSingleSignOnRequest.h>
 #import <AuthenticationServices/ASAuthorizationProviderExtensionAuthorizationRequest.h>
+#import <AuthenticationServices/ASAuthorizationProviderExtensionAuthorizationResult.h>
 
 #import <AuthenticationServices/ASExtensionErrors.h>
 
@@ -48,3 +49,4 @@
 #import <AuthenticationServices/ASAuthorizationAppleIDButton.h>
 #endif // !TARGET_OS_WATCH
 
+
Clone this wiki locally