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
726d3168
Commit
726d3168
authored
Sep 09, 2016
by
Chris Bracken
Committed by
GitHub
Sep 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drive: Replace manual pub get with usesPubOption() (#5803)
parent
5c4c1b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
drive.dart
packages/flutter_tools/lib/src/commands/drive.dart
+2
-10
No files found.
packages/flutter_tools/lib/src/commands/drive.dart
View file @
726d3168
...
...
@@ -11,9 +11,7 @@ import '../android/android_device.dart' show AndroidDevice;
import
'../application_package.dart'
;
import
'../base/file_system.dart'
;
import
'../base/common.dart'
;
import
'../base/logger.dart'
;
import
'../base/os.dart'
;
import
'../base/process.dart'
;
import
'../build_info.dart'
;
import
'../cache.dart'
;
import
'../dart/package_map.dart'
;
...
...
@@ -47,6 +45,7 @@ import 'run.dart';
/// exit code.
class
DriveCommand
extends
RunCommandBase
{
DriveCommand
()
{
usesPubOption
();
argParser
.
addFlag
(
'keep-app-running'
,
negatable:
true
,
...
...
@@ -126,14 +125,6 @@ class DriveCommand extends RunCommandBase {
printStatus
(
'Will connect to already running application instance.'
);
}
// Check for the existence of a `.packages` file.
PackageMap
.
globalPackagesPath
=
path
.
normalize
(
path
.
absolute
(
PackageMap
.
globalPackagesPath
));
if
(!
new
io
.
File
(
PackageMap
.
globalPackagesPath
).
existsSync
())
{
Status
status
=
logger
.
startProgress
(
'Missing .packages file; running `pub get`:'
);
await
runAsync
(<
String
>[
sdkBinaryName
(
'pub'
),
'get'
,
'--no-precompile'
,
'--no-packages-dir'
]);
status
.
stop
(
showElapsedTime:
true
);
}
Cache
.
releaseLockEarly
();
try
{
...
...
@@ -334,6 +325,7 @@ void restoreTestRunner() {
Future
<
int
>
runTests
(
List
<
String
>
testArgs
)
async
{
printTrace
(
'Running driver tests.'
);
PackageMap
.
globalPackagesPath
=
path
.
normalize
(
path
.
absolute
(
PackageMap
.
globalPackagesPath
));
List
<
String
>
args
=
testArgs
.
toList
()
..
add
(
'--packages=
${PackageMap.globalPackagesPath}
'
)
..
add
(
'-rexpanded'
);
...
...
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