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
34a67329
Commit
34a67329
authored
Apr 07, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use --no-precompile (#3175)
* use --no-precompile * use the flutter bin cache's sdk
parent
f697f58c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
5 deletions
+11
-5
logger.dart
packages/flutter_tools/lib/src/base/logger.dart
+1
-1
process.dart
packages/flutter_tools/lib/src/base/process.dart
+4
-1
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+2
-1
pub.dart
packages/flutter_tools/lib/src/dart/pub.dart
+4
-2
No files found.
packages/flutter_tools/lib/src/base/logger.dart
View file @
34a67329
...
...
@@ -207,7 +207,7 @@ class _AnsiStatus extends Status {
_AnsiStatus
(
this
.
message
)
{
stopwatch
=
new
Stopwatch
()..
start
();
stdout
.
write
(
'
${message.padRight(4
0
)}
'
);
stdout
.
write
(
'
${message.padRight(4
4
)}
'
);
stdout
.
write
(
'
${_progress[0]}
'
);
timer
=
new
Timer
.
periodic
(
new
Duration
(
milliseconds:
100
),
_callback
);
...
...
packages/flutter_tools/lib/src/base/process.dart
View file @
34a67329
...
...
@@ -6,6 +6,9 @@ import 'dart:async';
import
'dart:convert'
;
import
'dart:io'
;
import
'package:path/path.dart'
as
path
;
import
'../dart/sdk.dart'
;
import
'../globals.dart'
;
typedef
String
StringConverter
(
String
string
);
...
...
@@ -91,7 +94,7 @@ String runSync(List<String> cmd, { String workingDirectory }) {
/// Return the platform specific name for the given Dart SDK binary. So, `pub`
/// ==> `pub.bat`.
String
sdkBinaryName
(
String
name
)
{
return
Platform
.
isWindows
?
'
$name
.bat'
:
name
;
return
path
.
absolute
(
path
.
join
(
dartSdkPath
,
'bin'
,
Platform
.
isWindows
?
'
$name
.bat'
:
name
))
;
}
bool
exitsHappy
(
List
<
String
>
cli
)
{
...
...
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
34a67329
...
...
@@ -56,7 +56,8 @@ class UpdatePackagesCommand extends FlutterCommand {
count
+=
await
_runPub
(
new
Directory
(
"
${ArtifactStore.flutterRoot}
/examples"
),
upgrade:
upgrade
);
count
+=
await
_runPub
(
new
Directory
(
"
${ArtifactStore.flutterRoot}
/dev"
),
upgrade:
upgrade
);
printStatus
(
'Ran "pub"
$count
time
${count == 1 ? "" : "s"}
in
${timer.elapsedMilliseconds}
ms'
);
double
seconds
=
timer
.
elapsedMilliseconds
/
1000.0
;
printStatus
(
'
\n
Ran
\'
pub
\'
$count
time
${count == 1 ? "" : "s"}
in
${seconds.toStringAsFixed(1)}
s.'
);
return
0
;
}
on
int
catch
(
code
)
{
...
...
packages/flutter_tools/lib/src/dart/pub.dart
View file @
34a67329
...
...
@@ -7,6 +7,7 @@ import 'dart:io';
import
'package:path/path.dart'
as
path
;
import
'../base/logger.dart'
;
import
'../base/process.dart'
;
import
'../globals.dart'
;
...
...
@@ -31,11 +32,12 @@ Future<int> pubGet({
if
(!
checkLastModified
||
!
dotPackages
.
existsSync
()
||
pubSpecYaml
.
lastModifiedSync
().
isAfter
(
dotPackages
.
lastModifiedSync
()))
{
String
command
=
upgrade
?
'upgrade'
:
'get'
;
printStatus
(
"Running 'pub
$command
' in
$directory${Platform.pathSeparator
}
..."
);
Status
status
=
logger
.
startProgress
(
"Running 'pub
$command
' in
${path.basename(directory)
}
..."
);
int
code
=
await
runCommandAndStreamOutput
(
<
String
>[
sdkBinaryName
(
'pub'
),
'--verbosity=warning'
,
command
,
'--no-package-symlinks'
],
<
String
>[
sdkBinaryName
(
'pub'
),
'--verbosity=warning'
,
command
,
'--no-package-symlinks'
,
'--no-precompile'
],
workingDirectory:
directory
);
status
.
stop
(
showElapsedTime:
true
);
if
(
code
!=
0
)
return
code
;
}
...
...
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