-
Notifications
You must be signed in to change notification settings - Fork 519
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
[net9.0] Merge main into net9.0. #20654
[net9.0] Merge main into net9.0. #20654
Conversation
…t#14039. (dotnet#20583) Add support for binding constructors in protocols. Given the api definition: ```cs [Protocol] public interface Protocol { [Abstract] [Export ("init")] IntPtr Constructor (); [Export ("initWithValue:")] IntPtr Constructor (IntPtr value); [BindAs ("Create")] [Export ("initWithPlanet:")] IntPtr Constructor (); } ``` we're binding it like this: ```cs [Protocol ("Protocol")] public interface IProtocol : INativeObject { [Export ("init")] public static T CreateInstance<T> () where T: NSObject, IProtocol { /* default implementation */ } [Export ("initWithValue:")] public static T CreateInstance<T> () where T: NSObject, IProtocol { /* default implementation */ } [Export ("initWithPlanet:")] public static T Create<T> () where T: NSObject, IProtocol { /* default implementation */ } } ``` Also add documentation and tests. Fixes dotnet#14039. --------- Co-authored-by: Manuel de la Pena <[email protected]> Co-authored-by: Alex Soto <[email protected]>
In C# there are two ways to specify that a comment is an xml documentation comment: 1. The single-line '///'' 2. The multi-line '/** ... **/' TIL about the second one, when my upcoming tool to migrate API documentation to xml comments complained that these members already had an xml comment. This seems entirely accidental, so just remove/rewrite these few comments. Also fix a few other typos, grammar mistakes, etc.
…geSourceTest. (dotnet#20640) The exact results seem to depend on a lot of factors, so just accept them all.
…tnet#20062. (dotnet#20623) Version the Xamarin.Localization.MSBuild assembly correctly (instead of hardcoding a 1.0.0 version - implicitly so because no version was set), so that we can load multiple versions of the assembly into the same process. Fixes dotnet#20062.
…otnet#20641) GCMouse doesn't conform to NSCoding/NSSecureCoding, so fix the API definition. Since this would be a breaking change, also add compat code to preserve binary compatibility. Fixes this test: Introspection.MacApiSelectorTest [FAIL] InstanceMethods : 1 errors found in 33428 instance selector validated: Selector not found for GameController.GCMouse : encodeWithCoder: in Void EncodeTo(Foundation.NSCoder) on GameController.GCMouse Expected: 0 But was: 1 [FAIL] Selector not found for GameController.GCMouse : encodeWithCoder: in Void EncodeTo(Foundation.NSCoder) on GameController.GCMouse at Introspection.ApiSelectorTest.InstanceMethods() in /Users/rolf/work/maccore/net9.0/xamarin-macios/tests/introspection/ApiSelectorTest.cs:line 1121
💻 [PR Build] Tests on macOS M1 - Mac Ventura (13) passed 💻✅ All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
📚 [PR Build] Artifacts 📚Packages generatedView packagesPipeline on Agent |
💻 [PR Build] Tests on macOS M1 - Mac Monterey (12) passed 💻✅ All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
❌ [CI Build] Windows Integration Tests failed ❌❌ Failed ❌ Pipeline on Agent |
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
.NET (No breaking changes)✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
💻 [PR Build] Tests on macOS X64 - Mac Sonoma (14) passed 💻✅ All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
🚀 [CI Build] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 172 tests passed 🎉 Tests counts✅ cecil: All 1 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
Test failures are unrelated (#19926). |
No description provided.