Jonah Williams
04e04ffa95
Deflake wildcard asset test ( #42597 )
2019-10-14 08:49:02 -07:00
Alexandre Ardhuin
f0553ba58e
Missing trailing commas ( #41473 )
...
* add missing trailing commas
* add more missing trailing commas
* add more and more missing trailing commas
2019-09-30 18:48:23 +02:00
Alexandre Ardhuin
df4bf453ab
more UI-as-code ( #35516 )
2019-09-17 16:23:44 +02:00
Zachary Anderson
e2340c641d
[flutter_tool] Use curly braces around single statment control structures ( #40446 )
2019-09-13 14:51:35 -07:00
Zachary Anderson
398ac1f6c8
[flutter_tool] Remove some async file io ( #38654 )
2019-08-20 13:15:08 -07:00
Alexandre Ardhuin
758009ba70
more ui-as-code ( #35393 )
...
* more ui-as-code
* address review comments
2019-07-02 21:11:56 +02:00
Alexandre Ardhuin
919dcf53f3
enable lints prefer_spread_collections and prefer_inlined_adds ( #35189 )
2019-06-27 21:23:16 +02:00
Jonah Williams
73330e1241
Remove compilation trace and dynamic support code ( #34529 )
2019-06-18 15:22:04 -07:00
Keerti Parthasarathy
eae67f05df
Make const available for classes that override AssetBundle ( #31807 )
2019-04-30 09:10:04 -07:00
Jonah Williams
4ff467191b
make FlutterProject synchronous ( #31757 )
2019-04-29 08:21:32 -07:00
Jonah Williams
0acd3e6b04
refactor context to be implicit-downcast safe ( #31622 )
2019-04-25 15:51:08 -07:00
Jonah Williams
8220f8f4e3
add missing test case and handle wildcard removal ( #30205 )
2019-03-29 14:26:56 -07:00
Jonah Williams
bafe7cbbb4
Watch wildcard directories in addition to asset bundle ( #29883 )
2019-03-26 21:40:53 -07:00
Jonah Williams
377f4451ca
fix asset reloading ( #29469 )
2019-03-21 09:03:28 -07:00
Phil Quitslund
802eca29d2
set literal conversions ( #27811 )
2019-03-06 11:05:16 -08:00
Alexandre Ardhuin
387f885481
Add missing trailing commas ( #28673 )
...
* add trailing commas on list/map/parameters
* add trailing commas on Invocation with nb of arg>1
* add commas for widget containing widgets
* add trailing commas if instantiation contains trailing comma
* revert bad change
2019-03-01 08:17:55 +01:00
Alexandre Ardhuin
5169ab5974
format parameter list ( #27261 )
2019-02-21 09:27:07 +01:00
Jonah Williams
91fd89e8b3
Wrap dart:convert to track utf8 decode failures ( #26650 )
2019-01-25 16:16:26 -08:00
Jonah Williams
61291aeeaf
ensure lastBuildTimestamp is set before early return ( #25058 )
2018-12-10 15:57:52 -08:00
Alexandre Ardhuin
2ea1d81cdc
sort_constructors_first ( #22575 )
2018-10-04 07:28:07 +02:00
Alexandre Ardhuin
f62afdcf57
add missing type parameter on methods ( #22096 )
2018-10-01 21:29:08 +02:00
Alexandre Ardhuin
d927c93310
Unnecessary new ( #20138 )
...
* enable lint unnecessary_new
* fix tests
* fix tests
* fix tests
2018-09-12 08:29:29 +02:00
Alexandre Ardhuin
eda03e2586
re-re-enable lint unnecessary_const ( #20103 )
2018-08-02 12:02:32 +02:00
Todd Volkert
00aac68e2d
Revert flutter/flutter#19592 ( #19861 )
...
It was causing problems rolling Flutter into Fuchsia
2018-07-27 08:44:39 -07:00
Alexandre Ardhuin
27018359d2
re-enable lint unnecessary_const ( #19592 )
...
* re-enable lint unnecessary_const
* remove trailling whitespaces
* remove unnecessary const (after merge)
2018-07-23 08:31:48 +02:00
Leaf Petersen
32f94443cc
Remove uses of deprecated constants and change int.parse to int.tryParse ( #19575 )
...
* Remove uses of deprecated constants
* Change int.parse to int.tryParse where appropriate
2018-07-20 15:07:24 -07:00
Ian Hickson
f630f90d6d
Revert "enable lint unnecessary_const ( #19342 )" ( #19423 )
...
This reverts commit cc1cf13eec
.
2018-07-16 13:30:27 -07:00
Alexandre Ardhuin
cc1cf13eec
enable lint unnecessary_const ( #19342 )
2018-07-16 21:43:48 +02:00
Devon Carew
9d9836f080
adjust declared types to work with dart 2 typing at runtime ( #19007 )
...
* adjust declared types to work with dart 2 typing at runtime
* review comments
* update packages/flutter_tools/lib/src/ios/simulators.dart
2018-07-09 12:22:46 -07:00
Alexandre Ardhuin
09276bea25
enable lint prefer_equal_for_default_values ( #18156 )
2018-06-05 08:50:40 +02:00
fmatosqg
197d4315a9
Scan assets from disk ( #16413 )
...
Scan folders when asset specified finishes with `/`
2018-05-20 17:52:33 -07:00
Greg Spencer
3c5a7a3005
Make non-global constants have consistent naming (with just _ instead of _k) ( #17584 )
...
Our style guide says the k's are not necessary, and it seems like a good idea to make all the code be consistent on this.
Only naming changes to private vars: no logic changes.
2018-05-17 23:04:41 -07:00
Todd Volkert
d820e5f3b1
Use deprecated io constants ( #17278 )
...
The new values are not ready for use yet inside Google
2018-05-03 22:27:29 -07:00
Yegor
b2c98f9a4e
Roll engine to e976be13c51448f89107d082ec81e2b6731671fa ( #17266 )
...
* Roll engine to e976be13c51448f89107d082ec81e2b6731671fa
* move away from deprecated constants
2018-05-03 19:24:48 -07:00
Todd Volkert
c83d24d547
Always add a DevFS asset entry for the font manifest ( #16650 )
...
The engine expects it to always be there.
2018-04-16 21:48:21 -07:00
Sarah Zakarias
4443e4d4cf
Cleanup FLX related code ( #16416 )
2018-04-12 10:12:26 +02:00
Todd Volkert
8d11f5c763
Make AppContext immutable and race-free ( #15984 )
...
This updates AppContext per the recommendations in #15352
Fixes #15352
2018-03-28 10:58:28 -07:00
Jason Simmons
466d15433f
Use Dart 2 camel case constants ( #15360 )
2018-03-12 11:06:32 -07:00
Todd Volkert
1686b6d56d
Remove fixed asset bundles - they're no longer used. ( #14729 )
2018-02-16 10:22:52 -08:00
jensjoha
5ccd5a1e75
[kernel/flutter] Improve speed of first hot reload ( #13699 )
...
* [kernel/flutter] Improve speed of first hot reload
* [kernel/flutter] Improve speed of first hot reload
* Revert "[kernel/flutter] Improve speed of first hot reload"
This reverts commit f3dc133878
.
* Revert "[kernel/flutter] Improve speed of first hot reload"
This reverts commit f7bcb082b0
.
* Revert "Revert "[kernel/flutter] Improve speed of first hot reload""
This reverts commit 73c7a1a8e8
.
* [kernel/flutter] Improve speed of first hot reload
Do so by not evicting unnecessary paths (while still evicting paths
that was changed between the generation of the package file and the
initial upload).
* Fix grammar in method name
* Fix bad merge
* Add method to super class
2018-01-31 07:39:58 -08:00
Todd Volkert
1859e82a3d
Extensibility improvements to flutter_tools ( #14299 )
...
* Make the current command injected into the AppContext, allowing
other classes to inject the current command.
* Introduce `AssetBundleFactory`, an injected factory class for
spawning instances of `AssetBundle`. This allows other run contexts
to use custom asset bundling logic.
* Clean up RunCommand by removing a 'packages' argument that duplicated
a global argument by the same name (and for the same purpose).
Duplicate arguments are confusing and error-prone.
2018-01-29 09:40:28 -08:00
Michael Goderbauer
84580b545a
Make Assets more robust across platforms ( #14246 )
2018-01-24 13:16:23 -08:00
Michael Goderbauer
733bd04904
Fix custom fonts on Windows ( #14191 )
...
Fixes https://github.com/flutter/flutter/issues/13870 .
2018-01-22 10:00:27 -08:00
Jason Simmons
cb2cfac0eb
Check for presence of an asset directory before accessing it ( #12790 )
...
Fixes https://github.com/flutter/flutter/issues/12460
2017-10-30 17:04:30 -07:00
Alexandre Ardhuin
28366002d9
enable lint prefer_foreach ( #12674 )
...
* enable lint prefer_foreach
* fix tests
2017-10-25 08:25:44 +02:00
Sarah Zakarias
3cbbbf0617
Allow empty pubspec file when building asset bundle ( #12269 )
2017-09-26 23:14:20 +02:00
Sarah Zakarias
49ba974710
Factor out flutter manifest logic ( #12237 )
2017-09-26 14:48:52 +02:00
Sarah Zakarias
ec2d1c9116
Add support for shared fonts in packages. ( #12142 )
2017-09-19 14:04:51 +02:00
Sarah Zakarias
e5aead03cc
Comments to PR #12032 ( #12045 )
2017-09-12 12:53:03 +02:00
Sarah Zakarias
0b95e9c278
Support transitive asset dependency ( #12032 )
2017-09-12 09:13:41 +02:00
Sarah Zakarias
02c10b78d2
Bundle assets used in packages ( #11751 )
2017-09-05 09:42:24 +02:00
Hans Muller
680d581db7
Correct handling of assets when no main asset is present ( #11564 )
2017-08-09 16:04:57 -07:00
Hans Muller
b55441a027
Do not require main asset files if variants are provided ( #10901 )
2017-06-22 16:45:57 -07:00
Ian Hickson
0f1a703a6b
More documentation ( #10589 )
2017-06-08 17:13:03 -07:00
Alexandre Ardhuin
189028a958
Separate the 'if' expression from its statement ( #9177 )
2017-04-04 21:45:50 +02:00
xster
3bc3d4a50b
Remove various roboto font logic ( #8350 )
2017-03-23 11:28:03 -07:00
Alexandre Ardhuin
a0769f2488
apply the upcoming rule unnecessary_this ( #8838 )
2017-03-17 08:05:42 +01:00
Chris Bracken
7a09316cd0
Declare locals final where not reassigned (flutter_tools) ( #8570 )
2017-03-03 17:50:46 -08:00
Alexandre Ardhuin
8c043d06de
fix lints for directives_ordering rule ( #8382 )
2017-02-23 13:37:26 -08:00
Michael Goderbauer
a55a745c73
Fail tests with an actionable message when FLUTTER_ROOT is not set ( #8236 )
...
Also: Fix some analyzer warnings.
2017-02-16 18:50:28 -08:00
Michael Goderbauer
5e54fd54d9
Ban package:path from Flutter Tools ( #8119 )
2017-02-13 17:45:50 -08:00
Todd Volkert
3b52c87da6
Bump deps on package:file
and package:process
( #8097 )
2017-02-13 09:55:54 -08:00
Michael Goderbauer
9f28b4ff71
Windows Fixes for Flutter Tools ( #7678 )
2017-01-26 17:04:53 -08:00
Ian Hickson
1bdf351818
Merge pubspec.yaml and flutter.yaml. ( #7605 )
2017-01-24 11:19:31 -08:00
Dan Rubel
0295def2a9
Refactor DevFS for kernel code ( #7529 )
...
Refactor DevFS so that it's easier to add new types of content such as kernel code
* add tests for DevFS package scanning
* add tests for DevFS over VMService protocol
* which covers _DevFSHttpWriter and ServiceProtocolDevFSOperations
* replace AssetBundleEntry and DevFSEntry with DevFSContent
* refactor to cleanup common code and replace some fields with locals
* rework .package file generation refactor away DevFSOperations.writeSource
* only update .package file if it has changed
* only write/delete/evict assets that have been changed/removed
2017-01-22 10:37:10 -05:00
Todd Volkert
1ccbf8f00d
Use FileSystem.pathSeparator instead of Platform.pathSeparator ( #7417 )
2017-01-10 13:17:20 -08:00
Todd Volkert
016b5ab0cc
Force all dart:io usage to go through 'base/io.dart' ( #7390 )
...
This ensures that accidental usages of dart:io's
file API don't creep in over time.
2017-01-09 08:37:00 -08:00
Todd Volkert
8bb270342e
Update flutter_tools to use package:file throughout ( #7385 )
...
This removes direct file access from within flutter_tools
in favor of using `package:file` via a `FileSystem` that's
accessed via the `ApplicationContext`.
This lays the groundwork for us to be able to easily swap
out the underlying file system when running Flutter tools,
which will be used to provide a record/replay file system,
analogous to what we have for process invocations.
2017-01-06 16:51:44 -08:00
Jason Simmons
f2342a6141
Provide an empty asset manifest if the FLX does not contain any assets ( #7243 )
...
Without this, an FLX with no assets may be completely empty in AOT mode.
This will result in a warning when the engine's unzip library tries to
parse the FLX.
Fixes https://github.com/flutter/flutter/issues/7060
2016-12-13 13:43:28 -08:00
John McCutchan
ae1881e4c7
Fix handling of empty --project-assets option ( #6873 )
2016-11-15 13:47:57 -08:00
John McCutchan
d54bed45f3
Support specifying a fixed list of assets on the command line ( #6857 )
2016-11-15 07:01:00 -08:00
John McCutchan
958d2a6fb8
Abort a hot reload if we detect an error in flutter.yaml ( #6787 )
2016-11-09 18:13:06 -08:00
P.Y. Laligand
9b7764d48f
Added an option to allow default fonts to not be packed in an flx file. ( #6710 )
...
Fonts should never be bundled on Fuchsia.
2016-11-04 14:06:44 -07:00
Adam Barth
c074265298
Add support for building on Fuchsia ( #6415 )
...
This patch makes it possible to build Flutter apps that use the framework on
Fuchsia.
2016-10-20 01:32:45 -07:00
Chris Bracken
b5f763b45e
Support a configurable build directory ( #5601 )
...
This change adds a top-level getBuildDirectory func and funcs for
android, aot, asset, ios build products.
Developers may now add a "build-dir" mapping to their
~/.flutter_settings (JSON format) config file. Output directory is
relative to the main flutter application directory.
This change also changes the default build directory for iOS builds to a
subdirectory of the configured build directory, 'build/ios' by default.
2016-08-25 16:38:19 -07:00
Ian Hickson
a194e59390
Support multilicense LICENSE files generically. ( #5310 )
...
Also, add a "flutter build flx --report-licensed-packages" option for
when you need to get the list of the packages affected by licenses.
2016-08-09 20:03:14 -07:00
John McCutchan
81b4e827e1
Split hot run mode into a separate file ( #5233 )
2016-08-05 12:04:33 -07:00
John McCutchan
b11b2a1d46
Add loader screen for --hot mode ( #5113 )
2016-07-28 13:48:48 -07:00
Ian Hickson
db8ff48dd4
Omit the package names from the license text. ( #5102 )
...
This was a minor typo in the original code. It makes the license display
slightly cleaner.
2016-07-27 14:28:53 -07:00
John McCutchan
b6644733c9
Support for synchronizing assets onto a DevFS
2016-07-27 13:28:17 -07:00