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

Fix #9996 and #15622 #15642

Merged
merged 18 commits into from
Aug 22, 2022
Merged

Fix #9996 and #15622 #15642

merged 18 commits into from
Aug 22, 2022

Conversation

janwiebe-jump
Copy link
Contributor

As discussed in #9996 the CPListSection constructors are not fully correct, since the CPListImageRowItem can't be added to it, which is possible in the native iOS SDK.
This PR fixes that. With that, also #15622 seems to be fixed.

@mandel-macaque
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

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

I believe we need to Obsolete and leave the old ones while providing a path for users to upgrade rather that break the API. Nevertheless I have triggered the build to confirm the API will be broken.

src/carplay.cs Show resolved Hide resolved
src/carplay.cs Show resolved Hide resolved
@mandel-macaque
Copy link
Member

@janwiebe-jump Thanks for the fix! I have some small concerts which I left in the review.

@mandel-macaque mandel-macaque added the community Community contribution ❤ label Aug 5, 2022
@janwiebe-jump
Copy link
Contributor Author

Thanks @mandel-macaque , good catch indeed.
I re-added the old constructors, and added the Obsolete attribute.
Next to that, I also added the Items[] property (besides the existing) to conform to the iOS api.

Copy link
Member

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

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

We still need to wrap the old api with a #if so that next time we have the chance to break APIs we do not expose something wrong :)

src/carplay.cs Outdated Show resolved Hide resolved
src/carplay.cs Outdated Show resolved Hide resolved
src/carplay.cs Outdated Show resolved Hide resolved
janwiebe-jump and others added 4 commits August 5, 2022 17:29
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Copy link
Member

@mandel-macaque mandel-macaque left a comment

Choose a reason for hiding this comment

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

Lets see what the tests got to see. But the changes look good to me.

@mandel-macaque
Copy link
Member

/azp run

@janwiebe-jump
Copy link
Contributor Author

Hmm, the Items property

Lets see what the tests got to see. But the changes look good to me.

Thanks. I am curious how the duplicate Items[] works out

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mandel-macaque
Copy link
Member

@janwiebe-jump I suspect is going to fail, but it an easy fix (ugly, but doable). I'll keep an eye as according tot he failures I might propose a code change.

@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/carplay.cs Outdated Show resolved Hide resolved
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
src/carplay.cs Outdated Show resolved Hide resolved
src/carplay.cs Outdated Show resolved Hide resolved
src/carplay.cs Outdated Show resolved Hide resolved
janwiebe-jump and others added 3 commits August 5, 2022 20:24
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Alex Soto <alex@alexsoto.me>
Co-authored-by: Alex Soto <alex@alexsoto.me>
@mandel-macaque
Copy link
Member

/azp run

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dalexsoto
Copy link
Member

Looks like our CI is having a hard time :(

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

@rolfbjarne
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

@rolfbjarne
Copy link
Member

It doesn't compile:

build/dotnet/ios/generated-sources/CarPlay/CPListSection.g.cs(387,42): error CS8115: A throw expression is not allowed in this context.
build/dotnet/ios/generated-sources/CarPlay/CPListSection.g.cs(387,48): error CS0039: Cannot convert type 'System.InvalidOperationException' to 'Foundation.NSArray' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
make[1]: *** [build/dotnet/ios/32/Microsoft.iOS.dll] Error 1

@dalexsoto
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Failed to compare API and create generator diff 🔥

Error: 'make' failed for the hash 1f12270.

Pipeline on Agent
Hash: 1fcaeca530e72a118d9e4292b849dd9aedc199bf [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent XAMBOT-1109.Monterey'
Hash: 1fcaeca530e72a118d9e4292b849dd9aedc199bf [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS Mac Catalina (10.15) passed 💻

All tests on macOS Mac Catalina (10.15) passed.

Pipeline on Agent
Hash: 1fcaeca530e72a118d9e4292b849dd9aedc199bf [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed ❌

Failed tests are:

  • introspection
  • xammac_tests
  • monotouch-test

Pipeline on Agent
Hash: 1fcaeca530e72a118d9e4292b849dd9aedc199bf [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build] Test results 🚀

Test results

✅ All tests passed on VSTS: simulator tests.

🎉 All 223 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 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
✅ 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: [PR build]

@rolfbjarne
Copy link
Member

Thanks a lot for your help!

@janwiebe-jump janwiebe-jump deleted the fix-9996 branch September 5, 2022 07:13
@janwiebe-jump
Copy link
Contributor Author

Hi @rolfbjarne,
Thanks a lot, also for your ant the team's assistance!
Will this also be released as a xamarin-ios version that I can use in my Xamarin iOS (Forms) app? We can't yet move to MAUI / .NET 6, due to a lot of dependencies, so I would strongly prefer a xamarin-ios.pkg version with this fix included, so we can release our CarPlay app.
Thanks so much!

@rolfbjarne
Copy link
Member

@janwiebe-jump yes, this will be released in a xamarin-ios.pkg (when we release support for Xcode 14, the packages will contain your fix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution ❤
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants