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
70eefd1e
Unverified
Commit
70eefd1e
authored
Sep 04, 2018
by
Chris Bracken
Committed by
GitHub
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate Dart 1 support from FlutterDevice class (#21402)
parent
63fde92a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
20 deletions
+9
-20
attach.dart
packages/flutter_tools/lib/src/commands/attach.dart
+0
-1
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+0
-1
fuchsia_reload.dart
packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
+0
-1
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+0
-1
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+5
-8
hot_test.dart
packages/flutter_tools/test/hot_test.dart
+3
-3
resident_runner_test.dart
packages/flutter_tools/test/resident_runner_test.dart
+1
-5
No files found.
packages/flutter_tools/lib/src/commands/attach.dart
View file @
70eefd1e
...
...
@@ -119,7 +119,6 @@ class AttachCommand extends FlutterCommand {
final
FlutterDevice
flutterDevice
=
new
FlutterDevice
(
device
,
trackWidgetCreation:
false
,
previewDart2:
true
,
dillOutputPath:
argResults
[
'output-dill'
],
fileSystemRoots:
argResults
[
'filesystem-root'
],
fileSystemScheme:
argResults
[
'filesystem-scheme'
],
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
70eefd1e
...
...
@@ -344,7 +344,6 @@ class AppDomain extends Domain {
final
FlutterDevice
flutterDevice
=
new
FlutterDevice
(
device
,
previewDart2:
true
,
trackWidgetCreation:
trackWidgetCreation
,
dillOutputPath:
dillOutputPath
,
);
...
...
packages/flutter_tools/lib/src/commands/fuchsia_reload.dart
View file @
70eefd1e
...
...
@@ -133,7 +133,6 @@ class FuchsiaReloadCommand extends FlutterCommand {
final
FlutterDevice
flutterDevice
=
new
FlutterDevice
(
device
,
trackWidgetCreation:
false
,
previewDart2:
true
,
);
flutterDevice
.
observatoryUris
=
observatoryUris
;
final
HotRunner
hotRunner
=
new
HotRunner
(
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
70eefd1e
...
...
@@ -339,7 +339,6 @@ class RunCommand extends RunCommandBase {
final
List
<
FlutterDevice
>
flutterDevices
=
devices
.
map
((
Device
device
)
{
return
new
FlutterDevice
(
device
,
previewDart2:
true
,
trackWidgetCreation:
argResults
[
'track-widget-creation'
],
dillOutputPath:
argResults
[
'output-dill'
],
fileSystemRoots:
argResults
[
'filesystem-root'
],
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
70eefd1e
...
...
@@ -42,20 +42,17 @@ class FlutterDevice {
StreamSubscription
<
String
>
_loggingSubscription
;
FlutterDevice
(
this
.
device
,
{
@required
bool
previewDart2
,
@required
bool
trackWidgetCreation
,
this
.
dillOutputPath
,
this
.
fileSystemRoots
,
this
.
fileSystemScheme
,
ResidentCompiler
generator
,
})
{
if
(
previewDart2
)
{
this
.
generator
=
generator
??
new
ResidentCompiler
(
artifacts
.
getArtifactPath
(
Artifact
.
flutterPatchedSdkPath
),
trackWidgetCreation:
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
,
fileSystemScheme:
fileSystemScheme
);
}
this
.
generator
=
generator
??
new
ResidentCompiler
(
artifacts
.
getArtifactPath
(
Artifact
.
flutterPatchedSdkPath
),
trackWidgetCreation:
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
,
fileSystemScheme:
fileSystemScheme
);
}
String
viewFilter
;
...
...
packages/flutter_tools/test/hot_test.dart
View file @
70eefd1e
...
...
@@ -102,14 +102,14 @@ void main() {
});
testUsingContext
(
'no setup'
,
()
async
{
final
List
<
FlutterDevice
>
devices
=
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
generator:
residentCompiler
,
trackWidgetCreation:
false
,
previewDart2:
true
)];
final
List
<
FlutterDevice
>
devices
=
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
generator:
residentCompiler
,
trackWidgetCreation:
false
)];
expect
((
await
new
HotRunner
(
devices
).
restart
(
fullRestart:
true
)).
isOk
,
true
);
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
mockArtifacts
,
});
testUsingContext
(
'setup function succeeds'
,
()
async
{
final
List
<
FlutterDevice
>
devices
=
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
generator:
residentCompiler
,
trackWidgetCreation:
false
,
previewDart2:
true
)];
final
List
<
FlutterDevice
>
devices
=
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
generator:
residentCompiler
,
trackWidgetCreation:
false
)];
expect
((
await
new
HotRunner
(
devices
).
restart
(
fullRestart:
true
)).
isOk
,
true
);
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
mockArtifacts
,
...
...
@@ -117,7 +117,7 @@ void main() {
});
testUsingContext
(
'setup function fails'
,
()
async
{
final
List
<
FlutterDevice
>
devices
=
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
generator:
residentCompiler
,
trackWidgetCreation:
false
,
previewDart2:
true
)];
final
List
<
FlutterDevice
>
devices
=
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
generator:
residentCompiler
,
trackWidgetCreation:
false
)];
expect
((
await
new
HotRunner
(
devices
).
restart
(
fullRestart:
true
)).
isOk
,
false
);
},
overrides:
<
Type
,
Generator
>{
Artifacts:
()
=>
mockArtifacts
,
...
...
packages/flutter_tools/test/resident_runner_test.dart
View file @
70eefd1e
...
...
@@ -47,11 +47,7 @@ void main() {
// TODO(jacobr): make these tests run with `trackWidgetCreation: true` as
// well as the default flags.
return
new
TestRunner
(
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
previewDart2:
true
,
trackWidgetCreation:
false
,
)],
<
FlutterDevice
>[
new
FlutterDevice
(
new
MockDevice
(),
trackWidgetCreation:
false
)],
);
}
...
...
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