Skip to content
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

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

Merged

Conversation

mandel-macaque
Copy link
Member

No description provided.

@mandel-macaque
Copy link
Member Author

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

@github-actions
Copy link
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
src/symbols.cs Outdated
interface NSSymbolEffectOptions : NSCopying, NSSecureCoding {
[Static]
[Export ("options")]
NSSymbolEffectOptions CreateOptions ();
Copy link
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 ();

src/symbols.cs Outdated

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

src/symbols.cs Outdated
NSSymbolPulseEffect CreateEffect ();

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

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

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

src/symbols.cs Outdated
NSSymbolVariableColorEffect CreateEffect ();

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

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

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

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

[Export ("effectWithWholeSymbol")]
NSSymbolScaleEffect GetEffectWithWholeSymbol ();
Copy link
Member

Choose a reason for hiding this comment

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

Simplified properties

src/symbols.cs Outdated
interface NSSymbolAutomaticContentTransition {
[Static]
[Export ("transition")]
NSSymbolAutomaticContentTransition CreateTransition ();
Copy link
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.

src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
Co-authored-by: Rolf Bjarne Kvinge <[email protected]>
@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 <[email protected]>
@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
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 👍

src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
src/symbols.cs Outdated Show resolved Hide resolved
@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 <[email protected]>
@vs-mobiletools-engineering-service2
Copy link
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
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
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
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
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
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.
  • framework-test/Mac Modern/Debug: BuildFailure

Html Report (VSDrops) Download

❌ mononative tests

1 tests failed, 5 tests passed.
  • 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
Member Author

Failures are un related.

@mandel-macaque mandel-macaque merged commit d5d14f6 into xamarin:net8.0-xcode15 Aug 15, 2023
72 of 77 checks passed
@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