-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[flutter_tools] do not use context logger in gradle #75940
Conversation
final List<int> bytes = file.readAsBytesSync(); | ||
globals.printTrace('calculateSha: reading file took ${sw.elapsedMilliseconds}us'); |
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 reviewed the data here and basically this is always super fast, the reported issue was likely unrelated
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 w/ question
@@ -169,7 +169,7 @@ void createSettingsAarGradle(Directory androidDirectory) { | |||
final String currentFileContent = currentSettingsFile.readAsStringSync(); | |||
|
|||
final String newSettingsRelativeFile = globals.fs.path.relative(newSettingsFile.path); | |||
final Status status = globals.logger.startProgress('✏️ Creating `$newSettingsRelativeFile`...'); | |||
final Status status = logger.startProgress('✏️ Creating `$newSettingsRelativeFile`...'); |
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.
Could you check that ✏️ is in the list to rewrite when emoji aren't supported? I think it's base/console.dart or base/terminal.dart?
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.
It wasn't. I added it to the list, and added tests for the rewriting since I couldn't find any
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.
Thanks!
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.
still lgtm
Part of #71511 |
Part 2 of 999 to clean up gradle.dart . move the logger into the class definition and remove context usage. Also removes sha analytics event that has not been useful (its always pretty fast 🤷🏻♂️ ).