137 Commits

Author SHA1 Message Date
Adam Barth
abd1afd598 Fix iOS build 2016-03-02 15:44:56 -08:00
Adam Barth
95b5d5dfa8 Update uses of Mojo to new interfaces 2016-03-02 14:14:55 -08:00
Chinmay Garde
8b89ad7dce Merge pull request #2435 from chinmaygarde/master
Allow specification of the FLX bundle (containing no Dart snapshot) outside the iOS/Mac application bundle.
2016-02-29 13:17:25 -08:00
Chinmay Garde
f9281a1edf Allow specification of the FLX bundle (containing no Dart snapshot) outside the iOS/Mac application bundle.
Allows launching of apps without having any Xcodebuild step in the simulator.
2016-02-29 13:16:01 -08:00
Matt Perry
34fb968705 Remove unused UpdateService. 2016-02-29 15:11:33 -05:00
Adam Barth
b1eb676d05 Merge pull request #2406 from abarth/rm_service_registry
Remove ServiceRegistry
2016-02-18 16:14:40 -08:00
Adam Barth
8111a77f73 Remove ServiceRegistry
We don't need this anymore now that we have Mozart.
2016-02-18 16:09:58 -08:00
Chinmay Garde
ab73f8c4d6 Make the buildbot generate an archive for the dynamic services SDK 2016-02-18 14:53:47 -08:00
Adam Barth
b7d936fd35 Make iOS keyboard robust to selection of -1
The Dart code uses -1 to signal that there is no current selection. If
we get text input in this state, we need to do something reasonable.
This patch teach us to treat that case as if the selection was zero.

This patch also improves how we convert from NSString to string16 and
makes it so we don't leak keyboard subviews.

Fixes https://github.com/flutter/flutter/issues/1878
2016-02-14 15:15:29 -08:00
Matt Perry
db5c72c81c Remove gcm package from the repository.
I moved it to https://github.com/mpcomplete/flutter_gcm for now.
2016-02-12 17:46:32 -05:00
Jason Simmons
f4542c9152 Use Engine::RunFromBundle and the ZipAssetBundle on all platforms 2016-02-12 11:50:00 -08:00
Chinmay Garde
26998e5349 Merge pull request #2389 from chinmaygarde/master
iOS: Vsync provider can take multiple callbacks
2016-02-11 14:25:46 -08:00
Chinmay Garde
2f57d8de36 iOS: Vsync provider can take multiple callbacks 2016-02-11 14:22:16 -08:00
Jason Simmons
1a748fa3e3 Merge pull request #2387 from jason-simmons/suspend_blank_0210
Allow multiple callbacks in the VSyncProvider
2016-02-11 14:01:37 -08:00
Jason Simmons
626789d555 Allow multiple callbacks in the VSyncProvider
It's possible for multiple calls to AwaitVSync to be pending while reloading
an application.  The Animator may get an AwaitVSync, a Reset, and then another
AwaitVSync before the first vsync completes.

If this happens, invoke both callbacks.  If we close the pipe, then the
Animator will no longer make progress.
2016-02-11 13:56:18 -08:00
Chinmay Garde
b8c6a97d81 Add error logging when a dynamic service fails to load
This happens once per service
2016-02-10 16:03:39 -08:00
Jason Simmons
ae517c2fee Add a way to override the snapshot when running an FLX bundle 2016-02-09 10:08:26 -08:00
Collin Jackson
3de670dcc8 Implement remaining methods of Firebase class on iOS 2016-02-08 18:27:47 -08:00
Chinmay Garde
fcc9e95f3c Add a dynamic services target with a variant for the embedder and dylib each
* The embedder depends on dynamic:embedder
* The dylib depends on dynamic:dylib
* The embedder calls OnLoad and OnUnload callbacks that setup and teardown the dylib environment
* The dylib contains a thin library that services OnLoad, OnUnload and OnInvoke so that vendors dont have to do it themselves (and potentially mess it up)
* The vendor only has to implement the `FlutterServicePerform` method that takes a fully scoped handle
* This patch is a WIP till we get a stable Flutter ABI. The stuff in mojo/public is *NOT* stable
2016-02-08 10:11:09 -08:00
Adam Barth
447f7fc14f Merge pull request #2348 from abarth/view_host
Pass the Mozart ViewHost into Dart
2016-02-04 08:59:33 -08:00
Adam Barth
aec7d422e7 Pass the Mozart ViewHost into Dart
Dart needs access to the ViewHost in order to create child views.
2016-02-03 14:39:45 -08:00
Jason Simmons
1782b8f280 Change services to create temporary files that will be deleted by the ResourceCleaner
If the Sky shell process does not have an orderly shutdown, then temporary
files created by services may never be cleaned up.

The ResourceCleaner task will run at the next startup and clean up any files
that match the prefix used by Chromium's temporary file API.  Services will
now use the same prefix for their files.
2016-02-03 11:50:09 -08:00
Chinmay Garde
9701b8ae7b Fix iOS implementation of SystemChrome after mojom updates 2016-02-02 17:08:54 -08:00
Jason Simmons
7730a0c123 Implementation of platform services for Android 2016-02-02 16:10:22 -08:00
Hixie
00f2b17f66 Make the arrays nullable in the Semantics mojom. 2016-02-02 13:36:15 -08:00
Chinmay Garde
7fe880d89f iOS: Implement service providers for flutter.platform 2016-02-02 11:37:18 -08:00
Adam Barth
bdacb56cdd Improve IME interface
Instead of providing a stream of mutations, we now provide a the client with
the complete state of the editing control to prevent the two from getting out
of sync.

As a side-effect, we can now move the cursor around when editing a text field.
2016-02-01 20:41:48 -08:00
Ian Hickson
69632dda9f Merge pull request #2325 from Hixie/semantics-to-java
Support multiple Semantics listeners
2016-01-30 12:43:29 -08:00
Chinmay Garde
40f3b5e429 Merge pull request #2324 from chinmaygarde/master
Extract system sound and vibration functionality out of activity.mojom
2016-01-29 17:14:14 -08:00
Chinmay Garde
6a099fa716 Extract system sound and vibration functionality out of activity.mojom 2016-01-29 17:13:47 -08:00
Hixie
ea12469ab2 Support multiple Semantics listeners 2016-01-29 17:09:58 -08:00
Chinmay Garde
b6f43b7a54 Merge pull request #2315 from chinmaygarde/master
Initial take on a potential activity.mojom replacement
2016-01-29 16:53:12 -08:00
Chinmay Garde
8ef1e51ca8 Initial take on a potential activity.mojom replacement 2016-01-29 16:52:34 -08:00
Collin Jackson
e49d611b53 Merge pull request #2314 from collinjackson/chokes
fixes #1461 oknet chokes on binary charsets
2016-01-28 16:40:00 -08:00
Collin Jackson
57b1785cd0 fixes #1461 oknet chokes on binary charsets 2016-01-28 16:11:01 -08:00
Adam Barth
411c6bfa4b Port flutter.mojo to Mozart
Everything should work except the keyboard.
2016-01-28 16:04:19 -08:00
Chinmay Garde
0f0f43cdb0 Merge pull request #2311 from chinmaygarde/master
iOS: Fix sound pool stream selection
2016-01-28 10:58:46 -08:00
Collin Jackson
1bcd5917c3 Merge pull request #2309 from collinjackson/optional
Mark Firebase’s previousChildName as optional since it will be null for the first item
2016-01-28 10:43:12 -08:00
Chinmay Garde
45245b3522 iOS: Fix sound pool stream selection 2016-01-27 16:59:30 -08:00
Collin Jackson
bada290904 Mark Firebase’s previousChildName as optional since it will be null for the first item 2016-01-27 16:14:38 -08:00
Chinmay Garde
0d446703bf iOS: Implementation of ::activity::Activity from activity.mojom 2016-01-27 15:01:53 -08:00
Hixie
47808d26a2 semantics.mojom: Add comment about null transforms 2016-01-27 09:26:37 -08:00
Ian Hickson
63bf8ccb1f Merge pull request #2277 from Hixie/semantics
Semantics (Accessibility, Indexability)
2016-01-26 17:44:18 -08:00
Collin Jackson
93b9588643 Android implementation of the remaining ::firebase::Firebase Mojo APIs 2016-01-26 16:30:44 -08:00
Collin Jackson
e462b27994 Support for setting Content-Type of POST requests 2016-01-26 12:26:22 -08:00
Adam Barth
557fa4f6cf Merge pull request #2293 from abarth/raw_keyboard_leak
RawKeyboardService leaks
2016-01-26 09:26:14 -08:00
Adam Barth
772663052c RawKeyboardService leaks
The removeListener function didn't actually remove anything from the
list because Mojo objects don't maintain their identity when you
transfer them through a message pipe. Now we just watch for errors on
the listener's pipe, which means the way you stop listening is just to
close your end of the pipe.
2016-01-25 20:27:58 -08:00
Collin Jackson
bfdcb69626 Firebase support for password authentication 2016-01-25 15:47:19 -08:00
Chinmay Garde
4421177e30 Merge pull request #2286 from chinmaygarde/master
iOS: Drain and pass URLRequest body data to the platform implementation
2016-01-25 12:52:35 -08:00
Chinmay Garde
0f0360e499 iOS: Drain and pass URLRequest body data to the platform implementation 2016-01-25 12:51:29 -08:00