Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
79f1689f
Unverified
Commit
79f1689f
authored
Apr 05, 2021
by
Jenn Magder
Committed by
GitHub
Apr 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate doctor_validator to null safety (#79682)
parent
90c0e3e8
Changes
41
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
41 changed files
with
344 additions
and
335 deletions
+344
-335
android_studio_validator.dart
...utter_tools/lib/src/android/android_studio_validator.dart
+1
-1
android_workflow.dart
packages/flutter_tools/lib/src/android/android_workflow.dart
+1
-1
emulators.dart
packages/flutter_tools/lib/src/commands/emulators.dart
+1
-1
custom_device_workflow.dart
..._tools/lib/src/custom_devices/custom_device_workflow.dart
+1
-1
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+1
-301
doctor_validator.dart
packages/flutter_tools/lib/src/doctor_validator.dart
+304
-0
fuchsia_workflow.dart
packages/flutter_tools/lib/src/fuchsia/fuchsia_workflow.dart
+1
-1
intellij.dart
packages/flutter_tools/lib/src/intellij/intellij.dart
+1
-1
intellij_validator.dart
...es/flutter_tools/lib/src/intellij/intellij_validator.dart
+1
-1
ios_workflow.dart
packages/flutter_tools/lib/src/ios/ios_workflow.dart
+1
-1
linux_doctor.dart
packages/flutter_tools/lib/src/linux/linux_doctor.dart
+1
-1
linux_workflow.dart
packages/flutter_tools/lib/src/linux/linux_workflow.dart
+1
-1
cocoapods_validator.dart
...ages/flutter_tools/lib/src/macos/cocoapods_validator.dart
+1
-1
macos_workflow.dart
packages/flutter_tools/lib/src/macos/macos_workflow.dart
+1
-1
xcode_validator.dart
packages/flutter_tools/lib/src/macos/xcode_validator.dart
+1
-1
proxy_validator.dart
packages/flutter_tools/lib/src/proxy_validator.dart
+1
-1
events.dart
packages/flutter_tools/lib/src/reporting/events.dart
+1
-1
reporting.dart
packages/flutter_tools/lib/src/reporting/reporting.dart
+1
-1
vscode.dart
packages/flutter_tools/lib/src/vscode/vscode.dart
+1
-1
vscode_validator.dart
packages/flutter_tools/lib/src/vscode/vscode_validator.dart
+1
-1
web_validator.dart
packages/flutter_tools/lib/src/web/web_validator.dart
+1
-1
workflow.dart
packages/flutter_tools/lib/src/web/workflow.dart
+1
-1
visual_studio_validator.dart
...lutter_tools/lib/src/windows/visual_studio_validator.dart
+1
-1
windows_workflow.dart
packages/flutter_tools/lib/src/windows/windows_workflow.dart
+1
-1
create_usage_test.dart
...tools/test/commands.shard/hermetic/create_usage_test.dart
+1
-0
doctor_test.dart
...utter_tools/test/commands.shard/hermetic/doctor_test.dart
+1
-0
proxy_validator_test.dart
...ls/test/commands.shard/hermetic/proxy_validator_test.dart
+1
-1
android_studio_validator_test.dart
.../general.shard/android/android_studio_validator_test.dart
+1
-1
android_workflow_test.dart
...ols/test/general.shard/android/android_workflow_test.dart
+1
-1
crash_reporting_test.dart
...lutter_tools/test/general.shard/crash_reporting_test.dart
+1
-0
flutter_validator_test.dart
...tter_tools/test/general.shard/flutter_validator_test.dart
+1
-0
intellij_test.dart
...tter_tools/test/general.shard/intellij/intellij_test.dart
+1
-1
intellij_validator_test.dart
.../test/general.shard/intellij/intellij_validator_test.dart
+1
-1
linux_doctor_test.dart
...ter_tools/test/general.shard/linux/linux_doctor_test.dart
+1
-1
cocoapods_validator_test.dart
...ls/test/general.shard/macos/cocoapods_validator_test.dart
+1
-1
xcode_validator_test.dart
..._tools/test/general.shard/macos/xcode_validator_test.dart
+1
-1
events_test.dart
...utter_tools/test/general.shard/reporting/events_test.dart
+1
-1
web_validator_test.dart
...tter_tools/test/general.shard/web/web_validator_test.dart
+1
-1
visual_studio_validator_test.dart
...t/general.shard/windows/visual_studio_validator_test.dart
+1
-1
common.dart
packages/flutter_tools/test/src/common.dart
+1
-1
context.dart
packages/flutter_tools/test/src/context.dart
+1
-0
No files found.
packages/flutter_tools/lib/src/android/android_studio_validator.dart
View file @
79f1689f
...
...
@@ -11,7 +11,7 @@ import '../base/file_system.dart';
import
'../base/platform.dart'
;
import
'../base/user_messages.dart'
;
import
'../base/version.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../intellij/intellij.dart'
;
import
'android_studio.dart'
;
...
...
packages/flutter_tools/lib/src/android/android_workflow.dart
View file @
79f1689f
...
...
@@ -17,7 +17,7 @@ import '../base/platform.dart';
import
'../base/user_messages.dart'
hide
userMessages
;
import
'../base/version.dart'
;
import
'../convert.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
import
'android_sdk.dart'
;
import
'android_studio.dart'
;
...
...
packages/flutter_tools/lib/src/commands/emulators.dart
View file @
79f1689f
...
...
@@ -6,7 +6,7 @@
import
'../base/common.dart'
;
import
'../base/utils.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../emulator.dart'
;
import
'../globals.dart'
as
globals
;
import
'../runner/flutter_command.dart'
;
...
...
packages/flutter_tools/lib/src/custom_devices/custom_device_workflow.dart
View file @
79f1689f
...
...
@@ -6,7 +6,7 @@
import
'package:meta/meta.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
/// The custom-devices-specific implementation of a [Workflow].
...
...
packages/flutter_tools/lib/src/doctor.dart
View file @
79f1689f
This diff is collapsed.
Click to expand it.
packages/flutter_tools/lib/src/doctor_validator.dart
0 → 100644
View file @
79f1689f
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:meta/meta.dart'
;
import
'base/async_guard.dart'
;
import
'base/terminal.dart'
;
import
'globals_null_migrated.dart'
as
globals
;
class
ValidatorTask
{
ValidatorTask
(
this
.
validator
,
this
.
result
);
final
DoctorValidator
validator
;
final
Future
<
ValidationResult
>
result
;
}
/// A series of tools and required install steps for a target platform (iOS or Android).
abstract
class
Workflow
{
const
Workflow
();
/// Whether the workflow applies to this platform (as in, should we ever try and use it).
bool
get
appliesToHostPlatform
;
/// Are we functional enough to list devices?
bool
get
canListDevices
;
/// Could this thing launch *something*? It may still have minor issues.
bool
get
canLaunchDevices
;
/// Are we functional enough to list emulators?
bool
get
canListEmulators
;
}
enum
ValidationType
{
crash
,
missing
,
partial
,
notAvailable
,
installed
,
}
enum
ValidationMessageType
{
error
,
hint
,
information
,
}
abstract
class
DoctorValidator
{
const
DoctorValidator
(
this
.
title
);
/// This is displayed in the CLI.
final
String
title
;
String
get
slowWarning
=>
'This is taking an unexpectedly long time...'
;
Future
<
ValidationResult
>
validate
();
}
/// A validator that runs other [DoctorValidator]s and combines their output
/// into a single [ValidationResult]. It uses the title of the first validator
/// passed to the constructor and reports the statusInfo of the first validator
/// that provides one. Other titles and statusInfo strings are discarded.
class
GroupedValidator
extends
DoctorValidator
{
GroupedValidator
(
this
.
subValidators
)
:
super
(
subValidators
[
0
].
title
);
final
List
<
DoctorValidator
>
subValidators
;
List
<
ValidationResult
>
_subResults
=
<
ValidationResult
>[];
/// Sub-validator results.
///
/// To avoid losing information when results are merged, the sub-results are
/// cached on this field when they are available. The results are in the same
/// order as the sub-validator list.
List
<
ValidationResult
>
get
subResults
=>
_subResults
;
@override
String
get
slowWarning
=>
_currentSlowWarning
;
String
_currentSlowWarning
=
'Initializing...'
;
@override
Future
<
ValidationResult
>
validate
()
async
{
final
List
<
ValidatorTask
>
tasks
=
<
ValidatorTask
>[
for
(
final
DoctorValidator
validator
in
subValidators
)
ValidatorTask
(
validator
,
asyncGuard
<
ValidationResult
>(()
=>
validator
.
validate
()),
),
];
final
List
<
ValidationResult
>
results
=
<
ValidationResult
>[];
for
(
final
ValidatorTask
subValidator
in
tasks
)
{
_currentSlowWarning
=
subValidator
.
validator
.
slowWarning
;
try
{
results
.
add
(
await
subValidator
.
result
);
}
on
Exception
catch
(
exception
,
stackTrace
)
{
results
.
add
(
ValidationResult
.
crash
(
exception
,
stackTrace
));
}
}
_currentSlowWarning
=
'Merging results...'
;
return
_mergeValidationResults
(
results
);
}
ValidationResult
_mergeValidationResults
(
List
<
ValidationResult
>
results
)
{
assert
(
results
.
isNotEmpty
,
'Validation results should not be empty'
);
_subResults
=
results
;
ValidationType
mergedType
=
results
[
0
].
type
;
final
List
<
ValidationMessage
>
mergedMessages
=
<
ValidationMessage
>[];
String
?
statusInfo
;
for
(
final
ValidationResult
result
in
results
)
{
statusInfo
??=
result
.
statusInfo
;
switch
(
result
.
type
)
{
case
ValidationType
.
installed
:
if
(
mergedType
==
ValidationType
.
missing
)
{
mergedType
=
ValidationType
.
partial
;
}
break
;
case
ValidationType
.
notAvailable
:
case
ValidationType
.
partial
:
mergedType
=
ValidationType
.
partial
;
break
;
case
ValidationType
.
crash
:
case
ValidationType
.
missing
:
if
(
mergedType
==
ValidationType
.
installed
)
{
mergedType
=
ValidationType
.
partial
;
}
break
;
default
:
throw
'Unrecognized validation type: '
+
result
.
type
.
toString
();
}
mergedMessages
.
addAll
(
result
.
messages
);
}
return
ValidationResult
(
mergedType
,
mergedMessages
,
statusInfo:
statusInfo
);
}
}
@immutable
class
ValidationResult
{
/// [ValidationResult.type] should only equal [ValidationResult.installed]
/// if no [messages] are hints or errors.
const
ValidationResult
(
this
.
type
,
this
.
messages
,
{
this
.
statusInfo
});
factory
ValidationResult
.
crash
(
Object
error
,
[
StackTrace
?
stackTrace
])
{
return
ValidationResult
(
ValidationType
.
crash
,
<
ValidationMessage
>[
const
ValidationMessage
.
error
(
'Due to an error, the doctor check did not complete. '
'If the error message below is not helpful, '
'please let us know about this issue at https://github.com/flutter/flutter/issues.'
),
ValidationMessage
.
error
(
'
$error
'
),
if
(
stackTrace
!=
null
)
// Stacktrace is informational. Printed in verbose mode only.
ValidationMessage
(
'
$stackTrace
'
),
],
statusInfo:
'the doctor check crashed'
);
}
final
ValidationType
type
;
// A short message about the status.
final
String
?
statusInfo
;
final
List
<
ValidationMessage
>
messages
;
String
get
leadingBox
{
assert
(
type
!=
null
);
switch
(
type
)
{
case
ValidationType
.
crash
:
return
'[☠]'
;
case
ValidationType
.
missing
:
return
'[✗]'
;
case
ValidationType
.
installed
:
return
'[✓]'
;
case
ValidationType
.
notAvailable
:
case
ValidationType
.
partial
:
return
'[!]'
;
}
}
String
get
coloredLeadingBox
{
assert
(
type
!=
null
);
switch
(
type
)
{
case
ValidationType
.
crash
:
return
globals
.
terminal
.
color
(
leadingBox
,
TerminalColor
.
red
);
case
ValidationType
.
missing
:
return
globals
.
terminal
.
color
(
leadingBox
,
TerminalColor
.
red
);
case
ValidationType
.
installed
:
return
globals
.
terminal
.
color
(
leadingBox
,
TerminalColor
.
green
);
case
ValidationType
.
notAvailable
:
case
ValidationType
.
partial
:
return
globals
.
terminal
.
color
(
leadingBox
,
TerminalColor
.
yellow
);
}
}
/// The string representation of the type.
String
get
typeStr
{
assert
(
type
!=
null
);
switch
(
type
)
{
case
ValidationType
.
crash
:
return
'crash'
;
case
ValidationType
.
missing
:
return
'missing'
;
case
ValidationType
.
installed
:
return
'installed'
;
case
ValidationType
.
notAvailable
:
return
'notAvailable'
;
case
ValidationType
.
partial
:
return
'partial'
;
}
}
}
/// A status line for the flutter doctor validation to display.
///
/// The [message] is required and represents either an informational statement
/// about the particular doctor validation that passed, or more context
/// on the cause and/or solution to the validation failure.
@immutable
class
ValidationMessage
{
/// Create a validation message with information for a passing validator.
///
/// By default this is not displayed unless the doctor is run in
/// verbose mode.
///
/// The [contextUrl] may be supplied to link to external resources. This
/// is displayed after the informative message in verbose modes.
const
ValidationMessage
(
this
.
message
,
{
this
.
contextUrl
})
:
type
=
ValidationMessageType
.
information
;
/// Create a validation message with information for a failing validator.
const
ValidationMessage
.
error
(
this
.
message
)
:
type
=
ValidationMessageType
.
error
,
contextUrl
=
null
;
/// Create a validation message with information for a partially failing
/// validator.
const
ValidationMessage
.
hint
(
this
.
message
)
:
type
=
ValidationMessageType
.
hint
,
contextUrl
=
null
;
final
ValidationMessageType
type
;
final
String
?
contextUrl
;
final
String
message
;
bool
get
isError
=>
type
==
ValidationMessageType
.
error
;
bool
get
isHint
=>
type
==
ValidationMessageType
.
hint
;
String
get
indicator
{
switch
(
type
)
{
case
ValidationMessageType
.
error
:
return
'✗'
;
case
ValidationMessageType
.
hint
:
return
'!'
;
case
ValidationMessageType
.
information
:
return
'•'
;
}
}
String
get
coloredIndicator
{
switch
(
type
)
{
case
ValidationMessageType
.
error
:
return
globals
.
terminal
.
color
(
indicator
,
TerminalColor
.
red
);
case
ValidationMessageType
.
hint
:
return
globals
.
terminal
.
color
(
indicator
,
TerminalColor
.
yellow
);
case
ValidationMessageType
.
information
:
return
globals
.
terminal
.
color
(
indicator
,
TerminalColor
.
green
);
}
}
@override
String
toString
()
=>
message
;
@override
bool
operator
==(
Object
other
)
{
return
other
is
ValidationMessage
&&
other
.
message
==
message
&&
other
.
type
==
type
&&
other
.
contextUrl
==
contextUrl
;
}
@override
int
get
hashCode
=>
type
.
hashCode
^
message
.
hashCode
^
contextUrl
.
hashCode
;
}
class
NoIdeValidator
extends
DoctorValidator
{
NoIdeValidator
()
:
super
(
'Flutter IDE Support'
);
@override
Future
<
ValidationResult
>
validate
()
async
{
return
ValidationResult
(
ValidationType
.
missing
,
globals
.
userMessages
.
noIdeInstallationInfo
.
map
((
String
ideInfo
)
=>
ValidationMessage
(
ideInfo
)).
toList
(),
statusInfo:
globals
.
userMessages
.
noIdeStatusInfo
,
);
}
}
class
ValidatorWithResult
extends
DoctorValidator
{
ValidatorWithResult
(
String
title
,
this
.
result
)
:
super
(
title
);
final
ValidationResult
result
;
@override
Future
<
ValidationResult
>
validate
()
async
=>
result
;
}
packages/flutter_tools/lib/src/fuchsia/fuchsia_workflow.dart
View file @
79f1689f
...
...
@@ -8,7 +8,7 @@ import 'package:meta/meta.dart';
import
'../base/context.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
import
'fuchsia_sdk.dart'
;
...
...
packages/flutter_tools/lib/src/intellij/intellij.dart
View file @
79f1689f
...
...
@@ -10,7 +10,7 @@ import 'package:meta/meta.dart';
import
'../base/file_system.dart'
;
import
'../base/version.dart'
;
import
'../convert.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
/// A parser for the Intellij and Android Studio plugin JAR files.
///
...
...
packages/flutter_tools/lib/src/intellij/intellij_validator.dart
View file @
79f1689f
...
...
@@ -10,7 +10,7 @@ import '../base/file_system.dart';
import
'../base/platform.dart'
;
import
'../base/user_messages.dart'
hide
userMessages
;
import
'../base/version.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../ios/plist_parser.dart'
;
import
'intellij.dart'
;
...
...
packages/flutter_tools/lib/src/ios/ios_workflow.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
import
'../macos/xcode.dart'
;
...
...
packages/flutter_tools/lib/src/linux/linux_doctor.dart
View file @
79f1689f
...
...
@@ -10,7 +10,7 @@ import 'package:process/process.dart';
import
'../base/io.dart'
;
import
'../base/user_messages.dart'
;
import
'../base/version.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
/// A combination of version description and parsed version number.
class
_VersionInfo
{
...
...
packages/flutter_tools/lib/src/linux/linux_workflow.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
/// The windows-specific implementation of a [Workflow].
...
...
packages/flutter_tools/lib/src/macos/cocoapods_validator.dart
View file @
79f1689f
...
...
@@ -5,7 +5,7 @@
// @dart = 2.8
import
'../base/user_messages.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'cocoapods.dart'
;
/// A validator that confirms cocoapods is in a valid state.
...
...
packages/flutter_tools/lib/src/macos/macos_workflow.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
...
...
packages/flutter_tools/lib/src/macos/xcode_validator.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'../base/user_messages.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'xcode.dart'
;
class
XcodeValidator
extends
DoctorValidator
{
...
...
packages/flutter_tools/lib/src/proxy_validator.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'base/platform.dart'
;
import
'doctor.dart'
;
import
'doctor
_validator
.dart'
;
/// A validator that displays configured HTTP_PROXY environment variables.
///
...
...
packages/flutter_tools/lib/src/reporting/events.dart
View file @
79f1689f
...
...
@@ -124,7 +124,7 @@ class DoctorResultEvent extends UsageEvent {
}
final
GroupedValidator
group
=
validator
as
GroupedValidator
;
// The validator crashed.
if
(
group
.
subResults
==
null
)
{
if
(
group
.
subResults
.
isEmpty
)
{
flutterUsage
.
sendEvent
(
category
,
parameter
,
label:
label
);
return
;
}
...
...
packages/flutter_tools/lib/src/reporting/reporting.dart
View file @
79f1689f
...
...
@@ -28,7 +28,7 @@ import '../build_system/exceptions.dart';
import
'../convert.dart'
;
import
'../dart/language_version.dart'
;
import
'../devfs.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
import
'../flutter_manifest.dart'
;
import
'../flutter_project_metadata.dart'
;
...
...
packages/flutter_tools/lib/src/vscode/vscode.dart
View file @
79f1689f
...
...
@@ -11,7 +11,7 @@ import '../base/platform.dart';
import
'../base/utils.dart'
;
import
'../base/version.dart'
;
import
'../convert.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
// Include VS Code insiders (useful for debugging).
const
bool
_includeInsiders
=
false
;
...
...
packages/flutter_tools/lib/src/vscode/vscode_validator.dart
View file @
79f1689f
...
...
@@ -8,7 +8,7 @@ import '../base/file_system.dart';
import
'../base/platform.dart'
;
import
'../base/user_messages.dart'
;
import
'../base/version.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'vscode.dart'
;
class
VsCodeValidator
extends
DoctorValidator
{
...
...
packages/flutter_tools/lib/src/web/web_validator.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'chrome.dart'
;
/// A validator for Chromium-based browsers.
...
...
packages/flutter_tools/lib/src/web/workflow.dart
View file @
79f1689f
...
...
@@ -7,7 +7,7 @@
import
'package:meta/meta.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
class
WebWorkflow
extends
Workflow
{
...
...
packages/flutter_tools/lib/src/windows/visual_studio_validator.dart
View file @
79f1689f
...
...
@@ -8,7 +8,7 @@ import 'package:meta/meta.dart';
import
'../base/context.dart'
;
import
'../base/user_messages.dart'
hide
userMessages
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'visual_studio.dart'
;
VisualStudioValidator
get
visualStudioValidator
=>
context
.
get
<
VisualStudioValidator
>();
...
...
packages/flutter_tools/lib/src/windows/windows_workflow.dart
View file @
79f1689f
...
...
@@ -8,7 +8,7 @@ import 'package:meta/meta.dart';
import
'../base/context.dart'
;
import
'../base/platform.dart'
;
import
'../doctor.dart'
;
import
'../doctor
_validator
.dart'
;
import
'../features.dart'
;
/// The [WindowsWorkflow] instance.
...
...
packages/flutter_tools/test/commands.shard/hermetic/create_usage_test.dart
View file @
79f1689f
...
...
@@ -10,6 +10,7 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/create.dart'
;
import
'package:flutter_tools/src/convert.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
...
...
packages/flutter_tools/test/commands.shard/hermetic/doctor_test.dart
View file @
79f1689f
...
...
@@ -21,6 +21,7 @@ import 'package:flutter_tools/src/cache.dart';
import
'package:flutter_tools/src/commands/doctor.dart'
;
import
'package:flutter_tools/src/device.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/features.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
...
...
packages/flutter_tools/test/commands.shard/hermetic/proxy_validator_test.dart
View file @
79f1689f
...
...
@@ -5,7 +5,7 @@
// @dart = 2.8
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/proxy_validator.dart'
;
import
'../../src/common.dart'
;
...
...
packages/flutter_tools/test/general.shard/android/android_studio_validator_test.dart
View file @
79f1689f
...
...
@@ -11,7 +11,7 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/base/io.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
import
'../../src/common.dart'
;
...
...
packages/flutter_tools/test/general.shard/android/android_workflow_test.dart
View file @
79f1689f
...
...
@@ -13,7 +13,7 @@ import 'package:flutter_tools/src/base/os.dart';
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/base/version.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:mockito/mockito.dart'
;
import
'../../src/common.dart'
;
...
...
packages/flutter_tools/test/general.shard/crash_reporting_test.dart
View file @
79f1689f
...
...
@@ -13,6 +13,7 @@ import 'package:flutter_tools/src/base/logger.dart';
import
'package:flutter_tools/src/base/os.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/project.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:http/http.dart'
;
...
...
packages/flutter_tools/test/general.shard/flutter_validator_test.dart
View file @
79f1689f
...
...
@@ -10,6 +10,7 @@ import 'package:flutter_tools/src/base/os.dart';
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/version.dart'
;
import
'package:mockito/mockito.dart'
;
...
...
packages/flutter_tools/test/general.shard/intellij/intellij_test.dart
View file @
79f1689f
...
...
@@ -10,7 +10,7 @@ import 'package:archive/archive.dart';
import
'package:file/file.dart'
;
import
'package:file/memory.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/intellij/intellij.dart'
;
import
'../../src/common.dart'
;
...
...
packages/flutter_tools/test/general.shard/intellij/intellij_validator_test.dart
View file @
79f1689f
...
...
@@ -10,7 +10,7 @@ import 'package:flutter_tools/src/base/file_system.dart';
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/convert.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/intellij/intellij_validator.dart'
;
import
'package:flutter_tools/src/ios/plist_parser.dart'
;
import
'package:test/fake.dart'
;
...
...
packages/flutter_tools/test/general.shard/linux/linux_doctor_test.dart
View file @
79f1689f
...
...
@@ -5,7 +5,7 @@
// @dart = 2.8
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/linux/linux_doctor.dart'
;
import
'../../src/common.dart'
;
...
...
packages/flutter_tools/test/general.shard/macos/cocoapods_validator_test.dart
View file @
79f1689f
...
...
@@ -5,7 +5,7 @@
// @dart = 2.8
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/macos/cocoapods.dart'
;
import
'package:flutter_tools/src/macos/cocoapods_validator.dart'
;
import
'package:test/fake.dart'
;
...
...
packages/flutter_tools/test/general.shard/macos/xcode_validator_test.dart
View file @
79f1689f
...
...
@@ -6,7 +6,7 @@
import
'package:flutter_tools/src/base/user_messages.dart'
;
import
'package:flutter_tools/src/base/version.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/macos/xcode.dart'
;
import
'package:flutter_tools/src/macos/xcode_validator.dart'
;
import
'package:mockito/mockito.dart'
;
...
...
packages/flutter_tools/test/general.shard/reporting/events_test.dart
View file @
79f1689f
...
...
@@ -5,7 +5,7 @@
// @dart = 2.8
import
'package:flutter_tools/src/build_info.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
import
'package:package_config/package_config.dart'
;
...
...
packages/flutter_tools/test/general.shard/web/web_validator_test.dart
View file @
79f1689f
...
...
@@ -8,7 +8,7 @@ import 'package:file/memory.dart';
import
'package:flutter_tools/src/base/file_system.dart'
;
import
'package:flutter_tools/src/base/logger.dart'
;
import
'package:flutter_tools/src/base/platform.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/web/chrome.dart'
;
import
'package:flutter_tools/src/web/web_validator.dart'
;
...
...
packages/flutter_tools/test/general.shard/windows/visual_studio_validator_test.dart
View file @
79f1689f
...
...
@@ -5,7 +5,7 @@
// @dart = 2.8
import
'package:flutter_tools/src/base/user_messages.dart'
hide
userMessages
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/windows/visual_studio.dart'
;
import
'package:flutter_tools/src/windows/visual_studio_validator.dart'
;
import
'package:mockito/mockito.dart'
;
...
...
packages/flutter_tools/test/src/common.dart
View file @
79f1689f
...
...
@@ -20,7 +20,7 @@ import 'package:flutter_tools/src/base/user_messages.dart';
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/commands/create.dart'
;
import
'package:flutter_tools/src/convert.dart'
;
import
'package:flutter_tools/src/doctor.dart'
;
import
'package:flutter_tools/src/doctor
_validator
.dart'
;
import
'package:flutter_tools/src/globals_null_migrated.dart'
as
globals
;
import
'package:flutter_tools/src/runner/flutter_command.dart'
;
import
'package:flutter_tools/src/runner/flutter_command_runner.dart'
;
...
...
packages/flutter_tools/test/src/context.dart
View file @
79f1689f
...
...
@@ -18,6 +18,7 @@ import 'package:flutter_tools/src/base/process.dart';
import
'package:flutter_tools/src/base/signals.dart'
;
import
'package:flutter_tools/src/base/template.dart'
;
import
'package:flutter_tools/src/base/terminal.dart'
;
import
'package:flutter_tools/src/doctor_validator.dart'
;
import
'package:flutter_tools/src/isolated/mustache_template.dart'
;
import
'package:flutter_tools/src/cache.dart'
;
import
'package:flutter_tools/src/context_runner.dart'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment