-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[null-safety] migrate app dependencies of flutter driver #67155
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
[null-safety] migrate app dependencies of flutter driver #67155
Conversation
| /// The JSON encoded [DiagnosticsNode] tree requested by the | ||
| /// [GetDiagnosticsTree] command. | ||
| final Map<String, Object> json; | ||
| final Map<String, dynamic> json; |
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.
Not Object??
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.
The return type of the method on result is defined as:
/// Serializes this message to a JSON map.
Map<String, dynamic> toJson();
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.
FWIW, I would lean towards moving from dynamic to Object? everywhere rather than the other way around, but that's something we can worry about in another PR.
goderbauer
left a comment
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.
Code looks good, just a question about the 2.11 tags.
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| // @dart = 2.11 |
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.
Why this?
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.
weird, I had some problems getting vs code to show analysis warnings locally - maybe this isn't necessary?
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.
AFAIK, it shouldn't be necessary since you raised the SDK constraints in the pubspec?
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| // @dart = 2.11 |
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.
Why this?
| await Scrollable.ensureVisible( | ||
| target.evaluate().single, | ||
| duration: const Duration(milliseconds: 100), | ||
| alignment: scrollIntoViewCommand.alignment); |
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.
nit: trailing comma and ) on next line.
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| // @dart = 2.11 |
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.
?
|
I'm not getting these analyzer warnings locally :( |
goderbauer
left a comment
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.
LGTM
| type_init_formals: false # https://github.com/dart-lang/linter/issues/2192 | ||
| unrelated_type_equality_checks: false # https://github.com/dart-lang/linter/issues/2196 | ||
| void_checks: false # https://github.com/dart-lang/linter/issues/2185 | ||
| unnecessary_null_comparison: false # https://github.com/dart-lang/language/issues/1018 , turned off until https://github.com/flutter/flutter/issues/61042 |
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.
At least that last issue is closed., so these probably need rechecking.
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.
Updated
|
Looks like the package allowlist is wrong? or missing? I shouldn't need to enable experiment to run these tests |
|
|
https://dart-review.googlesource.com/c/sdk/+/165871 landed to add flutter_driver to the allow list earlier today, which needs to roll into flutter/engine and then flutter/flutter from there |
|
This is blocked on a "migration order" lint from g3 due to it depending on material. Is there a way to skip this lint? |
We just finished the migration of material. As soon as the last PR rolls into google, you shouldn't need to disable the lint anymore. |
)" This reverts commit e826442.
Description
Ensures all of the libraries that the application side code import are migrated to null safety. full null safety migration is blocked by json rpc 2 and a breaking change to vm service client.