1253 Commits

Author SHA1 Message Date
Matt Perry
d2f151acbe Introduce an UpdateService for android.
Very simple so far. This schedules an alarm to fire once a day, kicking
off a service that downloads a new app.skyx from a hardcoded URL. The
new skyx replaces the current one.
2015-09-02 15:32:09 -04:00
Hans Muller
1c3831e8e5 Merge pull request #1012 from HansMuller/improve-items-wrap
Restore PageableList itemsWrap:true

Makes PageableList with itemsWrap:true work again.

Plumbed the itemsWrap parameter through to HomogenousViewport.

Fixes issue #877.
2015-09-02 10:58:38 -07:00
Viktor Lidholt
b20bbd4818 Merge pull request #1014 from vlidholt/master
Fixes issue in sprite constraint
2015-09-02 10:58:35 -07:00
Viktor Lidholt
ffd3a1b2f2 Fixes issue in sprite constraint 2015-09-02 10:56:44 -07:00
Hans Muller
a69a95df26 Restore PageableList itemsWrap:true
Makes PageableList with itemsWrap:true work again.

Plumbed the itemsWrap parameter through to HomogenousViewport.

Fixes issue #877.
2015-09-02 10:56:19 -07:00
Adam Barth
02ebc4fa67 Remove some unused dart:sky IDLs
This CL deletes a bunch of unused IDL files and removes some dead code in the
engine.
2015-09-02 00:09:43 -07:00
Adam Barth
e72a66ec64 Rev pub package 2015-09-01 20:00:23 -07:00
Viktor Lidholt
92236ccfc1 Fixes sprite label so it doesn't use a fixed max width 2015-09-01 16:36:40 -07:00
Viktor Lidholt
9a21cbc7e6 Adds level labels to demo game 2015-09-01 16:14:53 -07:00
Viktor Lidholt
3f2369dbe9 Initial support for labels in skysprites 2015-09-01 16:14:53 -07:00
Viktor Lidholt
37d0c1a8d8 Adds small explosions to demo game 2015-09-01 15:34:43 -07:00
Viktor Lidholt
6de024f0d1 Speeds up explosions in demo game 2015-09-01 15:34:43 -07:00
Ian Hickson
9dd84d6c8e Merge pull request #978 from Hixie/sync-removal
Still try to sync even if a node has been removed from the tree.
2015-09-01 14:08:23 -07:00
Ian Fischer
9510ea91ed Log a warning when developers are using a dev build of the sky package. 2015-09-01 13:42:00 -07:00
Ian Fischer
e2f78a98e5 Merge pull request #990 from iansf/remove_required_arg
Don't require -p for ios_sim commands
2015-09-01 13:39:51 -07:00
Hixie
aae2426000 Still try to sync even if a node has been removed from the tree.
This should handle a case like a stateful component inside a Container
inside another Container having one of those Containers removed while
still keeping that stateful component around with its state.

The problem of how to handle the Container then being reinserted is a
separate issue not handled by this patch.
2015-09-01 13:32:28 -07:00
Adam Barth
aa5504c7f3 Merge pull request #979 from abarth/render_object_docs
Add dartdocs for RenderObject
2015-09-01 12:25:04 -07:00
Adam Barth
c1bd6af997 Add dartdocs for RenderObject
... and other code in object.dart.
2015-09-01 12:24:27 -07:00
Ian Fischer
f8fbe12bce Don’t require specifying -p in ios_sim commands under normal circumstances. 2015-09-01 11:26:46 -07:00
Ian Fischer
e8dadb3a12 Refactor sky_tool install slightly and fix non-local builds. 2015-09-01 10:37:27 -07:00
Ian Fischer
2b1f00b0b4 Fix missing paren 2015-09-01 10:07:20 -07:00
Ian Fischer
0d7e90d590 Make it possible to download trace files on rooted devices using sky_tool stop_trace 2015-08-31 17:12:09 -07:00
Ian Fischer
99356d10c6 Merge pull request #976 from domokit/iansf-update-readme-install
Update README.md to reflect removal of --install flag.
2015-08-31 16:55:46 -07:00
Ian Fischer
2a831f547b Update README.md to reflect removal of --install flag. 2015-08-31 16:48:16 -07:00
Hans Muller
9d1bb04a71 Merge pull request #974 from HansMuller/dismissable-uses-gestures
Convert Dismissable to use gestures

Convert Dismissable to use the ScrollStart, ScrollUpdate, and ScrollEnd gestures. Support for fling gestures is TBD.

Included a basic unit test that checks that one item can be dismissed with a press-drag-release gesture.

Fixed the scroll gesture recognizer: if the last pointer goes up and candidate recognizers still exist, then reject the gesture.
2015-08-31 16:46:26 -07:00
Hans Muller
7a42fe3482 Convert Dismissable to use gestures
Convert Dismissable to use the ScrollStart, ScrollUpdate, and ScrollEnd gestures. Support for fling gestures is TBD.

Included a basic unit test that checks that one item can be dismissed with a press-drag-release gesture.

Fixed the scroll gesture recognizer: if the last pointer goes up and candidate recognizers still exist, then reject the gesture.
2015-08-31 16:44:25 -07:00
Adam Barth
bd038cfc53 Merge pull request #972 from abarth/parent_data_madness
Positioned 'remembers' things it shouldn't
2015-08-31 16:41:36 -07:00
Adam Barth
64a784141e Positioned 'remembers' things it shouldn't
This patch makes ParentDataNode less general purpose and instead teaches Flex
and Stack how to program the parent data for their children. We used to have
this general system because parent data used to carry CSS styling, but we don't
need it anymore.

Fixes #957
2015-08-31 16:41:14 -07:00
Ian Hickson
17476a68ea Merge pull request #971 from Hixie/address
Remove the silly dialog.
2015-08-31 16:11:46 -07:00
Hixie
820137b7f9 Remove the inner SizeObserver from ScrollableWidgetList.
Adds a HomogeneousViewport class that works like MixedViewport but
handles only children that have all the same height.

Converts ScrollableWidgetList to use that, so that we don't waste a
frame looking at the size of the contents each time we change size.

This allows a number of seemingly pointless double-pumps in the tests
to be removed.

Other changes that were necessary to support the above:

 - RenderBlock now supports minExtent (think 'min-height' in CSS)
 - RenderBlock now supports itemExtent (forces the height of each
   child to be the same, so that the itemExtent passed to the fixed-
   height scrollables are all authoritative instead of a source of
   bugs when they don't match)
 - RenderBlockViewport now supports horizontal scrolling
 - improved the style of the isInfinite assert in box.dart
 - fixed the position of a comment in mixed_viewport.dart
 - added a test
 - made the logic for how many items to show be more precise
2015-08-31 15:57:45 -07:00
Adam Barth
916e4fabe4 Make these constants private
These constants aren't useful outside these files and are cause noise in the
dartdoc.
2015-08-31 15:53:33 -07:00
Hixie
eae466f032 Remove the silly dialog.
Fixes #247.
2015-08-31 14:41:34 -07:00
Ian Fischer
333e611585 Merge pull request #969 from iansf/extract_install
Extract install from StartSky
2015-08-31 14:30:29 -07:00
Ian Fischer
0c089cb323 Extract install into its own sky_tool command. 2015-08-31 14:20:18 -07:00
Hans Muller
805ff3134c Merge pull request #966 from HansMuller/fix-mixed-viewport-example
Update mixed_viewport example to new Key API
2015-08-31 14:11:04 -07:00
Adam Barth
0b690583c9 Basic widgets should validate their parameters with asserts
Also fixes #937.
2015-08-31 13:34:30 -07:00
Adam Barth
fefdb92e5e Merge pull request #961 from abarth/transform_origin
Add an origin parameter to transforms
2015-08-31 13:22:01 -07:00
Adam Barth
ffc6eaa9bd Add an origin parameter to transforms
This parameter makes it easier to do math when you don't want to center your
tranform at (0, 0).
2015-08-31 13:21:26 -07:00
Hans Muller
fbe4bb42a0 Update mixed_viewport example to new Key API 2015-08-31 11:37:25 -07:00
Ian Fischer
58e013c46e Merge pull request #960 from iansf/fix_ios_deploy_crashes
Avoid crashing when an iOS device isn't connected
2015-08-31 10:43:23 -07:00
Ian Fischer
17d89f3dbb Avoid crashing when an iOS device isn’t connected. 2015-08-31 10:41:52 -07:00
Ian Hickson
1e61314ed5 Merge pull request #897 from Hixie/sync-children
Provide a fast path for MultiChildRenderObjectWrapper.syncRenderObject() when the children lists are identical.
2015-08-31 10:36:28 -07:00
Adam Barth
5fb3176951 Merge pull request #953 from abarth/painting_docs
Add dartdoc for the painting code
2015-08-31 09:37:10 -07:00
Adam Barth
e525943d81 Add dartdoc for the painting code 2015-08-31 09:36:35 -07:00
Adam Barth
528ff0f117 onPressed not called when in a Positioned Flex
We were setting the main axis extent to zero because we had a sign error.

Fixes #918
2015-08-31 09:12:40 -07:00
Adam Barth
ff74d9ec19 Unbreak link when deployed 2015-08-30 18:43:17 -07:00
Ian Hickson
bbb29f229f Add gestures/ to README.md prose 2015-08-30 16:30:59 -07:00
Ian Hickson
f291588da5 Add gestures/ to README.md diagram 2015-08-30 16:29:48 -07:00
Adam Barth
35ac1f710e Add dartdoc for base 2015-08-30 13:03:03 -07:00
Adam Barth
984a39f491 Update box_painter.dart 2015-08-30 11:03:00 -07:00