-
Notifications
You must be signed in to change notification settings - Fork 172
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
Update MBB to use MAUI #409
Conversation
Oh BOY! |
Hi @Eilon! If it can't be supported here, I'm thinking about forking it, and continuing working on that separately (at least until it is supported). |
I have forked this repository and published to nuget (renamed to BlazorBindings.Maui). |
@Eilon Yeah, just run "git clean -fdx" with your VS closed. It doesn't like remains of pre-MAUI samples parts. |
Well, so far it's working quite fine! I think I hit a few issues but I can't tell if it's an MBB issue or a MAUI issue. |
I think the only real issue I've hit so far is this exception: https://github.com/Dreamescaper/BlazorBindings.Maui/blob/maui/src/Microsoft.MobileBlazorBindings/Elements/Handlers/ModalContainerHandler.cs#L84-L85 To repro:
Result:
Expected: To be honest, everything about how modals are implemented in MBB is quite hacky. I'm sure there's some good code in there, but I don't know where 😄 I wouldn't have this prevent me from merging the PR, but rather I'd log it as a separate issue to investigate. |
BTW this code didn't change as part of this PR, so it might be caused by some other change in this PR, or a change in .NET MAUI. |
I think it is fine simply to remove throwing that exception, make it no-op. But yeah, I planned to rework dealing with modals anyway (or rather clean some parts that I already have). I've drafted a small proposal here: #421 . |
Yeah without the exception it seems to just work fine 😄 |
Aside from iOS/macOS testing, is there anything else you think needs to be done before merging? I've reviewed a lot of the code so far and I think it's good, but I will finish reviewing first anyway. |
I've tested iOS, it seemed to be fine (not catalyst though). I think it's fine at this point. There are some samples which could be migrated as well, but i would handle that separately if needed. |
Another thing I noticed is that the Component Generator doesn't copy doc comments anymore. We'll definitely want to bring that back, but it might need to work a bit differently due to how the MAUI packages are created (but as of MAUI GA they XML files at least exist). |
Well, it's merged! 🥳 |
Wonderful, can't wait to try it out! |
#352
This PR is based on the other PRs, so they should be reviewed first: #388, #395, #345, #346, #343, #369, #392, #425, #419.
Now, I'm not sure how this PR should be handled. Should it go to some separate branch? Maybe even other repo?
(I've logged a couple of MAUI bugs when working on this one:
dotnet/maui#2623, dotnet/maui#2601, dotnet/maui#2600, dotnet/maui#2591, dotnet/maui#2958, dotnet/maui#4729, dotnet/maui#4765
)