1509 Commits

Author SHA1 Message Date
Kaushik Iska
e20083819a [fuchsia] Push CMX to fars and add product mode support (flutter/engine#10144)
* Capture stderr for ninja command

* br

* [fuchsia] Push CMX to fars and add product mode support.

* fix shit

* fix GN format
2019-07-25 15:09:04 -07:00
Francisco Magdaleno
3d070e1376 Revert "[macos] Revert check on FlutterCodecs and refactor message function] (#10009)" (flutter/engine#10141)
This reverts commit 471657f667d1489274fe7a414a8523e1429e4bd7.
2019-07-25 13:47:29 -07:00
gaaclarke
c3c32a1e2f ios: Fixed the callback for the first frame so that it isn't predicated on having a splash screen. (flutter/engine#9952) 2019-07-25 12:37:38 -07:00
gaaclarke
8d52ae8514 Revert "[fuchsia] Use the patched sdk to generate the flutter jit runner far (#10122)" (flutter/engine#10140)
This reverts commit 2c7cabdff9c346ac28b49044726c551c93132f3d.
2019-07-25 10:52:27 -07:00
Kaushik Iska
2c7cabdff9 [fuchsia] Use the patched sdk to generate the flutter jit runner far (flutter/engine#10122) 2019-07-24 17:10:48 -07:00
gaaclarke
60c57dbb11 Fixed memory leak with engine registrars. (flutter/engine#10068) 2019-07-24 15:43:39 -07:00
Kaushik Iska
7f9170be1f [fuchsia] Use manifest file to better replicate the existing build (flutter/engine#10102)
* Use manifest file to better replicate the existing build

Also fix app/bin error

* Add remaining shit

* patch in the remaining stuff

* Update BUILD.gn
2019-07-24 13:57:46 -07:00
Kaushik Iska
2117168f17 [fuchsia] Add sysroot and clang libs to package (flutter/engine#10082)
* [fuchsia] Add sysroot deps

* bundle in clang stuff too

* fix host_os
2019-07-23 21:08:25 -07:00
Kaushik Iska
602771c7d4 [fuchsia] Add support for libs in packages (flutter/engine#10081) 2019-07-23 19:22:42 -07:00
Kaushik Iska
99a3e1a60f One more luci fix (flutter/engine#10078)
* Missing icu data from the far

* One more place to change the artifact name

* real name
2019-07-23 17:56:49 -07:00
Kaushik Iska
27f1cc9865 Basic structure for flutter_jit_runner far (flutter/engine#10073)
* Basic structure for flutter_jit_runner far

- Added a package_dir gni that copies the dir structure.
- Doesn't support a lot of the existing functionality.
- Added a script to copy paths.

* pick libdart based on flutter mode

* fix licenses
2019-07-23 16:51:50 -07:00
Francisco Magdaleno
471657f667 [macos] Revert check on FlutterCodecs and refactor message function] (flutter/engine#10009)
* [macos] Revert check on FlutterCodecs and refactor message function]

* Remove duplicated code

* Move FlutterPlatformMessage initialization
2019-07-23 15:22:38 -07:00
adazh
6f7e34fbb8 Added a DartExecutor API for querying # of pending channel callbacks (flutter/engine#10021) 2019-07-23 13:11:03 -07:00
Michael Klimushyn
603d401fc2 Add working Robolectric tests (flutter/engine#9954)
`gclient sync` now grabs Robolectric, JUnit, and their transitive
runtime dependencies. They're being stored in a new CIPD package,
`flutter/android/robolectric_bundle`.

`shell/platform/android/BUILD.gn` has a new target for building the
tests, `robolectric_tests`. `testing/run_tests.py` has been extended to
build and run the new target. Runs the android tests under
"build_and_test_android" on CI.

This also adds some very simple sample tests to start with and a README
to the java tests directory.
2019-07-23 09:06:19 -07:00
Justin McCandless
1b87854bf5 Add support for Android's visible password input type (flutter/engine#9999)
For framework PR https://github.com/flutter/flutter/issues/31738
2019-07-23 07:57:39 -07:00
stuartmorgan
1299da0e74 Add a macro for prefixing embedder.h symbols (flutter/engine#9851)
embedder.h is a C API, so has no namespace, and only uses 'Flutter' as a
prefix for most symbol names. This creates potential collisions with
other code; for instance, FlutterEngine is the name of a type in
embedder.h, but also an ObjC class in the iOS Flutter API.

This adds a macro that can be set to prefix symbol names, allowing
clients (notably, the macOS embedding) to adjust the names used by the
embedding API internally without breaking ABI or API compatibility for
the standard engine build.

Currently the macro is only applied to FlutterEngine, since that's the
symbol that is currently at issue, but it can be expanded to other
symbols in the future.
2019-07-23 05:48:48 -07:00
Matt Carroll
342ba41f9c Android Embedding Refactor PR36: Add splash screen support. (flutter/engine#9525) 2019-07-22 14:01:34 -07:00
Jason Simmons
8be5805dff Exit flutter_tester with an error code on an unhandled exception (flutter/engine#9932) 2019-07-22 12:06:34 -07:00
Jason Simmons
b48ddc3d9c Declare a copy of the enable_bitcode flag within the Flutter build scripts for use in Fuchsia builds (flutter/engine#10003)
enable_bitcode is defined in build/toolchain/clang.gni, which exists in the
Flutter buildroot but not in the Fuchsia source tree.
2019-07-22 12:06:16 -07:00
Francisco Magdaleno
4833061af2 [macos] Add reply to binary messenger (flutter/engine#9953)
* Add reply to binary messenger

* Address comments

* Formatting

* Address comments
2019-07-22 11:08:08 -07:00
Matt Carroll
532ed38c87 Added hasRenderedFirstFrame() to old FlutterView for Espresso (#36211). (flutter/engine#9939) 2019-07-19 16:46:02 -07:00
Matt Carroll
4046164120 Removed PlatformViewsController if-statements from TextInputPlugin (#34286). (flutter/engine#9938) 2019-07-19 13:52:45 -07:00
gaaclarke
e7720142ef Removed logic from FlutterAppDelegate into FlutterPluginAppLifeCycleDelegate (flutter/engine#9893)
Removed logic from FlutterAppDelegate into
FlutterPluginAppLifeCycleDelegate.  This is a better place for
add-to-app since it doesn't require them to use our app delegate.
2019-07-19 10:58:39 -07:00
gaaclarke
9bc02314b0 Split out lifecycle protocol (flutter/engine#9922)
Split out lifecycle calls to plugins to their own protocol to clean up
FlutterPlugin and make the API slightly closer to Android.
2019-07-19 10:17:48 -07:00
Chris Yang
bd2335aea6 [platform view] do not make clipping view and interceptor view clipToBounds (flutter/engine#9937) 2019-07-19 09:00:43 -07:00
stuartmorgan
934901b4e8 Don't try to use unset assets_dir setting (flutter/engine#9924)
Debug builds log invalid file errors on launch of anything using the
embedding API due to an unconditional use of assets_dir, even though
only one of assets_dir or assets_path needs to be set (and the embedding
API currently uses the latter). This checks that the FD has been set
before trying to use it to create an asset resolver.

Also eliminates a duplicate code path in embedder.cc, where it was
calling RunConfiguration::InferFromSettings, then running exactly the
same asset manager creation code again locally.
2019-07-18 14:07:13 -07:00
gaaclarke
8ef2e3aa28 Removed unused method. (flutter/engine#9919) 2019-07-18 11:28:41 -07:00
gaaclarke
02ba481921 Made the persistent cache's directory a const pointer. (flutter/engine#9815) 2019-07-18 08:57:50 -07:00
Dan Field
f743db9bf5 Add clang version to Info.plist (flutter/engine#9873) 2019-07-17 12:14:07 -07:00
Mouad Debbar
046005bf1f Add multi-line flag to semantics (flutter/engine#9850) 2019-07-17 09:51:09 -07:00
Francisco Magdaleno
cfbe3d0463 Assign missing headless execution variable (flutter/engine#9855) 2019-07-17 08:46:01 -07:00
gaaclarke
c84f60ea75 Fixed error in generated xml Info.plist. (flutter/engine#9867) 2019-07-16 18:24:53 -07:00
gaaclarke
4a23fbcb30 Started adding the engine hash to frameworks' Info.plist. (flutter/engine#9847)
Started adding the engine hash to Flutter.framework's Info.plist.
2019-07-16 15:54:26 -07:00
Amir Hardon
c87144b653 Preserve the alpha for VD content by setting a transparent background. (flutter/engine#9849)
The previous attempt to do this by setting the theme to
Theme_Translucent_NoTitleBar was reported to offsetting touch events on
specific Xiaomi devices.
2019-07-16 12:45:20 -07:00
Pierre Champion
4d9128b964 SendPlatformMessage allow null message value (flutter/engine#9781) 2019-07-16 11:38:33 -07:00
Chinmay Garde
3d8db4a1f6 Document //flutter/shell/common/rasterizer (flutter/engine#9809) 2019-07-15 17:45:47 -07:00
gaaclarke
fd3dac0f58 Made Picture::toImage happen on the IO thread with no need for an onscreen surface. (flutter/engine#9813)
Made Picture::toImage happen on the IO thread with no need for a surface.
2019-07-15 17:16:20 -07:00
Amir Hardon
a6be960c2f Make the virtual display's window translucent (flutter/engine#9828)
By default alpha is not preserved for the VD's contents.
We make the window translucent as a side effect of doing so is preserving alpha.
There should not be extra performance cost for setting the window to be translucent as there is only a single window within the VD.

Fixes flutter/flutter#33756
2019-07-15 16:51:36 -07:00
Chinmay Garde
915fe6fad7 Document //flutter/shell/common/engine. (flutter/engine#9769) 2019-07-11 17:08:00 -07:00
Jason Simmons
d4894e906d Fall back to a fully qualified path to libapp.so if the library can not be loaded by name (flutter/engine#9762)
libapp.so contains compiled application Dart code.  On most Android systems,
this library can be loaded by calling dlopen("libapp.so"), which will search
Android's default library directories.

On some Android devices this does not work as expected.  As a workaround, this
patch provides a fallback path to libapp.so based on ApplicationInfo.nativeLibraryDir.

Fixes https://github.com/flutter/flutter/issues/35838
2019-07-11 12:39:42 -07:00
liyuqian
907657faaf Add comments to differentiate two cache paths (flutter/engine#9721) 2019-07-11 11:24:43 -07:00
gaaclarke
5b09d678cf Un-deprecated FlutterViewController's binaryMessenger. (flutter/engine#9767)
Un-deprecated FlutterViewController's binaryMessenger.  Leaving it as
a valid convenience method and to help minimize a breaking change.
2019-07-11 10:04:26 -07:00
Michael Klimushyn
15a831d358 Add hooks for InputConnection lock and unlocking (flutter/engine#9727)
With this, plugins can know whether or not their input connection should
be cached. In very rare cases this can be used by plugins to know how to
more properly handle their own input connections, in cases where they're
overriding typical input behavior themselves.
2019-07-11 09:47:35 -07:00
stuartmorgan
28e61558ae FLEViewController/Engine API changes (flutter/engine#9750)
Updates the way FLEViewController and FLEEngine interact,
making their APIs much more closely aligned with the iOS versions
of the classes.

As part of the change, removes the need for an explicit launch
call on FLEViewController. Also adds entrypoint support when
running an engine directly, matching iOS.

Breaking change for macOS runners.

Part of https://github.com/flutter/flutter/issues/31735
2019-07-10 19:54:41 -07:00
Chinmay Garde
f33b8a805a Make all shell unit tests use the OpenGL rasterizer. (flutter/engine#9746)
The software backend was used earlier.
2019-07-10 13:47:56 -07:00
stuartmorgan
d79e57999b Make FLEViewController's view an internal detail (flutter/engine#9741)
Rather than clients needing to create an appropriate view in a XIB and
attach it to an FLEViewController, which is error-prone, have
FLEViewController create its own view programatically. The view is now
an internal detail, so calling setView: on an FLEViewController will no
longer work.

As a result of the view being internal, the public API surface is
simplified.

This is a breaking change for macOS Runners.
2019-07-10 13:45:53 -07:00
gaaclarke
6acae05b3c Synchronize main thread and gpu thread for first render frame (flutter/engine#9506)
Got rid of the black frame by synchronizing the main thread with the
gpu thread to make sure a frame is rendered before presenting the
view.
2019-07-10 13:14:07 -07:00
Chinmay Garde
3d231d854c Use libc++ variant of string view and remove the FML variant. (flutter/engine#9737) 2019-07-10 12:11:39 -07:00
Dan Field
792d6a27f8 Revert "Improve caching limits for Skia (#9503)" (flutter/engine#9740)
This reverts commit d075f5f97f97b339783e7915f92165aedcad5ed6.
2019-07-10 12:09:42 -07:00
Gary Qian
41296831a7 Fix backspace crash on Chinese devices (flutter/engine#9734) 2019-07-10 12:08:03 -07:00