1914 Commits

Author SHA1 Message Date
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
Todd Volkert
99d48aab30 Bypass the raster cache when screenshotting (flutter/engine#5227)
Fixes https://github.com/flutter/flutter/issues/17448
2018-05-10 12:32:17 -07:00
Ryan Macnak
4f023940cd [fuchsia] Add dependencies needed to build the test shell. (flutter/engine#5216) 2018-05-09 13:43:27 -07:00
Chinmay Garde
47d04deb99 Read/apply settings that apply process wide before creating any shell components. (flutter/engine#5203) 2018-05-08 11:56:31 -07:00
Chinmay Garde
1add7581f0 Allow explicit specification of the isolate snapshot. (flutter/engine#5193)
The mobile shells all use the same isolate snapshot. This is also the snapshot used by the service isolate. This works towards a world where the isolate snapshot is no longer a member variable of the DartVM instance. Instead, all snapshots must be specified in the run configuration. For now, the new `Shell::Create` overload will only be used by Fuchsia till I refactor `dart_vm.cc`.

There are no API updates to the mobile shells.
2018-05-07 17:28:31 -07:00
Jonah Williams
e36f92ec65 Re-land Enables system chrome customization on Android O/N and greater (flutter/engine#5171) 2018-05-07 15:45:59 -07:00
Jason Simmons
dff05ac16e Use the rasterizer's compositor context and texture registry to capture screenshots (flutter/engine#5180)
Fixes https://github.com/flutter/flutter/issues/16412
2018-05-04 16:07:10 -07:00
Jonah Williams
92e3517650 add onStart hook which places flutter in an inactive state (flutter/engine#5177) 2018-05-04 14:46:57 -07:00
Jonah Williams
c2349b2245 Revert "Enables system chrome customization on Android O and greater" (flutter/engine#5167)
* Revert "Roll dart sdk to e6d7d67f4b35556805dd083fed15bf3ed41f7e33. (#5165)"

This reverts commit 75b94b4ea5307c723c6003b9d7a786ac3f22bce1.

* Revert "Enables system chrome customization on Android M/O and greater (#5112)"

This reverts commit f4136be0d552a5b7f1f8bfafc3c5da4a70dda190.
2018-05-03 15:38:25 -07:00
Jonah Williams
f4136be0d5 Enables system chrome customization on Android M/O and greater (flutter/engine#5112) 2018-05-03 13:10:44 -07:00
Jonah Williams
8bac5d84be Add Android accessibility bridge support for "longPress" and "tap" semantic events 2018-05-02 17:24:29 -07:00
xster
fa659500dd Increase the GPU thread priority and add error logging (flutter/engine#5117) 2018-04-30 17:18:33 -07:00
Jason Simmons
d47e663efa Re-land "Hold a global reference to the AssetManager Java object backing the APKAssetProvider" (flutter/engine#5132)
Fixes https://github.com/flutter/flutter/issues/16222
2018-04-30 12:29:40 -07:00
Jason Simmons
8c9ef95bea Detach from JNI during shutdown of the UI thread on Android (flutter/engine#5120)
The APKAssetProvider will hold a reference to its Java peer
(see c2b081e229)

After dropping this reference, the UI thread must detach from JNI before exiting.
2018-04-30 10:44:01 -07:00
Yegor
2b58565cee Revert "Hold a global reference to the AssetManager Java object backing the APKAssetProvider (#5078)" (flutter/engine#5116)
This reverts commit c2b081e229eb3c1103d0d06f0c9d7057166ece1d.

It causes engine crashes in some Android Espresso tests.
2018-04-27 13:47:26 -07:00
Jonah Williams
08d8e86ff1 Add tooltip method to Android AccessibilityBridge (flutter/engine#5103) 2018-04-26 15:03:47 -07:00
Ben Konyi
e603014960 Initial plugin support for background downloads + content fetching (flutter/engine#5082)
* Added handleEventsForBackgroundURLSession and
performFetchWithCompletionHandler handlers in FlutterAppDelegate to
allow for plugins to perform background downloads and fetch small
amounts of data opportunistically.
2018-04-25 13:35:01 -07:00
Ryan Macnak
b8b7e8e829 [fuchsia] Changes for running Dart 2 on flutter_runner. (flutter/engine#5080)
- Remove assumption that we're in Dart 2 mode only if there's a platform kernel.
 - Load core snapshots from the package instead of linking them in.
2018-04-25 13:31:13 -07:00
Jason Simmons
c2b081e229 Hold a global reference to the AssetManager Java object backing the APKAssetProvider (flutter/engine#5078)
Fixes https://github.com/flutter/flutter/issues/16222
2018-04-24 15:50:52 -07:00
Chinmay Garde
7293d4cef9 Fixup Fuchsia content handler post shell refactor. (flutter/engine#5072) 2018-04-23 20:16:01 -07:00
Yegor
82678dc356 replace nextNodeId/previousNodeId with hitTestPosition (flutter/engine#5066) 2018-04-23 16:16:17 -07:00
Yegor
5d94c8dece ios: remove geometric order; it will be supplied by framework (flutter/engine#4937) 2018-04-23 13:17:25 -07:00
Jason Simmons
4a5f9d7c9f Fix syntax error in AccessibilityBridge (flutter/engine#5059) 2018-04-20 13:54:27 -07:00
Jason Simmons
1fab880e72 Prevent multiple calls to FlutterMain.startInitialization (flutter/engine#5058)
See https://github.com/flutter/flutter/issues/16748
and https://github.com/flutter/flutter/issues/16456
2018-04-20 11:38:10 -07:00
Michael Goderbauer
3034fd831c Add SemanticsFlag.isHidden (flutter/engine#5052) 2018-04-20 10:37:02 -07:00
Jason Simmons
a9d706ed38 Throw an error or return null if FlutterView.getBitmap fails (flutter/engine#5051)
getBitmap had been doing FXL_CHECK assertions to check memory allocation
failures and other errors.  getBitmap will now return null to the caller
instead.
(The VM may throw OutOfMemoryError or other exceptions if JNI APIs fail)

Fixes https://github.com/flutter/flutter/issues/16750
2018-04-19 16:12:22 -07:00
Jason Simmons
e2c22f864f Use the raster cache when rendering screenshots as bitmaps (flutter/engine#5050)
This matches the behavior from before the shell refactoring.

Fixes https://github.com/flutter/flutter/issues/16754
2018-04-19 13:32:00 -07:00
Chinmay Garde
4aa708019e Look for an assets path specification in the Info.plist. (flutter/engine#5049) 2018-04-19 12:01:46 -07:00
Jonah Williams
656482af41 AccessibilityBridge support for edge triggered semantics (iOS + Android) (flutter/engine#4901)
AccessibilityBridge support for edge triggered semantics (iOS + Android)
2018-04-19 11:14:47 -07:00
Chinmay Garde
08ba5c14e6 Fix more Linux unittest targets. (flutter/engine#5045) 2018-04-18 18:15:50 -07:00
Chinmay Garde
8b6922845b Update the embedder GN target to use a source set instead of a complete static library. (flutter/engine#5040)
Creating a dylib from a “complete” static library does not propagate symbol visisbility definitions. I also got rid of the static library and used a source set instead because we don’t need to do the extra work for other targets.
2018-04-18 12:50:22 -07:00