-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[webview_flutter] Migrate to null-safety #3310
Conversation
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.
Looks like some tests are failing and we have analysis errors
I have no idea why. I am possibly setting the dependency versions wrong. Could you (or someone else) help check? |
The analysis The Gradle build errors on master channel are a framework regression, @blasten is handling that in flutter/flutter#71964. The stable channel errors are because the plugin cannot work on stable after this change, as this is the first plugin we migrate on flutter/plugins master that's the first time we need to solve this. The easy fix would be to disable stable channel checks for the entire repository though I'm a little hesitant to do that, I'd prefer to only skip it for pre-release version that can't resolve on stable though I may be over-naive in how simple it is to do that. @blasten any thoughts on that? I can take a look at the CI change. Side note - I basically have zero non-meeting time today so I only expect to get to it tomorrow. |
Analysis errors are expected. They are coming from asserts. Is that lint turned off for package:flutter ? |
Is the practice to keep |
Yeah. That's what package:flutter has been following since these asserts have value for mixed mode code. |
AFAICT |
Weird. How is code like: passing analysis checks? |
Actually that's not true, it's turned off here: https://github.com/flutter/flutter/blob/52ea6c2a318537eb4d2ab260143bccaf6ec2151a/packages/flutter/analysis_options.yaml#L8 I guess we should do the same then. |
Cool. |
I am going to close this PR and open a new one. |
Description
Migrating webview-flutter to null-safety.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?