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
2bdb3bbe
Commit
2bdb3bbe
authored
Apr 18, 2018
by
Danny Tuppeny
Committed by
Danny Tuppeny
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix references to Devices and remove unused properties
parent
53840fb0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
13 deletions
+4
-13
android_emulator.dart
packages/flutter_tools/lib/src/android/android_emulator.dart
+4
-4
android_workflow.dart
packages/flutter_tools/lib/src/android/android_workflow.dart
+0
-3
doctor.dart
packages/flutter_tools/lib/src/doctor.dart
+0
-3
ios_workflow.dart
packages/flutter_tools/lib/src/ios/ios_workflow.dart
+0
-3
No files found.
packages/flutter_tools/lib/src/android/android_emulator.dart
View file @
2bdb3bbe
...
...
@@ -17,7 +17,7 @@ class AndroidEmulators extends EmulatorDiscovery {
bool
get
supportsPlatform
=>
true
;
@override
bool
get
canListAnything
=>
androidWorkflow
.
canList
Device
s
;
bool
get
canListAnything
=>
androidWorkflow
.
canList
Emulator
s
;
@override
Future
<
List
<
Emulator
>>
get
emulators
async
=>
getEmulatorAvds
();
...
...
@@ -44,9 +44,9 @@ List<AndroidEmulator> getEmulatorAvds() {
if
(
emulatorPath
==
null
)
return
<
AndroidEmulator
>[];
final
String
text
=
runSync
(<
String
>[
emulatorPath
,
'-list-avds'
]);
final
List
<
AndroidEmulator
>
device
s
=
<
AndroidEmulator
>[];
parseEmulatorAvdOutput
(
text
,
device
s
);
return
device
s
;
final
List
<
AndroidEmulator
>
emulator
s
=
<
AndroidEmulator
>[];
parseEmulatorAvdOutput
(
text
,
emulator
s
);
return
emulator
s
;
}
/// Parse the given `emulator -list-avds` output in [text], and fill out the given list
...
...
packages/flutter_tools/lib/src/android/android_workflow.dart
View file @
2bdb3bbe
...
...
@@ -45,9 +45,6 @@ class AndroidWorkflow extends DoctorValidator implements Workflow {
@override
bool
get
canListEmulators
=>
getEmulatorPath
(
androidSdk
)
!=
null
;
@override
bool
get
canLaunchEmulators
=>
androidSdk
!=
null
&&
androidSdk
.
validateSdkWellFormed
().
isEmpty
;
static
const
String
_kJdkDownload
=
'https://www.oracle.com/technetwork/java/javase/downloads/'
;
/// Returns false if we cannot determine the Java version or if the version
...
...
packages/flutter_tools/lib/src/doctor.dart
View file @
2bdb3bbe
...
...
@@ -212,9 +212,6 @@ abstract class Workflow {
/// Are we functional enough to list emulators?
bool
get
canListEmulators
;
/// Could this thing launch *something*? It may still have minor issues.
bool
get
canLaunchEmulators
;
}
enum
ValidationType
{
...
...
packages/flutter_tools/lib/src/ios/ios_workflow.dart
View file @
2bdb3bbe
...
...
@@ -33,9 +33,6 @@ class IOSWorkflow extends DoctorValidator implements Workflow {
@override
bool
get
canListEmulators
=>
false
;
@override
bool
get
canLaunchEmulators
=>
false
;
Future
<
bool
>
get
hasIDeviceInstaller
=>
exitsHappyAsync
(<
String
>[
'ideviceinstaller'
,
'-h'
]);
Future
<
bool
>
get
hasIosDeploy
=>
exitsHappyAsync
(<
String
>[
'ios-deploy'
,
'--version'
]);
...
...
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