Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

.Net Maui Support #43

Closed
ChristianTBaker opened this issue Sep 15, 2022 · 5 comments
Closed

.Net Maui Support #43

ChristianTBaker opened this issue Sep 15, 2022 · 5 comments

Comments

@ChristianTBaker
Copy link

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
.Net Maui/.Net 6 Support

Describe alternatives you've considered
Our only realistic alternative is to move back to the in house feature flagging we used in the past.

Additional context
All Xamarin Forms apps will need to become .Net Maui applications. The lack of Maui support for Launch Darkly is one of our biggest concerns for the migration. Will this be provided in the near future? Is so, when?

@eli-darkly
Copy link
Contributor

eli-darkly commented Sep 15, 2022

Can you say more about the nature of the compatibility problem you're seeing? Like, what actually happens if you try to use the current SDK in a newer application?

This SDK is unrelated to Xamarin Forms; it has no user interface components. What it does use are the older target frameworks for Xamarin Android and Xamarin iOS-- which in .NET 6 are being superseded by the net6.0-android and net6.0-ios frameworks.

And as we described in #42, we do want future versions of the SDK to be based on those; they're going to be the standard from now on, and they're also significantly easier to build with. However, we are still trying to decide how soon to make that change, because it means we would be dropping compatibility for everyone who is not yet using the newer frameworks. And our understanding, based on everything we've seen in MS docs, was that compatibility the other way around should not be an issue— that is, a .NET 6 iOS app should be able to use an older library that was built against xamarin-ios. But it sounds like that is not working for you.

@ChristianTBaker
Copy link
Author

I will not be able to reproduce the issue until hopefully next week since our Maui app is not in a build-able state. We're in the middle of architecture migration.

@eli-darkly
Copy link
Contributor

@ChristianTBaker OK— please keep us posted. We have very limited experience with MAUI so far, so we have been relying on Microsoft's documentation which seems to unambiguously state that older libraries of this kind should still work in .NET 6 apps.

@eli-darkly
Copy link
Contributor

I've verified that I am able to build and run a .NET 6 MAUI app that uses the current LaunchDarkly client-side .NET SDK. The code is attached.
HelloDotnet6Mobile.zip

@kinyoklion
Copy link
Member

Closing for lack of activity. The SDK should be working in MAUI. If there is a build error, runtime error, etc, then that can be reported and we can look at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants