6868 Commits

Author SHA1 Message Date
Chinmay Garde
ba168e97e9 Look for the service dylib in the frameworks directory of the main bundle. (#2680) 2016-05-11 15:49:48 -07:00
Matt Perry
befe39324e Expose a Paragraph.getWordBoundary method to dart. (#2675)
* Expose a Paragraph.getWordBoundary method to dart.

Used by text selection to select a word.
2016-05-11 14:53:51 -04:00
Chinmay Garde
694b492b20 Look inside the main bundle for the service definitions manifest. (#2678)
Earlier, the dynamic service loader was part of the main application
bundle. But now, we package it into Flutter.framework and let the user
control "main". The old path was looking for the manifest in the wrong
spot.
2016-05-11 11:43:46 -07:00
Ian Hickson
2a4e04ffa4 Updating CONTRIBUTING.md to mention latest paths (#2676)
* Updating CONTRIBUTING.md to mention latest paths

* Update CONTRIBUTING.md
2016-05-11 11:23:57 -07:00
Jason Simmons
db50fd94ad Update the flutter_gdb script for the new engine output directory names (#2671) 2016-05-11 11:22:37 -07:00
Chinmay Garde
c6bc8d864a create_ios_sdk.py takes additional arguments that specify the out directories of both the device and simulator builds. (#2673) 2016-05-10 15:36:12 -07:00
Chinmay Garde
3fe246987a Removed unused '--ios-force-armv7' flag. (#2672)
Was only used by the buildbot to test that the armv7 precompiler paths built. The Android AOTC variants check that now.
2016-05-10 14:51:24 -07:00
Jason Simmons
678409b8a1 Revert "Plumb dart timeline events to mojo:tracing. (#2595)" (#2670)
This needs to be updated for the latest Mojo APIs
2016-05-10 12:05:17 -07:00
Przemysław Pietrzkiewicz
ef589f99bc Plumb dart timeline events to mojo:tracing. (#2595)
This patch:

 - makes dart traces (coming from the VM and the timeline API)
   available to mojo:tracing
 - adds --vm-complete-timeline parameter, which makes the Dart VM enable all
   categories of timeline traces from the beginning, allowing to do startup
   tracing

This is based on the equivalent support in dart content handler.

Fixes https://github.com/flutter/flutter/issues/3162.
2016-05-10 11:08:36 -07:00
Jason Simmons
3c9223cd8d Change the "develop" runtime mode back to "debug" and rename the "debug" build configuration to "unoptimized" (#2669) 2016-05-10 10:57:56 -07:00
Chinmay Garde
7b3ca935d5 In case the Dart VM cannot be initialized, log the reason before terminating the process. (#2668) 2016-05-09 17:30:55 -07:00
Jason Simmons
fcbfd1c159 Clean up gn flags for the develop/profile/release runtime modes (#2667) 2016-05-09 14:58:45 -07:00
Chinmay Garde
e72539e6e5 iOS: Wire up NSHTTPURLResponse headers in ns_net. (#2666) 2016-05-09 14:45:07 -07:00
Adam Barth
57c02d4495 Decode images on a background thread (#2665)
We were all set up for this but for some reason we were actually decoding the
images on the main thread.

Fixes #3803
2016-05-09 12:54:52 -07:00
Todd Volkert
77426f65fd Wire up accessibility scrolling (#2664)
* Wire up accessibility scrolling

flutter/flutter#1664
2016-05-09 12:04:38 -07:00
Adam Barth
4c3f297b1e Fix build 2016-05-09 12:04:09 -07:00
Adam Barth
1035e5e60b Roll Mojo to 9a791294e429f9f2ca4f427796a284edb6f6768e (#2663)
* Update to mojo 9a791294e429f9f2ca4f427796a284edb6f6768e

* Update to account for Mojo API changes
2016-05-09 10:56:47 -07:00
Matt Perry
f608c94934 Add mojo service for accessing the system clipboard. (#2659)
* Add mojo service for accessing the system clipboard.

Hooked up for iOS and Android.

BUG=https://github.com/flutter/flutter/issues/1567
2016-05-09 13:26:19 -04:00
Adam Barth
215fa98639 Remove main_ios.mm (#2662)
We no longer provide the main function for Flutter apps on iOS. Instead, we
just provide Flutter.framework, and the end-developer provides main.

Also, remove unused build rules for building Runner.app. We don't build that
target anymore.
2016-05-09 09:53:04 -07:00
Todd Volkert
98f020ff2d Correctly report accessibilityFrame as screen coordinates (#2660)
flutter/flutter#1664
2016-05-06 15:46:48 -07:00
Jason Simmons
6ba3199eef Roll Dart (#2661) 2016-05-06 15:46:05 -07:00
Chinmay Garde
d52d3a4448 Wire up the interpreter on iOS devices. (#2648) 2016-05-06 15:37:59 -07:00
Jason Simmons
c0a5c08cd5 Roll Skia (#2658) 2016-05-06 12:04:57 -07:00
Todd Volkert
6770b4a5d5 Fix copy-paste error from code review (#2657) 2016-05-06 11:31:45 -07:00
Todd Volkert
fdc0b71889 Move node implementation to Objective C (#2652)
* Move node implementation to Objective C

This changes AccessibilityBridge::Node (C++) to be AccessibilityNode (objc)
in order to have the nodes returned directly as ui accessibility elements.
This buys us a few things:

1) We can now return an element tree instead of a flat list, thus negating
   the need to maintain a global rect and global translation
2) We use less memory since we don't need to instantiate both nodes and
   their ensuing accessibility elements
3) accessibility elements can now implement the methods necessary to respond
   to events like user scrolling

https://github.com/flutter/flutter/issues/1664
2016-05-06 11:26:01 -07:00
Adam Barth
7af714532d Make iOS Flutter apps extensible (#2654)
This patch switches us to building Runner.app on the end-developer's machine,
which will eventually let them customize their app.
2016-05-06 11:16:04 -07:00
Adam Barth
8f2bcbfccb Add a script for creating the iOS SDK (#2655)
Hosting this script inside the repo will let us change the contents of the SDK
without having to synchronize a change on the infrastructure and in the repo.
2016-05-06 10:57:11 -07:00
Jason Simmons
5d523cd94a Fixes for Dart/native conversion of some painting objects (#2656) 2016-05-06 10:40:17 -07:00
Adam Barth
c081845efc Remove Dart_GetField from Canvas interface (#2653)
These Dart_GetField calls show up on traces. This patch removes almost all of
them from the Canvas interface. We still have a few in drawAltas and
drawVertices, which will be removed in a later patch.
2016-05-05 19:56:41 -07:00
Adam Barth
1d23f210d2 Add support for app messages to iOS (#2651)
Fixes https://github.com/flutter/flutter/issues/3256
2016-05-05 16:58:27 -07:00
Jason Simmons
86837edd4e Add an android-cpu engine build flag that can select ARM, x86 (32-bit), and x64 targets (#2650)
Remove the use of --simulator to indicate x64 on Android
2016-05-05 14:38:42 -07:00
Jason Simmons
6110ec2d11 Fall back to an RGBA4444 canvas configuration if 8888 is not supported (#2649) 2016-05-05 11:55:45 -07:00
Adam Barth
8559ffe868 Remove GetField calls from compositing upload (#2647)
Now we grab the underlying primative values before exiting the VM.
2016-05-04 17:14:09 -07:00
Jason Simmons
c74c0bfb09 Explicitly close Mojo proxies during destruction of a FlutterView (#2646)
Partial fix for https://github.com/flutter/flutter/issues/2950
2016-05-04 14:35:35 -07:00
Jason Simmons
db5d105e1d Improve cleanup of the FlutterView's Mojo service providers (#2644) 2016-05-04 10:02:30 -07:00
Adam Barth
0e991c74b2 Remove dependency from //sky/services/platform to //sky/services/activity (#2643)
Instead of using a static Activity, we can use the one we get when we construct
the service.
2016-05-03 15:02:36 -07:00
Ian Hickson
d85ead8ec2 Add Path.contains, an API to hit test a Path (#2642) 2016-05-03 13:04:43 -07:00
Adam Barth
29c802278e Move main_ios.mm over to public APIs (#2637)
After this patch, main_ios.mm now consumes Flutter.framework via public APIs.
This patch prepares us to move Flutter on iOS over to consuming
Flutter.framework as a binary artifact.
2016-05-03 11:56:43 -07:00
Yegor
6907cdcffd provide link to instructions for building for iOS
Fixes #https://github.com/flutter/flutter/issues/3689
2016-05-03 07:32:14 -07:00
Jason Simmons
a0fd858c22 Remove the intents for controlling tracing on Android (#2639)
The flutter tool is now using the observatory's HTTP-based interface
2016-05-02 16:00:59 -07:00
Adam Barth
6740388a4a Remove legacy interfaces from activity.mojom (#2638)
These are now offerred by the Flutter platform services (e.g., SystemChrome,
SystemSound, HapticFeedback).
2016-05-02 14:24:40 -07:00
Adam Barth
76d5cf230a Don't spin hot in MessagePumpGLFW (#2636)
When there are no pending timers, we should sit in glfwWaitEvents instead of
continuously calling glfwPollEvents. This reduces CPU utilization
significantly.
2016-05-02 10:37:52 -07:00
Adam Barth
6e3228cf81 Revert "Record layer tree to an SkPicture before rasterization (#2628)"
This reverts commit 5bc5c7b5246d62af70780ec7ba0203ac3f318226.

This commit appears to have caused
https://github.com/flutter/flutter/issues/3658
2016-05-01 14:23:13 -07:00
Adam Barth
716cbd24ff Remove FNL build configuration (#2635)
These build definitions no longer work with the current version of FNL. Once
FNL is ready, we'll add new build definitions that work for it again.
2016-04-29 12:15:15 -07:00
Matt Perry
bec2c43aeb Merge pull request #2634 from mpcomplete/backspace
Fix handling of backspace in text input.
2016-04-29 14:02:52 -04:00
Adam Barth
a25959370a Remove the old Paragraph API (#2633)
All the clients of migrated to the new ParagraphConstraints API.
2016-04-29 09:49:34 -07:00
Adam Barth
28fbcc3a38 Use LayoutUnit to normalize infinity properly (#2632)
In the new ParagraphConstraints code path, we weren't converting through
LayoutUnit, so we weren't getting the right overflow behavior for extremely
large double values. This resulted in test/rendering/block_test.dart failing.
2016-04-28 16:11:16 -07:00
Adam Barth
c0bb843311 Remove ScriptSnapshotter from precompilation SDK (#2631)
We don't need to use an explict version of the script snapshotter that is
packaged with the iOS SDK. Instead, we can rely on the flutter command having a
working snapshotter.
2016-04-28 13:30:38 -07:00
Adam Barth
d980ee5d6f Clarify which source files are part of Flutter.framework (#2630)
All the headers for Flutter.framework are now in framework/Headers and all the
source files for Flutter.framework are now in framework/Source. Previously it
was unclear that FlutterAppDelegate and main_ios.mm weren't part of
Flutter.framework. (They still build as part of the framework, but that's
something I'll fix in a later patch.)
2016-04-28 12:33:19 -07:00
Adam Barth
6829d7da5e Fix AOT build for iOS (#2629) 2016-04-28 11:23:17 -07:00