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
72605d24
Unverified
Commit
72605d24
authored
Mar 16, 2019
by
Jonah Williams
Committed by
GitHub
Mar 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch flutter_tools from script to app-jit snapshot. (#27749)
parent
23326db7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
4 deletions
+32
-4
flutter
bin/flutter
+1
-1
flutter.bat
bin/flutter.bat
+1
-1
test.dart
dev/bots/test.dart
+1
-2
executable.dart
packages/flutter_tools/lib/executable.dart
+2
-0
train.dart
packages/flutter_tools/lib/src/commands/train.dart
+27
-0
No files found.
bin/flutter
View file @
72605d24
...
...
@@ -121,7 +121,7 @@ function upgrade_flutter () {
retry_upgrade
"
$DART
"
--snapshot
=
"
$SNAPSHOT_PATH
"
--
packages
=
"
$FLUTTER_TOOLS_DIR
/.packages"
"
$SCRIPT_PATH
"
"
$DART
"
--snapshot
=
"
$SNAPSHOT_PATH
"
--
snapshot-kind
=
app-jit
--packages
=
"
$FLUTTER_TOOLS_DIR
/.packages"
"
$SCRIPT_PATH
"
training
echo
"
$revision
"
>
"
$STAMP_PATH
"
fi
# The exit here is duplicitous since the function is run in a subshell,
...
...
bin/flutter.bat
View file @
72605d24
...
...
@@ -152,7 +152,7 @@ GOTO :after_subroutine
POPD
"%dart%" --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.packages" "%script_path%"
"%dart%" --snapshot="%snapshot_path%" --
snapshot-kind=app-jit --
packages="%flutter_tools_dir%\.packages" "%script_path%"
IF "%ERRORLEVEL%" NEQ "0" (
ECHO Error: Unable to create dart snapshot for flutter tool.
SET exit_code=%ERRORLEVEL%
...
...
dev/bots/test.dart
View file @
72605d24
...
...
@@ -181,7 +181,6 @@ Future<void> _runToolTests() async {
await
_buildRunnerTest
(
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
),
flutterRoot
,
enableFlutterToolAsserts:
true
,
tableData:
bigqueryApi
?.
tabledata
,
);
...
...
@@ -713,4 +712,4 @@ Future<void> _integrationTestsAndroidSdk() async {
}
// note: this also covers plugin_test_win as long as Windows has an Android SDK available.
await
_runDevicelabTest
(
'plugin_test'
,
env:
env
);
}
\ No newline at end of file
}
packages/flutter_tools/lib/executable.dart
View file @
72605d24
...
...
@@ -38,6 +38,7 @@ import 'src/commands/shell_completion.dart';
import
'src/commands/stop.dart'
;
import
'src/commands/test.dart'
;
import
'src/commands/trace.dart'
;
import
'src/commands/train.dart'
;
import
'src/commands/update_packages.dart'
;
import
'src/commands/upgrade.dart'
;
import
'src/commands/version.dart'
;
...
...
@@ -84,6 +85,7 @@ Future<void> main(List<String> args) async {
StopCommand
(),
TestCommand
(
verboseHelp:
verboseHelp
),
TraceCommand
(),
TrainingCommand
(),
UpdatePackagesCommand
(
hidden:
!
verboseHelp
),
UpgradeCommand
(),
VersionCommand
(),
...
...
packages/flutter_tools/lib/src/commands/train.dart
0 → 100644
View file @
72605d24
// Copyright 2019 The Chromium 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
'../runner/flutter_command.dart'
;
/// This command is run when generating the app-jit snapshot for the tool, so it cannot access the Cache
/// or any artifacts that haven't been downloaded yet.
class
TrainingCommand
extends
FlutterCommand
{
@override
String
get
description
=>
'training run for app-jit snapshot'
;
@override
String
get
name
=>
'training'
;
@override
bool
get
hidden
=>
true
;
@override
bool
get
shouldUpdateCache
=>
false
;
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
// This command does not do anything yet :).
return
null
;
}
}
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