Skip to content

Commit

Permalink
[CarPlay] Add support for Xcode 14 beta 1&2. (#15403)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque authored Jul 7, 2022
1 parent a18e422 commit 111f37f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
31 changes: 29 additions & 2 deletions src/carplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ interface CPAlertAction : NSSecureCoding {
[Export ("initWithTitle:style:handler:")]
NativeHandle Constructor (string title, CPAlertActionStyle style, Action<CPAlertAction> handler);

[NoWatch, NoTV, NoMac, iOS (16,0)]
[Export ("initWithTitle:color:handler:")]
NativeHandle Constructor (string title, UIColor color, Action<CPAlertAction> handler);

[Export ("title")]
string Title { get; }

Expand All @@ -218,6 +222,11 @@ interface CPAlertAction : NSSecureCoding {

[Export ("handler", ArgumentSemantic.Copy)]
Action<CPAlertAction> Handler { get; }

[NullAllowed]
[NoWatch, NoTV, NoMac, iOS (16,0)]
[Export ("color", ArgumentSemantic.Copy)]
UIColor Color { get; }
}

delegate void CPBarButtonHandler (CPBarButton button);
Expand Down Expand Up @@ -1736,9 +1745,13 @@ interface CPNowPlayingImageButton
interface CPPointOfInterest : NSSecureCoding
{
[Export ("initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:")]
[DesignatedInitializer]
NativeHandle Constructor (MKMapItem location, string title, [NullAllowed] string subtitle, [NullAllowed] string summary, [NullAllowed] string detailTitle, [NullAllowed] string detailSubtitle, [NullAllowed] string detailSummary, [NullAllowed] UIImage pinImage);

[iOS (16,0)]
[Export ("initWithLocation:title:subtitle:summary:detailTitle:detailSubtitle:detailSummary:pinImage:selectedPinImage:")]
[DesignatedInitializer]
NativeHandle Constructor (MKMapItem location, string title, [NullAllowed] string subtitle, [NullAllowed] string summary, [NullAllowed] string detailTitle, [NullAllowed] string detailSubtitle, [NullAllowed] string detailSummary, [NullAllowed] UIImage pinImage, [NullAllowed] UIImage selectedPinImage);

[Export ("location", ArgumentSemantic.Strong)]
MKMapItem Location { get; set; }

Expand Down Expand Up @@ -1771,6 +1784,20 @@ interface CPPointOfInterest : NSSecureCoding

[NullAllowed, Export ("userInfo", ArgumentSemantic.Strong)]
NSObject UserInfo { get; set; }

[iOS (16, 0)]
[Static]
[Export ("pinImageSize")]
CGSize PinImageSize { get; }

[iOS (16, 0)]
[Static]
[Export ("selectedPinImageSize")]
CGSize SelectedPinImageSize { get; }

[iOS (16, 0)]
[NullAllowed, Export ("selectedPinImage", ArgumentSemantic.Strong)]
UIImage SelectedPinImage { get; set; }
}

interface ICPPointOfInterestTemplateDelegate { }
Expand All @@ -1795,7 +1822,7 @@ interface CPPointOfInterestTemplateDelegate
[NoWatch, NoTV, NoMac, iOS (14,0)]
[BaseType (typeof (CPTemplate))]
[DisableDefaultCtor]
interface CPPointOfInterestTemplate
interface CPPointOfInterestTemplate : CPBarButtonProviding
{
[Export ("initWithTitle:pointsOfInterest:selectedIndex:")]
[DesignatedInitializer]
Expand Down
9 changes: 0 additions & 9 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-CarPlay.todo

This file was deleted.

9 changes: 0 additions & 9 deletions tests/xtro-sharpie/iOS-CarPlay.todo

This file was deleted.

5 comments on commit 111f37f

@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)
  • iOS: vsdrops gist (No breaking changes)
  • tvOS (no change detected)
  • watchOS (no change detected)
  • macOS (no change detected)
.NET (No breaking changes)
  • iOS: vsdrops gist (No breaking changes)
  • tvOS: (empty diff detected)
  • MacCatalyst: (empty diff detected)
  • macOS: (empty diff detected)

❗ 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: 111f37fda33075a3b23d32c04205d353257a7e76 [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 Mac Catalina (10.15) passed 💻

All tests on macOS Mac Catalina (10.15) passed.

Pipeline on Agent
Hash: 111f37fda33075a3b23d32c04205d353257a7e76 [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) failed ❌

Failed tests are:

  • xammac_tests
  • monotouch-test

Pipeline on Agent
Hash: 111f37fda33075a3b23d32c04205d353257a7e76 [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

❌ Tests failed on VSTS: simulator tests

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

Failures

❌ introspection tests

1 tests failed, 12 tests passed.
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 6.0): Crashed Known issue: HE0038)

Html Report (VSDrops) Download

❌ mtouch tests

1 tests failed, 0 tests passed.
  • MTouch tests/NUnit: Failed (Execution failed with exit code 19)

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
✅ 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
✅ 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 12 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 23 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 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: [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 XAMMINI-052.Monterey'
Hash: 111f37fda33075a3b23d32c04205d353257a7e76 [CI build]

Please sign in to comment.