694 Commits

Author SHA1 Message Date
Stanislav Baranov
6d140f4e43 Fix compile error introduce in #5473. (flutter/engine#5488)
Fix compile error introduced in #5473.
2018-06-07 15:36:35 -07:00
Stanislav Baranov
5afc3daf35 Support running bundles from zip file. (flutter/engine#5473)
Support running bundles from zip file.
2018-06-07 15:09:23 -07:00
Sigurd Meldgaard
916d9eb5fc App life cycle delegate (flutter/engine#5302)
* Move the handling of delegating AppDelegate callback out of FlutterAppDelegate.

Also moves the plugin registry to FlutterViewController. So each view-controller will handle its
own plugins.

This is intended to simplify including one or more Flutter views in an existing iOS app and giving
more precise control of plugin registration.

Fixes: https://github.com/flutter/flutter/issues/16539

* formatting

* Update license golden file

* Fixed type error

* FREEZE.unindexed

* Fix Header types

* Revert "FREEZE.unindexed"

This reverts commit bebb70056c9bcb90b4321bdc2873896623ed6faa.
2018-06-06 10:49:40 +02:00
Zachary Anderson
e95110f16f Adds dynamic, interpreter configs to tools/gn (flutter/engine#5446)
Adds --dynamic and --interpreter flags to
tools/gn. These flags result in engines with
properties as follows:

--dynamic:
- JIT targeting native code on Android and
  DBC on iOS

--interpreter
- Target DBC even if running on Android.

For example:

gn --android --dynamic --interpreter --runtime-mode release

Will generate an engine:
- Without Dart asserts
- Without Observatory
- With JIT compililation to DBC

into out/android_dynamic_release_dbc
2018-06-05 14:52:52 -07:00
Stanislav Baranov
5c89db5409 Remove unused argument. (flutter/engine#5471) 2018-06-05 13:11:18 -07:00
Mikkel Nygaard Ravn
dcbfb0277c Update FlutterPluginRegistrxxx docs for iOS (flutter/engine#5415) 2018-06-05 08:19:07 +02:00
Chinmay Garde
f2875584e3 Fix Dart project configuration for headless Dart runners. (flutter/engine#5461) 2018-06-04 15:01:58 -07:00
Chinmay Garde
23fd79d790 Parse --verbose-logging flag from intent and pass to the engine as args. (flutter/engine#5447) 2018-06-01 17:34:45 -07:00
Mehmet Fidanboylu
4d4a42b63c Fix lint errors to prepare for building Android files in Google (flutter/engine#5440) 2018-06-01 10:16:50 -07:00
Chris Bracken
0af21267a3 Eliminate arm64 restriction in iOS framework plist (flutter/engine#5435)
Eliminates the declaration that only arm64 is supported in
Flutter.framework's Info.plist. This causes Xcode's app thinning tools
to remove Flutter.framework in thinned archives for armv7 devices.
2018-05-31 18:51:32 -07:00
Greg Spencer
5a4558f9bf Synchronizes analysis_options.yaml files, and turns on Function typedef lint. (flutter/engine#5419)
Addresses flutter/flutter#18028 for the engine repo, and synchronizes the analysis_options.yaml files between the engine and the flutter/flutter repo.
2018-05-30 16:06:05 -07:00
Chinmay Garde
5b5db4f2fc Allow embedders to specify a custom advisory URI and entrypoint. (flutter/engine#5408)
The Fuchsia embedder wants to specify the application name in the field for the advisory URI. This allows embedders to specify whatever they want.
2018-05-29 15:10:12 -07:00
Brandon Parrish
85faf7e029 Correctly added application callback for dynamic links (flutter/engine#5385)
* Correctly added application callback for dynamic links

* Misspelling
2018-05-29 13:56:12 -07:00
liyuqian
eb125ba023 Fix a typo in the comment (flutter/engine#5401) 2018-05-28 18:51:00 -07:00
Chinmay Garde
32206cd8f3 Fix build issues for the embedder on Windows. (flutter/engine#5386) 2018-05-25 15:20:36 -07:00
Chinmay Garde
aa608f192b Create a shell with no GPU configurations unless explicitly specified by the platform. (flutter/engine#5383) 2018-05-25 14:31:01 -07:00
Chinmay Garde
fde250e4b1 Use common GrGLDefines instead of guessing platform specific headers. (flutter/engine#5381) 2018-05-25 12:59:49 -07:00
Chinmay Garde
1436a4ed78 Copy embedder header to the out directory. (flutter/engine#5379)
This allows the stable header to be referenced from a known location. Also reduces the visibility of the framework target so that it is automatically built on the mac.
2018-05-25 12:09:36 -07:00
Brandon Parrish
2a96319ea7 Revert "Added application callback" (flutter/engine#5377)
* Revert "Added application callback (#5369)"

This reverts commit c126c9ecdf6e4fb9fef9831d23882d89dde9b5b1.
2018-05-25 11:29:11 -07:00
Brandon Parrish
c126c9ecdf Added application callback (flutter/engine#5369)
* Added application callback

* Formatting
2018-05-25 09:55:41 -07:00
Chinmay Garde
899fbac6d5 Explicitly package vm and isolate snapshots on desktop and embedder targets. (flutter/engine#5368)
These snapshots used to be included (from the runtime target) in the executable if AOT mode was disabled. The mobile shells now include this snapshot in the kernel snapshot generated on the host. However the target that run on the host still need this. The tester target was already patched but the desktop embedder targets were overlooked. The unit tests passed on the embedder target because the unit tester exectuable was including the snapshot in addition to the dylib. Now the dylib itself depends on the snapshot directly.
2018-05-24 16:05:39 -07:00
Simon Lightfoot
1987911c7d Add support for physical keyboards on Android (flutter/engine#5324)
* Fixes flutter/flutter#7943
* Fixes flutter/flutter#9347
* Fixes flutter/flutter#11177
2018-05-24 15:21:33 -07:00
Ryan Macnak
e94cb4f2f9 [fuchsia] Plumbing for sharing between AOT snapshots. (flutter/engine#5351) 2018-05-24 13:24:14 -07:00
Ryan Macnak
8e2bc7b70e Reapply "Don't link the core snapshot in the Android engine." (flutter/engine#5353)
Add back the core snapshot to runtime_unittests and embedder_unittests.
2018-05-23 17:09:51 -07:00
Ryan Macnak
49c1ba1007 Revert "Don't link the core snapshot in the Android engine. (#5348)" (flutter/engine#5352)
This reverts commit d40b0dbcd2c28fbd4eadc91943f3c2c9ee0d7df5.
2018-05-23 16:11:57 -07:00
Michael Goderbauer
3337784f29 Remove assert for unsupported SemanticsEvents (flutter/engine#5349)
Not all platforms are expected to handle all SemanticsEvents. Therefore, it is ok to just drop unsupported events on the floor.
2018-05-23 16:05:15 -07:00
Ryan Macnak
d40b0dbcd2 Don't link the core snapshot in the Android engine. (flutter/engine#5348)
Allows one to use a different core snapshot without a custom engine build by just packaging a different one in the APK.
2018-05-23 15:56:28 -07:00
Martin Kustermann
83f32f0961 Restore functionality to run from .so file on Android (flutter/engine#5278)
Flutter AOT builds can be done on Android using .so files (instead of
separate instruction/data snapshots) using the `--build-shared-library`
flag.

Running from .so files stopped working after the engine refactoring in
82c5c8feda, which this CL restores.

Issue https://github.com/flutter/flutter/issues/17236
2018-05-23 10:11:44 +02:00
Yegor
7df1242691 split children into two ordered lists: traversal and hit test (flutter/engine#5091)
* split `children` into two ordered lists: traversal and hit test

* address comments

* reduce node object byte size

* link to DebugSemanticsDumpOrder
2018-05-21 17:44:23 -07:00
Brian Osman
6fd73be906 Set fPreferExternalImagesOverES3 option in Skia (flutter/engine#5331)
This causes Skia to fall back to the ES2 shading language when the GL
driver doesn't clearly communicate that it supports the ES3 external
image extension. Doing so ensures that video playback (which relies on
external images) works on many more devices.
2018-05-21 14:41:56 -04:00
Michael Goderbauer
52e89069cb Re-add ACTION_LONG_CLICK for Android a11y (flutter/engine#5330) 2018-05-21 11:29:50 -07:00
Chinmay Garde
1718f9b935 Break the FXL from flutter/assets. (flutter/engine#5316) 2018-05-18 17:04:36 -07:00
Chinmay Garde
00d7bf3b5b Remove support for reading FLX archives from engine. (flutter/engine#5305)
The embedders have moved on already. This also removes a //garnet dependency on zlib wrappers.
2018-05-18 11:56:37 -07:00
Alexander Aprelev
bc4d335137 Revert "Delegate AppDelegate life-cycle callbacks to plugins via separate object (#5173)" (flutter/engine#5294)
This reverts commit f8d59eeabcf96b19cc8ffd5b430448df093f0e65 as it broke
mac engine build bot.
2018-05-17 14:11:12 -07:00
Sigurd Meldgaard
f8d59eeabc Delegate AppDelegate life-cycle callbacks to plugins via separate object (flutter/engine#5173)
* Move the handling of delegating AppDelegate callback out of FlutterAppDelegate.

Also moves the plugin registry to FlutterViewController. So each view-controller will handle its
own plugins.

This is intended to simplify including one or more Flutter views in an existing iOS app and giving
more precise control of plugin registration.

Fixes: https://github.com/flutter/flutter/issues/16539

* formatting

* Update license golden file
2018-05-17 13:13:22 +02:00
Michael Goderbauer
cfbbc59034 Only send a11y events if a11y is turned on (flutter/engine#5281) 2018-05-16 13:12:56 -07:00
Ryan Macnak
aab4242b2c [fuchsia] Teach engine how to set up an isolate from a list of kernel files. (flutter/engine#5210) 2018-05-16 10:09:53 -07:00
Jason Simmons
8e68e89f66 Drain any pending work on the IO thread before shutting down the platform view (flutter/engine#5272)
iOS does not allow usage of OpenGL ES APIs when the app has been moved to the
background.  With this change, the shell will wait until pending IO thread tasks
complete and the Skia unref queue is drained before proceeding with shutdown.

See https://github.com/flutter/flutter/issues/17511
2018-05-15 17:40:25 -07:00
Ryan Macnak
9ee60830b1 Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (flutter/engine#5269)
Update engine for removal of Dart_ReadKernelBinary and refactored build targets.
2018-05-15 16:13:21 -07:00
Chinmay Garde
83bfe0136e Mark the linux group testonly (flutter/engine#5268) 2018-05-15 13:49:42 -07:00
Chinmay Garde
3b1ec0202b Build the flutter tester on Linux in the default group. (flutter/engine#5267) 2018-05-15 13:39:14 -07:00
Ryan Macnak
f49044eebd Revert "Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (#5259)" (flutter/engine#5266)
This reverts commit e2a590e926c80ba039fc70a336ea6cd341c27f12.
2018-05-15 13:26:51 -07:00
Ryan Macnak
e2a590e926 Roll Dart to a5c11d7d0329432ca37e35bb249b20f60aa0aa31. (flutter/engine#5259)
Update engine for removal of Dart_ReadKernelBinary and refactored build targets.
2018-05-15 12:57:01 -07:00
Chinmay Garde
8fc8c8b670 Create an empty group that the Fuchsia bots use to determine the root_out_dir. (flutter/engine#5265)
The Fuchsia bots seem to reference this target to figure out the root_out_directory https://fuchsia.googlesource.com/build/+/master/dart/dart_test.gni#67. Note that the presence of the flutter_tester binary location itself is not depended on. Instead, the target is used to infer the directory containing the flutter_tester after a build.

Patching the //build repository in Fuchsia would mean making the tree red till a //topaz patch lands. To avoid doing this, we add back the missing reference.
2018-05-15 12:50:10 -07:00
Jason Simmons
4f15413841 Support a model where the application creates a FlutterNativeView that is never destroyed (flutter/engine#5256)
This allows applications to start a Flutter engine instance during app startup
and keep it running throughout the app process' lifetime.

FlutterActivity subclasses can override createFlutterNativeView to provide a
preinitialized FlutterNativeView instance and override retainFlutterNativeView
to signal that the FlutterNativeView should be kept alive when the activity
is destroyed.
2018-05-15 12:05:54 -07:00
Chinmay Garde
baf5293906 Create a session presentation backed Vsync waiter on Fuchsia. (flutter/engine#5255) 2018-05-14 16:51:19 -07:00
Chinmay Garde
f89c3f3ed1 Terminate the engine immediately if there are isolate launch errors. (flutter/engine#5244) 2018-05-11 18:32:35 -07:00
Jonah Williams
984b70e6ad swap brightness definition on iOS to match android (flutter/engine#5239) 2018-05-11 14:01:29 -07:00
Jason Simmons
6431f174d4 Detach from JNI before exiting the GPU thread. (flutter/engine#5231)
The GPU thread calls into Java via JNI in order to update external textures.

Fixes https://github.com/flutter/flutter/issues/17329
2018-05-11 11:42:19 -07:00
Jason Simmons
67381c0c35 Remove Blink code (flutter/engine#5218)
Fixes https://github.com/flutter/flutter/issues/12212
2018-05-10 15:57:29 -07:00