-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[url_launcher_windows] Support win32 and UWP hosts #3828
Conversation
|
FWIW I noticed last night that licenses needed updating but didn't have time to locate the licenses file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
High level before reviewing the code itself:
This appears to break Win32 builds. I can't see why (flutter/flutter#81297) but hopefully it's reproducible locally.- This needs to actually be built in CI.
- Relatedly, this needs to be running the integration tests.
For 2, what's the current status of UWP runners? Does flutter create . work? Is the template still unstable? If Yes and Yes, we can add the code to create it on the fly that we used to use for other desktop builds here.
For 3, is there a LUCI recipe that can run UWP apps yet?
The correct license form for this repo is what was in |
|
I'm not clear on what this means. How would |
flutter build windows is not uwp. If that is what CI is doing (only) which I guess it is, then it works fine locally hence I cannot reason over why CI is failing. |
...url_launcher/url_launcher_windows/windows/include/url_launcher_windows/url_launcher_plugin.h
Outdated
Show resolved
Hide resolved
...url_launcher/url_launcher_windows/windows/include/url_launcher_windows/url_launcher_plugin.h
Outdated
Show resolved
Hide resolved
50a6583 to
3abe5ed
Compare
|
Seeing this in the latest run..
|
|
@clarkezone this is likely the result of flutter/flutter#81837 |
6fb4aab to
26b7c53
Compare
|
@clarkezone Could you merge in master and see what happens? I've temporarily replaced the currently-completely-broken Windows LUCI CI with GA-based CI and I'm curious if it will give us different results. |
|
@stuartmorgan I believe |
|
I tried building locally, and hit compile warnings (treated as errors) in cppwinrt/winrt/base.h (SDK version 18362). I'll try upgrading my SDK version, but if we're not going to require a higher SDK version for UWP ( |
|
Do u have UWP workload installed along with c++ support for UWP? 18362 is fine. |
|
I'll have to check. Is that's the issue, then doctor will definitely need an update. |
|
Yea it's on the list @cbracken @jonahwilliams |
|
Tomorrow I'll file an issue laying out the pieces still left to unblock plugins landing here, for tracking. |
|
flutter/flutter#82822 tracks the blockers. We can add more there if we think of anything else. |
|
There's still no |
|
I just got unblocked on building engine, i will rebase on push this sometime as soon as i can |
|
I realized that my restructure of the plugin to make it testable caused a bunch of non-trivial conflicts, so I went ahead and resolved it. The resolution is hacky (ifdefs in a header, splitting class implementation between several files) so it'll need cleanup, but it's at least a cleaner starting point that the pile of conflicts. I haven't tested the UWP part since I still don't have that working on my Windows machine, so apologies if I broke that. But we can at least see if CI builds it :) |
|
Hm, the UWP build timed out on CI, which is what happened to me locally. I thought that was just something about my setup, but apparently not. |
|
Interesting. |
|
I'm blocked currently due to inability to build the UWP target on my machine. |
This comment has been minimized.
This comment has been minimized.
|
@cbracken @clarkezone Do we have a path to getting this unblocked, or should we close this out for now? |
|
I got unblocked before the holidays but haven't had a chance to look at this since then, appols. |
|
I have this and a couple other plugins PRs at the top of my review queue now that I’m back from holidays. Looks like there’s some work to do first though? |
Yes, this PR currently hangs UWP builds (at least for me and CI). It's possible I broke it with my update to the PR, but IIRC I already had that problem. |
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@clarkezone is this something that you expect you'll pick up any time soon? If not, shall we close it? |
|
I aspire to landing this but I haven't done a good job at making any progress. If you'd be happier closing it out I'm OK with that. |
|
SGTM. Closing for now. When you get time and it's ready for review; fire a new PR our way! |
This PR adds support for the winuwp target.
flutter/flutter#70207
flutter/flutter#14967
Pre-launch Checklist
dart format. See plugin_tool format)[shared_preferences]///).If you need help, consider asking for advice on the #hackers-new channel on Discord.