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
4bdc2b87
Commit
4bdc2b87
authored
Mar 29, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust upgrade command
parent
a003d171
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
executable.dart
packages/flutter_tools/lib/executable.dart
+1
-1
upgrade.dart
packages/flutter_tools/lib/src/commands/upgrade.dart
+10
-5
flx.dart
packages/flutter_tools/lib/src/flx.dart
+4
-4
No files found.
packages/flutter_tools/lib/executable.dart
View file @
4bdc2b87
...
...
@@ -141,6 +141,6 @@ String _doctorText() {
return
logger
.
statusText
;
}
catch
(
error
,
trace
)
{
return
'encountered exception:
$error
\n
$trace
'
;
return
'encountered exception:
$error
\n
\n
```
\n
${trace.toString().trim()}
\n
```
\n
'
;
}
}
packages/flutter_tools/lib/src/commands/upgrade.dart
View file @
4bdc2b87
...
...
@@ -3,9 +3,11 @@
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:io'
;
import
'../artifacts.dart'
;
import
'../base/process.dart'
;
import
'../dart/pub.dart'
;
import
'../globals.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../runner/version.dart'
;
...
...
@@ -44,18 +46,21 @@ class UpgradeCommand extends FlutterCommand {
return
code
;
// Causes us to update our locally cached packages.
printStatus
(
''
);
code
=
await
runCommandAndStreamOutput
(<
String
>[
'bin/flutter'
,
'--version'
],
workingDirectory:
ArtifactStore
.
flutterRoot
);
printStatus
(
''
);
code
=
await
runCommandAndStreamOutput
([
sdkBinaryName
(
'pub'
),
'upgrade'
]);
if
(
code
!=
0
)
return
code
;
printStatus
(
''
);
printStatus
(
FlutterVersion
.
getVersion
(
ArtifactStore
.
flutterRoot
).
toString
());
if
(
FileSystemEntity
.
isFileSync
(
'pubspec.yaml'
))
{
printStatus
(
''
);
code
=
await
pubGet
(
upgrade:
true
,
checkLastModified:
false
);
if
(
code
!=
0
)
return
code
;
}
return
0
;
}
...
...
packages/flutter_tools/lib/src/flx.dart
View file @
4bdc2b87
...
...
@@ -33,11 +33,11 @@ const String _kFontSetMaterial = 'material';
const
String
_kFontSetRoboto
=
'roboto'
;
class
_Asset
{
_Asset
({
this
.
source
,
this
.
base
,
this
.
key
});
final
String
source
;
final
String
base
;
final
String
key
;
_Asset
({
this
.
source
,
this
.
base
,
this
.
key
});
}
Map
<
String
,
dynamic
>
_readMaterialFontsManifest
()
{
...
...
@@ -196,11 +196,11 @@ Future<String> buildFlx(
/// The result from [buildInTempDir]. Note that this object should be disposed after use.
class
DirectoryResult
{
DirectoryResult
(
this
.
directory
,
this
.
localBundlePath
);
final
Directory
directory
;
final
String
localBundlePath
;
DirectoryResult
(
this
.
directory
,
this
.
localBundlePath
);
/// Call this to delete the temporary directory.
void
dispose
()
{
directory
.
deleteSync
(
recursive:
true
);
...
...
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