Skip to content

[Bgen] Simplify the NSValue BindAS generated code.#22257

Merged
mandel-macaque merged 4 commits into
mainfrom
dev/mandel/nsvalue-bindas-simplify
Mar 3, 2025
Merged

[Bgen] Simplify the NSValue BindAS generated code.#22257
mandel-macaque merged 4 commits into
mainfrom
dev/mandel/nsvalue-bindas-simplify

Conversation

@mandel-macaque
Copy link
Copy Markdown
Contributor

As with previous changes, move to use a method group instead of a lambda with a using block.

We only add the new methods in those platforms that have the specifict frameworks by using partial class. That way we keep the code cleaner than with a collection of #if statements.

As with previous changes, move to use a method group instead of a lambda
with a using block.

We only add the new methods in those platforms that have the specifict
frameworks by using partial class. That way we keep the code cleaner
than with a collection of #if statements.
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Your code has been reformatted. ⚠️

If this is not desired, add the actions-disable-autoformat label, and revert the reformatting commit.

If files unrelated to your change were modified, try reverting the reformatting commit + merging with the target branch (and push those changes).

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [CI Build #371130a] Windows Integration Tests passed 💻

All Windows Integration Tests passed.

Pipeline on Agent
Hash: 371130a7b25819f7f2999187c6e2b5ec9b0de8a8 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Comment thread src/bgen/TypeManager.cs Outdated
Comment on lines +180 to +183
new(TypeCache.CMTimeRange, "ToCMTimeRange"),
new(TypeCache.CMTime, "ToCMTime"),
new(TypeCache.CMTimeMapping, "ToCMTimeMapping"),
new (TypeCache.CMVideoDimensions, "ToCMVideoDimensions"),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Whitespace is inconsistent here.

@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You forgot to add this file to frameworks.sources.

Comment thread src/bgen/TypeManager.cs
new(TypeCache.CoreGraphics_CGRect, "ToCGRect"),
new(TypeCache.CoreGraphics_CGSize, "ToCGSize"),
new(TypeCache.MKCoordinateSpan, "ToMKCoordinateSpan"),
};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you need NSDirectionalEdgeInsets as well.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #99ecca0] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #99ecca0] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🔥 Failed to compare API and create generator diff 🔥

Error: 'make' failed for the hash a8168d3.

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #99ecca0] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [PR Build #99ecca0] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [PR Build #99ecca0] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [PR Build #99ecca0] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [PR Build #99ecca0] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🚀 [CI Build #99ecca0] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 114 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ linker: All 44 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (iOS): All 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 8 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 99ecca0e239c67ff0a6dbd1bad10ac2540d08b6a [PR build]

@mandel-macaque mandel-macaque merged commit 74636f5 into main Mar 3, 2025
@mandel-macaque mandel-macaque deleted the dev/mandel/nsvalue-bindas-simplify branch March 3, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants