-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Print message and log event when app isn't using AndroidX #42548
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
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.
lgtm w/ nit
} else if (!usesAndroidX) { | ||
BuildEvent('app-not-using-android-x').send(); | ||
printStatus('$exclamationMark Your app isn\'t using AndroidX.', emphasis: true); | ||
printStatus( |
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 think the Flutter style guide says to do this like:
printStatus(
'To avoid potential build failures, you can quickly migrate your app '
'by following the steps on https://goo.gl/CP92wY.',
indent: 4,
);
Codecov Report
@@ Coverage Diff @@
## master #42548 +/- ##
==========================================
- Coverage 60.29% 59.35% -0.95%
==========================================
Files 194 194
Lines 18871 18859 -12
==========================================
- Hits 11379 11194 -185
- Misses 7492 7665 +173
Continue to review full report at Codecov.
|
Description
I added the new migration guide: https://flutter.dev/docs/development/androidx-migration.
Now, the tool can start printing a message and logging events when app isn't using AndroidX.
Tests
I added the following tests:
Unit tests
build_apk_test.dart
andbuild_appbundle_test.dart
.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 --flutter-repo
) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?