Skip to content

Migrate android_studio to null safety - #79504

Merged
fluttergithubbot merged 1 commit into
flutter:masterfrom
jmagman:null-as
Apr 2, 2021
Merged

fluttergithubbot merged 1 commit into
flutter:masterfrom
jmagman:null-as

Conversation

@jmagman

@jmagman jmagman commented Apr 1, 2021

Copy link
Copy Markdown
Member
  1. Migrate android_studio to null safety
  2. Move globals.android_studio from globals.dart to globals_null_migrated.dart.
  3. Remove extra AndroidStudio get androidStudio => context.get<AndroidStudio>() in android_studio.dart. In commands/config.dart (the only usage) prefer the globals.androidStudio instead.
  4. Add a test for AndroidStudio.latestValid() since I had to refactor it a bit to remove lastWhere since flutter_tool doesn't depend on collections and therefore can't use the suggested lastWhereOrNull replacement.

Part of #71511

@jmagman jmagman added c: contributor-productivity Team-specific productivity, code health, technical debt. tool Affects the "flutter" command-line tool. See also t: labels. a: null-safety Support for Dart's null safety feature labels Apr 1, 2021
@jmagman jmagman self-assigned this Apr 1, 2021
@google-cla google-cla Bot added the cla: yes label Apr 1, 2021
@jmagman
jmagman requested a review from jonahwilliams April 1, 2021 01:45

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@fluttergithubbot

Copy link
Copy Markdown
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@jmagman

jmagman commented Apr 2, 2021

Copy link
Copy Markdown
Member Author

Google testing just mad it doesn't have g3fix for #79461.

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

Labels

a: null-safety Support for Dart's null safety feature c: contributor-productivity Team-specific productivity, code health, technical debt. 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