Skip to content

Conversation

@andrewkolos
Copy link
Contributor

@andrewkolos andrewkolos commented Feb 4, 2025

Toward #150575. The idea of this PR is to get as close as possible to removing package:usage without actually deleting the dependency from the tool pubspec. That will be a separate PR since that has a decent chance of running into internal roll complications.

Pre-launch checklist

@github-actions github-actions bot added platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Feb 4, 2025
Comment on lines 114 to 116
@override
bool get reportNullSafety => true;

Copy link
Contributor Author

@andrewkolos andrewkolos Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any package:unified_analytics event for reporting null-safety (or rather the lack of it). Disabling null-safety is not possible in the tool (outside of forks). I'm speculating that this information has no known use case and that this code should be deleted.

Comment on lines -12 to -11
void main() {
testWithoutContext('DoctorResultEvent sends usage event for each sub validator', () async {
Copy link
Contributor Author

@andrewkolos andrewkolos Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These doctor tests are covered in doctor_test.dart

@andrewkolos andrewkolos requested a review from bkonyi February 4, 2025 20:43
@andrewkolos andrewkolos marked this pull request as ready for review February 4, 2025 20:43
@andrewkolos andrewkolos requested a review from jmagman as a code owner February 4, 2025 20:43
@andrewkolos andrewkolos removed the request for review from jmagman February 4, 2025 20:43
@andrewkolos andrewkolos mentioned this pull request Feb 5, 2025
3 tasks
globals.logger.fatalWarnings = boolArg(FlutterOptions.kFatalWarnings);
}
// Prints the welcome message if needed.
globals.flutterUsage.printWelcome();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We print a consent message upon exit

globals.logger.printStatus(globals.analytics.getConsentMessage);

Unless you are saying we should keep this until we actually remove the package completely

@bkonyi
Copy link
Contributor

bkonyi commented Mar 28, 2025

@andrewkolos do you have a couple of cycles to get this ready for landing?

@andrewkolos
Copy link
Contributor Author

Sure do! I just need to stop forgetting about it

@andrewkolos andrewkolos requested a review from a team as a code owner April 1, 2025 01:46
@github-actions github-actions bot added the team-ios Owned by iOS platform team label Apr 1, 2025
@andrewkolos andrewkolos requested a review from bkonyi April 1, 2025 01:55
Copy link
Contributor

@bkonyi bkonyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to remove package:usage reference still LGTM, but I think there's something wrong with the formatting changes.

abstract class DotEnvRegex {
// Dot env multi-line block value regex
static final RegExp multiLineBlock = RegExp(r'^\s*([a-zA-Z_]+[a-zA-Z0-9_]*)\s*=\s*"""\s*(.*)$');
static final RegExp multiLineBlock = RegExp(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure these formatting changes are correct given what's currently at HEAD. Maybe the 100 character limit set in analysis_options.yaml isn't being respected properly?

@flutter-dashboard
Copy link

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@jmagman
Copy link
Member

jmagman commented May 15, 2025

@andrewkolos @bkonyi I'm guessing this isn't being worked on any more? Should we close it for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform-ios iOS applications specifically team-ios Owned by iOS platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants