Michael Goderbauer
d35a9db6fe
Avoid downloading artifacts twice ( #8872 )
...
* Avoid downloading artifacts twice
* Don't update cache before `flutter upgrade` is executed (`flutter upgrade` might bump the engine version)
* Don't update cache twice during `flutter precache`
Fixes #8249 .
* add test
2017-03-20 17:09:59 -07:00
Todd Volkert
12ebb66d9e
Allow FlutterVersion to be overridden in the context ( #8801 )
2017-03-15 14:01:45 -07:00
Chris Bracken
7a09316cd0
Declare locals final where not reassigned (flutter_tools) ( #8570 )
2017-03-03 17:50:46 -08:00
Michael Goderbauer
5e54fd54d9
Ban package:path from Flutter Tools ( #8119 )
2017-02-13 17:45:50 -08:00
Michael Goderbauer
cff7dc5444
Bump package:process version ( #8073 )
2017-02-10 16:54:51 -08:00
Michael Goderbauer
82f887de07
Fix Flutter Tools Tests to run on Windows ( #7878 )
2017-02-05 22:58:49 -08:00
Phil Quitslund
8dc1634be5
Stop building unlinked summaries for packages. ( #7538 )
...
Stop building (unused) unlinked summaries for packages.
Improves update speed considerably (for `n` packages it saves us `n` needless calls to `pub get`).
2017-01-19 09:11:41 -08:00
John McCutchan
0b737ac57b
Remove default AppContext and cleanup globals ( #6999 )
2016-11-29 07:54:20 -08:00
Dan Rubel
34e466f1fd
Refactor flutter command exit code - part 3 of 3 ( #6838 )
...
* Remove the workaround that pinned args to v0.13.6
This reverts most of the changes in commit 6331b6c8b5
* throw exception if exit code is not an integer
* rework command infrastructure to throw ToolExit when non-zero exitCode
* convert commands to return Future<Null>
* cleanup remaining commands to use throwToolExit for non-zero exit code
* remove isUnusual exception message
* add type annotations for updated args package
2016-11-14 14:21:30 -05:00
Dan Rubel
e384c0d982
Refactor flutter command exit code - part 2 ( #6817 )
...
* convert pubGet to throw ToolExit on non-zero exit code
* convert commandValidator to throw ToolExit for non-zero exit code
* convert flutter commands to throw ToolExit for non-zero exit code
* use convenience method throwToolExit
* only show "if this problem persists" for unusual exceptions
2016-11-13 22:09:03 -05:00
Devon Carew
e9b041f21e
don't run the summary code if the upgrade fails ( #6350 )
2016-10-16 10:05:13 -07:00
Chris Bracken
4a3cd61044
Execute flutter doctor on upgrade ( #6330 )
...
Ensure that any new/changed doctor checks are evaluated and reported
post upgrade.
2016-10-14 12:57:37 -07:00
Dan Rubel
1821238279
Refactor flutter command execution ( #5892 )
...
* refactor _run to runCmd
* replace requiresProjectRoot getter with call to commandValidator
* replace requiresDevice getter with call to findTargetDevice
* trace command requires a debug connection, not a device
* inline androidOnly getter
* rename command methods to verifyTheRunCmd and runCmd
* move common verification into BuildSubCommand
* rename deviceForCommand to device
* rename methods to verifyThenRunCommand and runCommand
2016-09-16 09:13:35 -04:00
Konstantin Scheglov
0774a6748e
Build unlinked summaries for packages on upgrade. ( #5816 )
...
* Build unlinked summaries for packages on upgrade.
* Iterate through the packages in folders.
* Rollback the debug change.
2016-09-12 13:58:32 -07:00
Adam Barth
4ea8f302ab
Teach flutter upgrade to switch to master ( #5827 )
...
To avoid orphaning people on the deprecated alpha branch, this patch teaches
`flutter upgrade` to switch to the master branch.
2016-09-12 13:25:57 -07:00
Dan Rubel
194a9ef3c9
implement flutter packages get/upgrade command ( #5603 )
...
* implement flutter packages get/upgrade command
* alias flutter pub
* refactor findProjectRoot for use by multiple commands
fixes https://github.com/flutter/flutter/issues/4994
2016-08-25 22:37:48 -04:00
Dan Rubel
1ea2f4030e
enhance flutter upgrade to find project root ( #5552 )
...
* enhance flutter upgrade to find project root
fixes https://github.com/flutter/flutter/issues/2990
* address comments
* restore original formatting
* fix lints
2016-08-25 14:59:12 -04:00
Ian Hickson
0d21e69b1d
Fix flutter upgrade and flutter build ios ( #4564 )
...
* Fix `flutter upgrade`
* Fix builds on iOS
2016-06-14 18:16:55 -07:00
Ian Hickson
294376fb01
fix reentrant locking in pub upgrade ( #4556 )
2016-06-14 12:39:20 -07:00
Jason Simmons
32846de9f8
Remove ArtifactStore and move flutterRoot into Cache ( #3883 )
2016-05-12 15:54:35 -07:00
Devon Carew
826936cd33
use vendored dart sdk; check the expected version of flutter ( #3831 )
...
* use vendored dart sdk; check the expected version of flutter
* search up directories looking for the flutter root
2016-05-10 16:21:30 -07:00
Hans Muller
74c3e74fba
Call it Flutter Gallery ( #3801 )
2016-05-09 11:00:54 -07:00
Devon Carew
bd564a02af
avoid sending analytics on ci systems ( #3765 )
...
* avoid sending analytics on ci systems
* review comments
2016-05-05 19:51:22 -07:00
Devon Carew
2a33e3f0c0
make flutter upgrade less verbose ( #3237 )
...
* more terse flutter upgrade
* fix an issue when updating and the engine update code has changed
* call flutter precache; add a --no-color hidden option
* fix a lint related to getters/setters
2016-04-11 11:17:09 -07:00
Devon Carew
a729b02f1a
move the engine download code to dart ( #3180 )
...
* move the engine download code to dart
* fix populating the bin/cache/pkg dir
2016-04-07 13:31:44 -07:00
Devon Carew
4bdc2b872b
adjust upgrade command
2016-03-29 09:41:06 -07:00
Adam Barth
3824e88df7
flutter upgrade
needed twice if sky_services dependencies change
...
Now we run `flutter --version` to update our local cache of packages before
running `pub upgrade`, which reads from that cache.
Fixes #2953
2016-03-28 12:16:19 -07:00
Devon Carew
25f332d8d7
re-work the doctor command
2016-03-23 21:12:29 -07:00
Hixie
797e27edd3
Add @override annotations to flutter framework
2016-03-14 14:02:26 -07:00
Devon Carew
d5a6fceee5
add a summary option to the doctor class
2016-02-17 09:33:45 -08:00
Collin Jackson
5cd9d5b214
Upgrade command shouldn’t validate project, fixes #1745
2016-02-10 10:04:35 -08:00
Devon Carew
2dbceafbc6
introduce globals scoped to the app's context
2016-02-09 22:03:13 -08:00
Devon Carew
864b7f47d7
add the engine revision to --version
2016-01-29 10:45:59 -08:00
Devon Carew
d7fbf5302d
use status(), error(), and trace() for logging
...
rename to printTrace(), printStatus(), and printError()
2016-01-28 12:44:17 -08:00
Adam Barth
2303188614
Handle trying to upgrade Flutter with no upstream
...
Fixes #1084
2016-01-07 10:57:48 -08:00
Adam Barth
9662d49e12
Clean up code organization in flutter_tools
...
1) Moved basic utility code into base/ directory to make it clear which code
doesn't depend on Flutter-specific knowldge.
2) Move the CommandRunner subclasses into a runner/ directory because these
aren't commands themselves.
2015-11-28 21:16:55 -08:00
Adam Barth
90991854e0
Add a flutter upgrade
command
...
This command upgrades the version of flutter that you're using and runs
`pub upgrade` to update the transitive dependencies.
2015-11-12 10:16:13 -08:00