Skip to content

Commit

Permalink
[release/8.0.1xx] [AppKit] Add support for Xcode 15. (#19338)
Browse files Browse the repository at this point in the history
Backport of #19119.

---------

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
  • Loading branch information
rolfbjarne and mandel-macaque committed Oct 25, 2023
1 parent ecfa1b8 commit 8fec0a3
Show file tree
Hide file tree
Showing 16 changed files with 762 additions and 442 deletions.
90 changes: 88 additions & 2 deletions src/AppKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ public enum NSButtonType : ulong {
[NoMacCatalyst]
[Native]
public enum NSBezelStyle : ulong {
Automatic = 0,
Rounded = 1,
RegularSquare,
ThickSquare,
Expand Down Expand Up @@ -1206,7 +1207,12 @@ public enum NSWindingRule : ulong {
[NoMacCatalyst]
[Native]
public enum NSBezierPathElement : ulong {
MoveTo, LineTo, CurveTo, ClosePath
MoveTo,
LineTo,
CurveTo,
ClosePath,
[Mac (14, 0)]
QuadraticCurveTo,
}
#endregion

Expand Down Expand Up @@ -1817,7 +1823,9 @@ public enum NSSplitViewDividerStyle : long {
public enum NSSplitViewItemBehavior : long {
Default,
Sidebar,
ContentList
ContentList,
[Mac (14, 0)]
Inspector,
}

[NoMacCatalyst]
Expand Down Expand Up @@ -3151,4 +3159,82 @@ public enum NSComboButtonStyle : long {
Split = 0,
Unified = 1,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSImageDynamicRange : long {
Unspecified = -1,
Standard = 0,
ConstrainedHigh = 1,
High = 2,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSMenuItemBadgeType : long {
None = 0,
Updates,
NewItems,
Alerts,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSMenuPresentationStyle : long {
Regular = 0,
Palette = 1,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSMenuSelectionMode : long {
Automatic = 0,
SelectOne = 1,
SelectAny = 2,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSPageLayoutResult : long {
Cancelled = 0,
Changed,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSPrintPanelResult : long {
Cancelled = 0,
Printed,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSTextCursorAccessoryPlacement : long {
Unspecified,
Backward,
Forward,
Invisible,
Center,
OffscreenLeft,
OffscreenTop,
OffscreenRight,
OffscreenBottom,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
[Flags]
public enum NSTextInsertionIndicatorAutomaticModeOptions : long {
EffectsView = 1L << 0,
WhileTracking = 1L << 1,
}

[NoMacCatalyst, Mac (14, 0)]
[Native]
public enum NSTextInsertionIndicatorDisplayMode : long {
Automatic = 0,
Hidden,
Visible,
}

}
1 change: 1 addition & 0 deletions src/Foundation/NSAttributedStringDocumentAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#if !COREBUILD && HAS_WEBKIT
using WebKit;
#endif
using ObjCRuntime;

#if !COREBUILD
#if __MACOS__
Expand Down
Loading

6 comments on commit 8fec0a3

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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: 8fec0a3964b0b5b12fb002a6fc09cffb836c2263 [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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)
.NET (No breaking changes)

✅ 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: 8fec0a3964b0b5b12fb002a6fc09cffb836c2263 [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

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

📚 [CI Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent
Hash: [CI build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

✅ All tests passed on VSTS: simulator tests.

🎉 All 235 tests passed 🎉

Tests counts

✅ 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
✅ framework: All 8 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 8 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
✅ mononative: All 6 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 41 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: 8fec0a3964b0b5b12fb002a6fc09cffb836c2263 [CI build]

Please sign in to comment.