Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accounts] Update to Xcode 9 Beta 1 #2205

Merged
merged 2 commits into from
Jun 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
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
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