4603 Commits

Author SHA1 Message Date
pq
0aa07baf70 Migrate flutter analyze config to options.
More groundwork to get `analyze` and IDE output to agree.

See: https://github.com/dart-lang/sdk/issues/25723
2016-03-11 14:52:07 -08:00
Phil Quitslund
b9f28e6f75 Merge pull request #2615 from pq/analyze_cleanup
Analyze command cleanup.
2016-03-11 14:25:24 -08:00
Jason Simmons
a4453231f9 Merge pull request #2623 from jason-simmons/build_pub_get
Run "pub get" if needed in the flutter build command
2016-03-11 14:22:21 -08:00
Jason Simmons
68e71146a7 Run "pub get" if needed in the flutter build command 2016-03-11 14:10:42 -08:00
pq
a2dac85f87 Re-added conflictingNamesPattern. 2016-03-11 13:12:07 -08:00
Adam Barth
d24a7d3f93 Merge pull request #2607 from abarth/rotated_box
Add RotatedBox which applies a rotation before layout
2016-03-11 12:57:43 -08:00
Adam Barth
e59b25b21f Add RotatedBox which applies a rotation before layout
Transform applies its transform before painting, but sometimes you want
the widget to layout after its transform has been applied. We can't
handle general tranforms in this way because we can't couple width and
height constriants, but we can handle certain rotations.

Fixes #1214
2016-03-11 12:23:41 -08:00
Devon Carew
9319ac5e81 Merge pull request #2612 from devoncarew/remove_devicestore
Remove devicestore
2016-03-11 11:36:27 -08:00
Devon Carew
5ad6a57007 remove some references to DeviceStore 2016-03-11 11:25:03 -08:00
Devon Carew
35c5494f19 Merge pull request #2603 from devoncarew/i18n_regenerate
regenerate the i18n files for the stocks example
2016-03-11 11:20:09 -08:00
Devon Carew
94157c91e9 regenerate the i18n files 2016-03-11 10:58:30 -08:00
pq
aedef5139b Analyze command cleanup.
Removing some special-casing in pursuit of aligning `flutter analyze` output with that provided by server/IDEs.  Specifically:
  * strong-hints (stale, no longer supported)
  * "analyzer says" comment handling in favor of `//ignore`s
  * `conflictingNamePattern` --- no longer needed

Next up some of the error filter regexps...
2016-03-11 10:35:17 -08:00
Viktor Lidholt
bbb7f14a9e Merge pull request #2589 from vlidholt/master
Markdown is now correctly updated when config changes
2016-03-11 09:39:54 -08:00
John McCutchan
27a530c9af Merge pull request #2594 from johnmccutchan/fixed_device_port_forward
Add DevicePortForwarder with adb fix
2016-03-11 09:34:04 -08:00
John McCutchan
5e140b7533 Add DevicePortForwarder with adb fix 2016-03-11 09:26:17 -08:00
Devon Carew
625b5b51c7 Merge pull request #2604 from devoncarew/less_i18n_analysis
exclude the i18n files from analysis
2016-03-11 09:11:56 -08:00
Adam Barth
4d2b3f0006 Merge pull request #2610 from abarth/update_context
Provide the BuildContext to createRenderObject and updateRenderObject
2016-03-11 09:08:54 -08:00
Adam Barth
0277b075e0 Provide the BuildContext to createRenderObject and updateRenderObject
We'll need this for RTL support because the RTL state will live in the widget
tree. Also, remove the `oldWidget` argument to updateRenderObject because there
aren't any clients for it.
2016-03-11 08:59:37 -08:00
qchong
5ebe61a167 Merge pull request #2574 from qchong/update-api-docs
api docs: Add descriptions for Scaffold, Theme, and ThemeData classes.
2016-03-11 08:52:57 -08:00
Viktor Lidholt
9001b2646d Markdown is now correctly updated when config changes 2016-03-11 08:17:35 -08:00
Ian Hickson
183fd2051d Merge pull request #2606 from Hixie/all_the_hints
Enable ALL THE LINTS
2016-03-10 23:37:39 -08:00
Ian Hickson
1b9cd52081 Enable ALL THE LINTS
Well, all the easy ones, anyway.

For some reason `// ignore:` isn't working for me so I've disabled
lints that need that. Also disabled those that require a ton of work
(which I'm doing, but not in this PR, to keep it reviewable).

This adds:
- avoid_init_to_null
- library_names
- package_api_docs
- package_names
- package_prefixed_library_names
- prefer_is_not_empty
- sort_constructors_first
- sort_unnamed_constructors_first
- unnecessary_getters_setters
2016-03-10 23:15:31 -08:00
Devon Carew
f9855ca72b exclude the i18n files from analysis 2016-03-10 21:42:46 -08:00
Ian Hickson
7544514484 Merge pull request #2566 from Hixie/avoid_empty_else_lint
Remove the _EquationMember.hashCode override
2016-03-10 21:35:12 -08:00
Ian Hickson
167c433a56 Merge pull request #2520 from Hixie/TextSpan.toString
Fix crash when dumping the app if it uses RichText
2016-03-10 21:33:07 -08:00
Ian Hickson
7cf2dbdf37 Fix crash when dumping the app if it uses RichText
Specifically:

* Handle null styles in TextSpan without crashing in toString().

* Handle null children in TextSpan child lists without crashing in
  toString().

* Handle entirely empty TextSpans in toString() explicitly.

* Assert that TextSpans don't contain nulls in various places. This is
  done more often than one might think necessary, because it turns out
  that TextSpan takes a (mutable) List for one of its arguments, so
  who knows what it will contain at any given time. By asserting all
  over the place, hopefully we'll catch it near the change if they do
  change it.

* Add a RichText example to Stocks to exercise RichText and TextSpans.

See also: https://github.com/flutter/flutter/issues/2514, https://github.com/flutter/flutter/issues/2519
2016-03-10 20:48:50 -08:00
Adam Barth
3dc22dce58 Merge pull request #2599 from abarth/rebuild_render_object_widget
Prepare to make RenderObjectElement buildable
2016-03-10 20:45:32 -08:00
Adam Barth
0327141c37 Prepare to make RenderObjectElement buildable
This patch prepares us to pass a BuildContext to RenderObjectWidgets, which
will make it possible to rebuild RenderObjectElements:

 * Delay creation of the render object until mount(). That will let us pass
   `this` to createRenderObject and have the inherited elements be initialized.

 * Cleanup widgets that take builder closures to prepare for their
   RenderObjectElement to be rebuilt more often.

 * Add a test for the interaction between inherited widgets and
   MixedViewport.

Related to #2598
2016-03-10 20:18:37 -08:00
Adam Barth
945d6b0126 Merge pull request #2596 from abarth/rm_closure
Use a member function instead of an anonymous closure
2016-03-10 18:55:31 -08:00
Quddus Chong
2e4fb21aca api docs: Add descriptions for Scafold, Theme, and ThemeData classes. 2016-03-10 17:55:16 -08:00
Hixie
1d03522857 Remove the _EquationMember.hashCode override
Since we removed our operator== overload, we can now allow people to put
these in collections again.

Also, turn on two more analyzer lints: avoid_empty_else and hash_and_equals.
2016-03-10 17:27:02 -08:00
Chinmay Garde
48fc37f914 Merge pull request #2595 from chinmaygarde/master
Update engine revision to pick up fixes for precompilation variants
2016-03-10 16:32:55 -08:00
Chinmay Garde
425aeaf403 Update engine revision to pick up fixes for precompilation variants 2016-03-10 16:32:16 -08:00
Adam Barth
7f5d6a9913 Use a member function instead of an anonymous closure
It's slightly more efficient.
2016-03-10 16:31:43 -08:00
Adam Barth
fd8695b64a Merge pull request #2593 from abarth/more_dots
Use the .. pattern more in updateRenderObject
2016-03-10 16:03:12 -08:00
Adam Barth
10591730f5 Use the .. pattern more in updateRenderObject 2016-03-10 15:34:53 -08:00
Viktor Lidholt
b054234495 Merge pull request #2585 from vlidholt/master
Initial support for links in markdown
2016-03-10 14:46:17 -08:00
Devon Carew
83caeb35ed Merge pull request #2584 from devoncarew/redux_analysis_options
move the analysis_options to a file
2016-03-10 14:37:58 -08:00
Eric Seidel
c62ce87cf5 Merge pull request #2588 from flutter/revert-2506-device_port_forward
Revert "Add DevicePortForwarder"
2016-03-10 14:23:56 -08:00
Eric Seidel
37f0b5dd98 Revert "Add DevicePortForwarder" 2016-03-10 14:23:39 -08:00
Devon Carew
b9fafc1765 adjust a regex for intl files 2016-03-10 14:21:23 -08:00
Yegor
96db7c0a5a Merge pull request #2580 from yjbanov/lower-xcode-version-requirement
[ios] reduce xcode version requirement to 7.0
2016-03-10 14:08:48 -08:00
Viktor Lidholt
800e2558ba Initial support for links in markdown 2016-03-10 14:08:32 -08:00
Adam Barth
d76857aa96 Merge pull request #2583 from abarth/update_engine
Update engine
2016-03-10 13:54:47 -08:00
Devon Carew
780e4e6212 move the analysis_options to a file 2016-03-10 13:47:20 -08:00
Adam Barth
a9f72633c4 Update engine 2016-03-10 13:39:20 -08:00
John McCutchan
5fcaebbf51 Merge pull request #2506 from johnmccutchan/device_port_forward
Add DevicePortForwarder
2016-03-10 13:23:40 -08:00
Yegor Jbanov
23e634a613 [ios] reduce xcode version requirement to 7.0
Build bots only have 7.0.
2016-03-10 13:08:58 -08:00
John McCutchan
131359f4bc Add DevicePortForwarder 2016-03-10 12:49:07 -08:00
Jason Simmons
3b5fba4022 Merge pull request #2578 from jason-simmons/flx_working_dir
Add an option to specify a working directory for the FLX builder
2016-03-10 12:43:35 -08:00