Skip to content

Commit

Permalink
[devicecheck] Update for Xcode 12 beta 2 (#9145)
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Jul 21, 2020
1 parent f36b2ae commit 5cdfa2e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
31 changes: 30 additions & 1 deletion src/devicecheck.cs
Expand Up @@ -20,7 +20,10 @@ namespace DeviceCheck {
[Native]
public enum DCError : long {
UnknownSystemFailure,
FeatureUnsupported
FeatureUnsupported,
InvalidInput,
InvalidKey,
ServerUnavailable,
}

[TV (11,0), NoWatch, iOS (11,0)]
Expand All @@ -44,4 +47,30 @@ interface DCDevice {
[Export ("generateTokenWithCompletionHandler:")]
void GenerateToken (DCDeviceGenerateTokenCompletionHandler completion);
}

[NoWatch, NoTV, NoMac]
[iOS (14,0)]
[DisableDefaultCtor]
[BaseType (typeof (NSObject))]
interface DCAppAttestService {

[Static]
[Export ("sharedService")]
DCAppAttestService SharedService { get; }

[Export ("supported")]
bool Supported { [Bind ("isSupported")] get; }

[Async]
[Export ("generateKeyWithCompletionHandler:")]
void GenerateKey (Action<string, NSError> completionHandler);

[Async]
[Export ("attestKey:clientDataHash:completionHandler:")]
void AttestKey (string keyId, NSData clientDataHash, Action<NSData, NSError> completionHandler);

[Async]
[Export ("generateAssertion:clientDataHash:completionHandler:")]
void GenerateAssertion (string keyId, NSData clientDataHash, Action<NSData, NSError> completionHandler);
}
}
6 changes: 0 additions & 6 deletions tests/xtro-sharpie/iOS-DeviceCheck.todo

This file was deleted.

1 comment on commit 5cdfa2e

@xamarin-release-manager
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Running XM tests on '10.16', Running XM tests on '10.14', Running XM tests on '10.14'' 🔥

Build succeeded
✅ Packages:

API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)
🔥 Xamarin.Mac tests on 10.16 failed: Xamarin.Mac tests on macOS 10.16 failed (dontlink, apitest, introspection, linksdk, linkall, xammac_tests, dontlink (system)) 🔥
🔥 Xamarin.Mac tests on 10.14 failed: Xamarin.Mac tests on macOS 10.14 failed (xammac_tests) 🔥
🔥 Test run failed 🔥

Test results

2 tests failed, 183 tests passed.

Failed tests

  • Generator tests/NUnit: Failed (Execution failed with exit code 1)
  • Generator tests/.NET: Failed (Execution failed with exit code 1)

Please sign in to comment.