-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/8.0.1xx] [PassKit] Add support Xcode15 Beta 7 (#19306)
The bindings for PassKit Xcode15 Beta 7. Backport of #19139 --------- Co-authored-by: tj_devel709 <[email protected]>
- Loading branch information
1 parent
1551314
commit 6667bb3
Showing
15 changed files
with
331 additions
and
289 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,72 @@ | ||
// Can be uncommented when this issue is resolved: # https://github.com/xamarin/xamarin-macios/issues/19271 | ||
|
||
// #nullable enable | ||
|
||
// #if IOS && !__MACCATALYST__ | ||
|
||
// using System; | ||
// using System.Runtime.InteropServices; | ||
// using System.Runtime.CompilerServices; | ||
// using ObjCRuntime; | ||
// using Foundation; | ||
// using PassKit; | ||
|
||
// #if !NET | ||
// using NativeHandle = System.IntPtr; | ||
// #endif | ||
|
||
// namespace PassKit { | ||
|
||
// public partial class PKPayLaterView { | ||
|
||
// #if !NET | ||
// delegate void PKPayLaterValidateAmountCompletionHandler (IntPtr block, byte eligible); | ||
// static PKPayLaterValidateAmountCompletionHandler static_ValidateAmount = TrampolineValidateAmount; | ||
|
||
// [MonoPInvokeCallback (typeof (PKPayLaterValidateAmountCompletionHandler))] | ||
// #else | ||
// [UnmanagedCallersOnly] | ||
// #endif | ||
// static void TrampolineValidateAmount (IntPtr block, byte eligible) | ||
// { | ||
// var del = BlockLiteral.GetTarget<Action<bool>> (block); | ||
// if (del is not null) { | ||
// del (eligible != 0); | ||
// } | ||
// } | ||
|
||
// #if NET | ||
// [SupportedOSPlatform ("ios17.0")] | ||
// [UnsupportedOSPlatform ("maccatalyst")] | ||
// [UnsupportedOSPlatform ("macos")] | ||
// [UnsupportedOSPlatform ("tvos")] | ||
// #endif | ||
// [BindingImpl (BindingImplOptions.Optimizable)] | ||
// public static void ValidateAmount (NSDecimalNumber amount, string currencyCode, Action<bool> callback) | ||
// { | ||
// if (callback is null) | ||
// ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (callback)); | ||
|
||
// unsafe { | ||
// #if NET | ||
// delegate* unmanaged<IntPtr, byte, void> trampoline = &TrampolineValidateAmount; | ||
// using var block = new BlockLiteral (trampoline, callback, typeof (PKPayLaterView), nameof (TrampolineValidateAmount)); | ||
// #else | ||
// using var block = new BlockLiteral (); | ||
// block.SetupBlockUnsafe (static_ValidateAmount, callback); | ||
// #endif | ||
// var nsCurrencyCodePtr = NSString.CreateNative (currencyCode); | ||
// try { | ||
// PKPayLaterValidateAmount (amount.Handle, nsCurrencyCodePtr, &block); | ||
// } finally { | ||
// NSString.ReleaseNative (nsCurrencyCodePtr); | ||
// } | ||
// } | ||
// } | ||
|
||
// [DllImport (Constants.PassKitLibrary)] | ||
// unsafe static extern void PKPayLaterValidateAmount (IntPtr /* NSDecimalNumber */ amount, IntPtr /* NSString */ currencyCode, BlockLiteral* callback); | ||
// } | ||
// } | ||
|
||
// #endif |
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
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.
6667bb3
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
19 tests crashed, 0 tests failed, 0 tests passed.
Failures
❌ bcl tests
🔥 Failed catastrophically on VSTS: simulator tests - bcl (no summary found).
Html Report (VSDrops) Download
❌ cecil tests
🔥 Failed catastrophically on VSTS: simulator tests - cecil (no summary found).
Html Report (VSDrops) Download
❌ dotnettests tests
🔥 Failed catastrophically on VSTS: simulator tests - dotnettests (no summary found).
Html Report (VSDrops) Download
❌ fsharp tests
🔥 Failed catastrophically on VSTS: simulator tests - fsharp (no summary found).
Html Report (VSDrops) Download
❌ framework tests
🔥 Failed catastrophically on VSTS: simulator tests - framework (no summary found).
Html Report (VSDrops) Download
❌ generator tests
🔥 Failed catastrophically on VSTS: simulator tests - generator (no summary found).
Html Report (VSDrops) Download
❌ interdependent_binding_projects tests
🔥 Failed catastrophically on VSTS: simulator tests - interdependent_binding_projects (no summary found).
Html Report (VSDrops) Download
❌ install_source tests
🔥 Failed catastrophically on VSTS: simulator tests - install_source (no summary found).
Html Report (VSDrops) Download
❌ introspection tests
🔥 Failed catastrophically on VSTS: simulator tests - introspection (no summary found).
Html Report (VSDrops) Download
❌ linker tests
🔥 Failed catastrophically on VSTS: simulator tests - linker (no summary found).
Html Report (VSDrops) Download
❌ mac_binding_project tests
🔥 Failed catastrophically on VSTS: simulator tests - mac_binding_project (no summary found).
Html Report (VSDrops) Download
❌ mmp tests
🔥 Failed catastrophically on VSTS: simulator tests - mmp (no summary found).
Html Report (VSDrops) Download
❌ mononative tests
🔥 Failed catastrophically on VSTS: simulator tests - mononative (no summary found).
Html Report (VSDrops) Download
❌ monotouch tests
🔥 Failed catastrophically on VSTS: simulator tests - monotouch (no summary found).
Html Report (VSDrops) Download
❌ msbuild tests
🔥 Failed catastrophically on VSTS: simulator tests - msbuild (no summary found).
Html Report (VSDrops) Download
❌ mtouch tests
🔥 Failed catastrophically on VSTS: simulator tests - mtouch (no summary found).
Html Report (VSDrops) Download
❌ xammac tests
🔥 Failed catastrophically on VSTS: simulator tests - xammac (no summary found).
Html Report (VSDrops) Download
❌ xcframework tests
🔥 Failed catastrophically on VSTS: simulator tests - xcframework (no summary found).
Html Report (VSDrops) Download
❌ xtro tests
🔥 Failed catastrophically on VSTS: simulator tests - xtro (no summary found).
Html Report (VSDrops) Download
Successes
Pipeline on Agent
Hash: 6667bb3d45ec01a6401d9dd1491b798c2f279da1 [CI build]
6667bb3
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] Windows Integration Tests passed 💻
✅ All Windows Integration Tests passed.
Pipeline on Agent
Hash: 6667bb3d45ec01a6401d9dd1491b798c2f279da1 [CI build]
6667bb3
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 Ventura (13.0) passed 💻
✅ All tests on macOS M1 - Mac Ventura (13.0) passed.
Pipeline on Agent
Hash: [CI build]
6667bb3
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) passed 💻
✅ All tests on macOS M1 - Mac Big Sur (11.5) passed.
Pipeline on Agent
Hash: [CI build]
6667bb3
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
Legacy Xamarin (No breaking changes)
.NET (No breaking changes)
Legacy Xamarin (stable) vs .NET
ℹ️ Generator diff
Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)
Pipeline on Agent
Hash: 6667bb3d45ec01a6401d9dd1491b798c2f279da1 [CI build]