Skip to content

Commit

Permalink
[Accounts] Uodate to Xcode 9 Beta 1
Browse files Browse the repository at this point in the history
Also added ACAccountStore.RemoveAccount, xtro caught this API
common.unclassified:!missing-selector! ACAccountStore::removeAccount:withCompletionHandler: not bound
  • Loading branch information
dalexsoto committed Jun 10, 2017
1 parent 9356b53 commit 36f2ac0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ interface ACAccountCredential : NSSecureCoding {
}

delegate void ACAccountStoreSaveCompletionHandler (bool success, NSError error);
delegate void ACAccountStoreRemoveCompletionHandler (bool success, NSError error);
delegate void ACRequestCompletionHandler (bool granted, NSError error);

[Since (5,0)]
Expand Down Expand Up @@ -112,6 +113,11 @@ interface ACAccountStore {
[Wrap ("RequestAccess (accountType, options == null ? null : options.Dictionary, completion)")]
[Async]
void RequestAccess (ACAccountType accountType, [NullAllowed] AccountStoreOptions options, ACRequestCompletionHandler completion);

[iOS (6,0)]
[Export ("removeAccount:withCompletionHandler:")]
[Async]
void RemoveAccount (ACAccount account, ACAccountStoreRemoveCompletionHandler completionHandler);
}

[Since (5,0)]
Expand All @@ -127,29 +133,40 @@ interface ACAccountType : NSSecureCoding {
[Export ("accessGranted")]
bool AccessGranted { get; }

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Twitter SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Twitter SDK instead")]
[Field ("ACAccountTypeIdentifierTwitter")]
NSString Twitter { get; }

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Sina Weibo SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Sina Weibo SDK instead")]
[Since (6,0)]
[Field ("ACAccountTypeIdentifierSinaWeibo")]
NSString SinaWeibo { get; }

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Facebook SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Facebook SDK instead")]
[Since (6,0)]
[Field ("ACAccountTypeIdentifierFacebook")]
NSString Facebook { get; }

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Tencent Weibo SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Tencent Weibo SDK instead")]
[Since (7,0)]
[Mac (10,9)]
[Field ("ACAccountTypeIdentifierTencentWeibo")]
NSString TencentWeibo { get; }

#if MONOMAC
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use LinkedIn SDK instead")]
[Mac (10,9)]
[Field ("ACAccountTypeIdentifierLinkedIn")]
NSString LinkedIn { get; }
#endif
}

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Facebook SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Facebook SDK instead")]
[Since (6,0)]
[Mac (10,8, onlyOn64 : true)]
[Static]
Expand All @@ -165,6 +182,8 @@ interface ACFacebookKey {
NSString Audience { get; }
}

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Facebook SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Facebook SDK instead")]
[Since (6,0)]
[Mac (10,8, onlyOn64 : true)]
[Static]
Expand All @@ -180,6 +199,8 @@ interface ACFacebookAudienceValue
NSString OnlyMe { get; }
}

[Deprecated (PlatformName.iOS, 11, 0, message: "Use Tencent Weibo SDK instead")]
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use Tencent Weibo SDK instead")]
[Since (7,0)]
[Mac (10,9, onlyOn64 : true)]
[Static]
Expand All @@ -189,6 +210,7 @@ interface ACTencentWeiboKey {
}

#if MONOMAC
[Deprecated (PlatformName.MacOSX, 10, 13, message: "Use LinkedIn SDK instead")]
[Mac (10,9, onlyOn64 : true)]
[Static]
interface ACLinkedInKey {
Expand Down
3 changes: 3 additions & 0 deletions tests/xtro-sharpie/osx.pending
Original file line number Diff line number Diff line change
Expand Up @@ -456,3 +456,6 @@
!missing-selector! MPMediaEntity::objectForKeyedSubscript: not bound
!missing-selector! MPMediaEntity::valueForProperty: not bound
!missing-selector! MPMediaItemArtwork::imageCropRect not bound

# Not available in OS X
!missing-selector! ACAccount::userFullName not bound

0 comments on commit 36f2ac0

Please sign in to comment.