-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PassKit] Update bindings for Xcode 14 beta 1-5 (#15613)
* Starting Xcode14 changes for PassKit Beta 123 * use protocol correctly, ignore conformance * make suggested changes * add the abstract to the ignore files * removing disabledefaultctor * remove empty todo files * use manual file for same type constructors and beta changes * adjust apiselector test Co-authored-by: TJ Lambert <[email protected]> Co-authored-by: Manuel de la Pena <[email protected]> Co-authored-by: Alex Soto <[email protected]>
- Loading branch information
1 parent
2705912
commit b6ece9e
Showing
13 changed files
with
666 additions
and
558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using System; | ||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
#nullable enable | ||
|
||
namespace PassKit { | ||
|
||
#if !TVOS && !WATCH | ||
public partial class PKShareablePassMetadata | ||
{ | ||
|
||
#if NET | ||
[SupportedOSPlatform ("ios16.0")] | ||
[SupportedOSPlatform ("macos13.0")] | ||
[SupportedOSPlatform ("maccatalyst16.0")] | ||
[UnsupportedOSPlatform ("tvos")] | ||
#else | ||
[iOS (16,0), Mac (13,0), MacCatalyst (16,0)] | ||
#endif | ||
public enum CardType { | ||
Template = 0, | ||
Configuration = 1, | ||
} | ||
|
||
#if NET | ||
[SupportedOSPlatform ("ios16.0")] | ||
[SupportedOSPlatform ("macos13.0")] | ||
[SupportedOSPlatform ("maccatalyst16.0")] | ||
[UnsupportedOSPlatform ("tvos")] | ||
#else | ||
[iOS (16,0), Mac (13,0), MacCatalyst (16,0)] | ||
#endif | ||
public PKShareablePassMetadata (string credentialIdentifier, string sharingInstanceIdentifier, string templateIdentifier, PKShareablePassMetadataPreview preview) : | ||
this (credentialIdentifier, sharingInstanceIdentifier, templateIdentifier, preview, CardType.Template) | ||
{ | ||
} | ||
|
||
#if NET | ||
[SupportedOSPlatform ("ios16.0")] | ||
[SupportedOSPlatform ("macos13.0")] | ||
[SupportedOSPlatform ("maccatalyst16.0")] | ||
[UnsupportedOSPlatform ("tvos")] | ||
#else | ||
[iOS (16,0), Mac (13,0), MacCatalyst (16,0)] | ||
#endif | ||
public PKShareablePassMetadata (string credentialIdentifier, string sharingInstanceIdentifier, string templateIdentifier, PKShareablePassMetadataPreview preview, CardType cardType) : base (NSObjectFlag.Empty) | ||
{ | ||
switch (cardType) { | ||
case CardType.Template: | ||
InitializeHandle (InitWithCardTemplate (credentialIdentifier, sharingInstanceIdentifier, templateIdentifier, preview), | ||
"initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardTemplateIdentifier:preview:"); | ||
break; | ||
case CardType.Configuration: | ||
InitializeHandle (InitWithCardConfiguration (credentialIdentifier, sharingInstanceIdentifier, templateIdentifier, preview), | ||
"initWithProvisioningCredentialIdentifier:sharingInstanceIdentifier:cardConfigurationIdentifier:preview:"); | ||
break; | ||
default: | ||
throw new ArgumentOutOfRangeException (nameof (cardType)); | ||
} | ||
} | ||
} | ||
#endif // !TVOS && !WATCH | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b6ece9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ API diff for current PR / commit
Legacy Xamarin (No breaking changes)
tvOS(no change detected).NET (No breaking changes)
tvOS: (empty diff detected)❗ API diff vs stable (Breaking changes)
Legacy Xamarin (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
.NET (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
Legacy Xamarin (stable) vs .NET
ℹ️ Generator diff
Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)
Pipeline on Agent
Hash: b6ece9e175c5bc4d96eaab4ffe1a05ded929d90f [CI build]
b6ece9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💻 [CI Build] Tests on macOS Mac Catalina (10.15) passed 💻
✅ All tests on macOS Mac Catalina (10.15) passed.
Pipeline on Agent
Hash: b6ece9e175c5bc4d96eaab4ffe1a05ded929d90f [CI build]
b6ece9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ [CI Build] Tests on macOS M1 - Mac Big Sur (11.5) failed ❌
Failed tests are:
Pipeline on Agent
Hash: b6ece9e175c5bc4d96eaab4ffe1a05ded929d90f [CI build]
b6ece9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📚 [CI Build] Artifacts 📚
Packages generated
View packages
Pipeline on Agent XAMMINI-061.Monterey'
Hash: b6ece9e175c5bc4d96eaab4ffe1a05ded929d90f [CI build]
b6ece9e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 [CI Build] Test results 🔥
Test results
❌ Tests failed on VSTS: simulator tests
0 tests crashed, 2 tests failed, 226 tests passed.
Failures
❌ bcl tests
Html Report (VSDrops) Download
❌ introspection tests
Html Report (VSDrops) Download
Successes
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests: All 1 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 7 tests passed. Html Report (VSDrops) Download
✅ framework: All 8 tests passed. Html Report (VSDrops) Download
✅ generator: All 2 tests passed. Html Report (VSDrops) Download
✅ interdependent_binding_projects: All 7 tests passed. Html Report (VSDrops) Download
✅ install_source: All 1 tests passed. Html Report (VSDrops) Download
✅ linker: All 65 tests passed. Html Report (VSDrops) Download
✅ mac_binding_project: All 1 tests passed. Html Report (VSDrops) Download
✅ mmp: All 2 tests passed. Html Report (VSDrops) Download
✅ mononative: All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 23 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ mtouch: All 1 tests passed. Html Report (VSDrops) Download
✅ xammac: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 8 tests passed. Html Report (VSDrops) Download
✅ xtro: All 2 tests passed. Html Report (VSDrops) Download
Pipeline on Agent
Hash: [CI build]