Skip to content

[Symbols] Add support for the new Xcode 15 Symbols framework.#18642

Merged
mandel-macaque merged 15 commits intodotnet:net8.0-xcode15from
mandel-macaque:net8.0-xcode15-symbols
Aug 15, 2023
Merged

[Symbols] Add support for the new Xcode 15 Symbols framework.#18642
mandel-macaque merged 15 commits intodotnet:net8.0-xcode15from
mandel-macaque:net8.0-xcode15-symbols

Conversation

@mandel-macaque
Copy link
Copy Markdown
Contributor

No description provided.

@mandel-macaque
Copy link
Copy Markdown
Contributor Author

Leaving as draft until we land the xcode15 support. But good to keep the record straight.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 5, 2023

⚠️ 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.

@mandel-macaque mandel-macaque marked this pull request as ready for review August 8, 2023 14:32
Comment thread src/symbols.cs Outdated
interface NSSymbolEffectOptions : NSCopying, NSSecureCoding {
[Static]
[Export ("options")]
NSSymbolEffectOptions CreateOptions ();
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 it sounds better if you remove Options:

Suggested change
NSSymbolEffectOptions CreateOptions ();
NSSymbolEffectOptions Create ();

Comment thread src/symbols.cs Outdated

[Static]
[Export ("optionsWithRepeating")]
NSSymbolEffectOptions CreateOptionsWithRepeating ();
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.

Same, but also removing With:

Suggested change
NSSymbolEffectOptions CreateOptionsWithRepeating ();
NSSymbolEffectOptions CreateRepeating ();

and the same for the other Get and Create methods here.

This matches the Swift names better (and also sounds better).

Comment thread src/symbols.cs Outdated
NSSymbolPulseEffect CreateEffect ();

[Export ("effectWithByLayer")]
NSSymbolPulseEffect GetEffectWithByLayer ();
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.

These are properties in Swift (https://developer.apple.com/documentation/symbols/pulsesymboleffect/4197828-bylayer)

Suggested change
NSSymbolPulseEffect GetEffectWithByLayer ();
NSSymbolPulseEffect ByLayer { get; }

Comment thread src/symbols.cs Outdated
Comment on lines +82 to +86
[Export ("effectWithByLayer")]
NSSymbolBounceEffect GetEffectWithByLayer ();

[Export ("effectWithWholeSymbol")]
NSSymbolBounceEffect GetEffectWithWholeSymbol ();
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.

Same, these can be properties and named better.

Comment thread src/symbols.cs Outdated
NSSymbolVariableColorEffect CreateEffect ();

[Export ("effectWithIterative")]
NSSymbolVariableColorEffect GetEffectWithIterative ();
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.

Same, simplified and property:

Suggested change
NSSymbolVariableColorEffect GetEffectWithIterative ();
NSSymbolVariableColorEffect Iterative { get; }

Comment thread src/symbols.cs Outdated
interface NSSymbolVariableColorEffect {
[Static]
[Export ("effect")]
NSSymbolVariableColorEffect CreateEffect ();
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.

Suggested change
NSSymbolVariableColorEffect CreateEffect ();
NSSymbolVariableColorEffect Create ();

Comment thread src/symbols.cs Outdated
interface NSSymbolScaleEffect {
[Static]
[Export ("effect")]
NSSymbolScaleEffect CreateEffect ();
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.

Suggested change
NSSymbolScaleEffect CreateEffect ();
NSSymbolScaleEffect Create ();

Comment thread src/symbols.cs Outdated
Comment on lines +130 to +134
[Export ("effectWithByLayer")]
NSSymbolScaleEffect GetEffectWithByLayer ();

[Export ("effectWithWholeSymbol")]
NSSymbolScaleEffect GetEffectWithWholeSymbol ();
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.

Simplified properties

Comment thread src/symbols.cs Outdated
interface NSSymbolAutomaticContentTransition {
[Static]
[Export ("transition")]
NSSymbolAutomaticContentTransition CreateTransition ();
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 stopped suggesting, they all follow the same pattern :)

@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.

Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Comment thread src/symbols.cs Outdated
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
@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.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
@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.

Copy link
Copy Markdown
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

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

Nice 👍

Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Comment thread src/symbols.cs
Co-authored-by: Alex Soto <alex@alexsoto.me>
@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.

Co-authored-by: Alex Soto <alex@alexsoto.me>
@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

💻 [CI Build] Windows Integration Tests passed 💻

All Windows Integration Tests passed.

Pipeline on Agent
Hash: 6b8153937945672a94e4e6574709f01458ce921f [PR build]

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

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent
Hash: [PR build]

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

💻 [PR Build] Tests on macOS M1 - Mac Ventura (13.0) passed 💻

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

Pipeline on Agent
Hash: [PR build]

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

💻 [PR 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: [PR build]

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

✅ API diff for current PR / commit

Legacy Xamarin (No breaking changes)
.NET (No breaking changes)

❗ API diff vs stable (Breaking changes)

Legacy Xamarin (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • iOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • tvOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • watchOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • macOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
.NET (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • iOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • tvOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • MacCatalyst: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • macOS: vsdrops gist (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
  • Microsoft.iOS vs Microsoft.MacCatalyst: vsdrops gist
Legacy Xamarin (stable) vs .NET

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 6b8153937945672a94e4e6574709f01458ce921f [PR build]

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

🔥 [CI Build] Test results 🔥

Test results

❌ Tests failed on VSTS: simulator tests

0 tests crashed, 2 tests failed, 235 tests passed.

Failures

❌ framework tests

1 tests failed, 7 tests passed.
Details
  • framework-test/Mac Modern/Debug: BuildFailure

Html Report (VSDrops) Download

❌ mononative tests

1 tests failed, 5 tests passed.
Details
  • mono-native-unified/Mac Modern/Debug: TimedOut

Html Report (VSDrops) Download

Successes

✅ bcl: All 69 tests passed. Html Report (VSDrops) Download
✅ 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
✅ 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
✅ introspection: All 13 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
✅ monotouch: All 38 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: 6b8153937945672a94e4e6574709f01458ce921f [PR build]

@mandel-macaque
Copy link
Copy Markdown
Contributor Author

Failures are un related.

@mandel-macaque mandel-macaque merged commit d5d14f6 into dotnet:net8.0-xcode15 Aug 15, 2023
@mandel-macaque mandel-macaque deleted the net8.0-xcode15-symbols branch August 15, 2023 15:53
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