Kirill Nikolaev
68a42e3f47
Add nullability annotations to MethodChannel/MethodCall. ( #6393 )
...
This works towards resolving https://github.com/flutter/flutter/issues/19888 .
2018-10-02 15:02:16 -07:00
Jonah Williams
a785b25f4a
do not count Hidden nodes at the beginning of the scrollable ( #6381 )
2018-10-01 11:15:22 -07:00
Jonah Williams
77c30caddf
make sure we dont set live regionin api level < 18 ( #6375 )
2018-09-27 23:24:54 -07:00
Kirill Nikolaev
27f77cbef5
Document that all MethodChannel callbacks must be called on the main thread. ( #6245 )
...
This further addresses https://github.com/flutter/flutter/issues/14568 .
2018-09-27 15:48:29 -07:00
Chinmay Garde
f2a3df97e2
Wire up the Skia persistent GPU related artifacts cache. ( #6278 )
...
Also teaches FML to create files and directories.
2018-09-26 14:54:09 -07:00
Gary Qian
8247ce26ba
Implement restore functions on Android and iOS ( #6322 )
...
This will not be active on the Framework until https://github.com/flutter/flutter/pull/22221 lands.
2018-09-25 13:46:38 -07:00
Dan Field
8743bb82db
Format for #6324 ( #6326 )
...
Format code from previous patch
2018-09-24 18:42:04 -04:00
Dan Field
89516aad94
Engine::Run returns enum: success, failure, or isolate already running ( #6324 )
...
* If isolate is already running, return true
* Use shell::Engine::RunStatus as result of Engine::Run
2018-09-24 18:01:22 -04:00
Gary Qian
74625aed32
Keyboard padding detection heuristic to distringuish when to include bottom inset. ( #6288 )
...
Use a screen height ratio to determine if the keyboard is onscreen or not. This is used because Android does not provide a deterministic API to detect this.
We remove the padding when the keyboard is closed and the inset is due to the hidden navigation bar, otherwise, we apply the full keyboard inset.
2018-09-24 11:38:13 -07:00
Amir Hardon
02901b78c6
Decouple PlatformViewsController from FlutterView. ( #6303 )
...
Decouple PlatformViewsController from FlutterView.
Instead of getting a FlutterView instance, depend on the specific interfaces required by
PlatformViewsController (BinaryMessenger, TextureRegistry, and Context).
This allows using PlatformViewsControlling in the flutter/embedding
code.
2018-09-21 15:40:17 -07:00
Gary Qian
f3d51b0cfb
Fix Top, Left, and Right padding for fullscreen android apps. ( #6282 )
...
* Fix Top, Left, and Right padding for fullscreen apps.
* Fix minor nits and comments, simple logic inversion
2018-09-19 18:09:10 -07:00
Ryan Macnak
60bb5da33c
Reapply "Some cleanups enabled by removing support for Dart 1" ( #6250 )
...
Following fixes in dart-lang/sdk@91cbb57cd5
2018-09-14 09:36:13 -07:00
Jonah Williams
272be27f70
update live region to trigger on label change, remove manual trigger ( #6248 )
2018-09-14 09:10:59 -07:00
Jonah Williams
abd918eb61
Add scrollIndex and scrollChildren to semantics, add Android implementation ( #6239 )
2018-09-13 10:28:27 -07:00
Michael Goderbauer
6f459e2f10
Revert "Reapply "Some cleanups enabled by removing support for Dart 1" ( #6216 )" ( #6232 )
...
This reverts commit e3133e0e3f7cbbd57fa930c11f3640561d691eba.
2018-09-12 12:07:20 +02:00
Ryan Macnak
e3133e0e3f
Reapply "Some cleanups enabled by removing support for Dart 1." ( #6216 )
...
- Add missing Dart 2 flags to gen_snapshot invocation.
- Disable brittle service test.
2018-09-10 17:03:54 -07:00
Ryan Macnak
bf96dbed38
Revert "Some cleanups enabled by removing support for Dart. ( #5621 )" ( #6205 )
...
This reverts commit 4c2448d1591a5fab033de3885ad34d1fdf5474f1.
2018-09-07 17:39:51 -07:00
Ryan Macnak
4c2448d159
Some cleanups enabled by removing support for Dart. ( #5621 )
...
- Switch core snapshot to Dart 2 and remove support for loading platform.dill.
- Remove support for loading script snapshots.
- Remove support for loading source.
- Remove settings and fix names to reflect the above.
- Remove support for loading the service isolate from source.
2018-09-07 15:44:46 -07:00
Michael Klimushyn
108e0a64ef
Add transparency helpers to FlutterView.java ( #6172 )
...
Fixes #9627
2018-09-05 16:47:02 -07:00
Jason Simmons
e6d9b34a8c
Remove the old location of the ICU data asset ( #6170 )
...
The tools are now placing icudtl.dat in the flutter_shared directory.
It is no longer necessary to check for this asset at its previous path.
2018-09-05 12:22:27 -07:00
Simon Lightfoot
9f0ad8b794
Fixes negative end selection offset. ( #6171 )
2018-09-05 12:12:21 -07:00
Michael Klimushyn
0981731fd7
Enable transparent FlutterViews ( #6163 )
...
- Changes rasterizer to clear the canvas with `SkColor_TRANSPARENT`
- Removes the unused `backgroundColor` param from `FlutterView.java`
2018-09-05 10:44:02 -07:00
Jason Simmons
6af60d716a
Remove obsolete discovery mechanism from FlutterView ( #6157 )
2018-09-05 10:01:33 -07:00
Kirill Nikolaev
b0b8daa7b2
Unregister onFrameAvailable callbacks when a TextureEntry is released. ( #6079 )
...
Otherwise the callbacks may be called after FlutterNativeView is destroyed and is null.
Also defensively check for whether the texture is already released in the callback because the callback may be called from another thread by a stale reference (see the comment).
This closes https://github.com/flutter/flutter/issues/20951 .
2018-09-04 06:31:01 -07:00
jslavitz
1c76824186
entering a character with a selection deletes the selection ( #6113 )
2018-08-30 10:29:04 -07:00
Amir Hardon
ad4e87d07d
Convert synthesized Android motion events to long and not to int. ( #6103 )
2018-08-28 12:12:47 -07:00
Jonah Williams
c867305c30
Unconditionally set resource id to empty string ( #6096 )
2018-08-27 10:54:07 -07:00
amirh
0914926014
Allow passing extra creation parameters for embedded Android views. ( #6081 )
...
This allows plugins to pass extra parameters from the Dart side to the
platform view constructor.
2018-08-24 11:15:14 -07:00
amirh
2ff1626335
Support LTR/RTL layout directions for embedded Android views. ( #6057 )
2018-08-20 16:22:38 -07:00
amirh
c06432da47
Delay the removal of the onDrawListener. ( #6052 )
...
In Android O removing the ViewTreeObserver.onDrawListener from the
listener call crashes. Instead we post a runnable to remove it.
2018-08-20 12:13:26 -07:00
Jonah Williams
c23690f0d7
use setContentDescription for controls on Android ( #6050 )
2018-08-20 09:30:13 -07:00
amirh
be0c3143c5
Add views added to the WindowManager into the presentation view tree. ( #6043 )
...
The default WindowManager implementation in Android's Presentation is
delegating addView/removeView/updateViewLayout calls to the global
WindowManager.
This can result in a crash when an embedded view is trying to e.g show a
PopupWindow.
This change adds a custom WindowManager that overrides
addView (and removeView/updateViewLayout) and adds the view to the
presentation's view tree.
Note that views might keep a reference to the window manager which
might be an issue when we move a view from one virtual display to
another (due to a resize). For this reason when re-sizing we are not
creating a new window manager for the new presentation, but updating the
window manager's references to be relevant for the new presentation and
re-use it.
2018-08-17 17:01:42 -07:00
Martin Kustermann
81baff97c2
Switch all embedders to use platform_strong.dill instead of platform.dill (the flutter_tester binary already does this) ( #6024 )
2018-08-15 17:45:11 +02:00
Chinmay Garde
82c79f85e1
Fix Android Vulkan builds to account for resource context management API updates. ( #6020 )
2018-08-14 22:20:05 -07:00
Jason Simmons
ea07f27997
Detach the resource context before shutting down the IO thread ( #6009 )
2018-08-14 13:15:42 -07:00
Stanislav Baranov
74373462e4
Fix codepush breakage caused by #5954 . ( #5996 )
2018-08-10 13:23:51 -07:00
amirh
a389dc595f
Cast MotionEvent timestamps to Number. ( #5994 )
...
Dart might choose to marshall the timestamps to a Java Long or Integer.
Casting directly to int was crashing when the timestamp wass a Long.
2018-08-10 12:46:49 -07:00
Keerti Parthasarathy
78f8bcace7
Annotate deprecated methods with @Deprecated ( #5976 )
2018-08-08 13:02:41 -07:00
amirh
14af0348bc
Complete the AndroidView resize call only after a new frame is ready. ( #5968 )
...
This allows the framework to know that a frame with the resized view is
ready and to behave deterministically to workaround the jank issue
described in flutter/flutter/19572
2018-08-07 18:56:34 -07:00
amirh
7e0bb3bbe8
Allow freezing a texture. ( #5938 )
...
This is needed to avoid jank when resizing an embedded Android view.
See
https://github.com/flutter/flutter/issues/19572#issuecomment-410400724
2018-08-07 14:43:19 -07:00
Ben Konyi
3cbb5e2067
Persist DartCallbackCache contents across launches ( #5947 )
...
* Updated DartCallbackCache to write callback cache to disk which is
restored on engine startup
* Ensure cache isn't moved off disk in iOS
2018-08-07 14:37:19 -07:00
Todd Volkert
7f083e54fe
Don't implicitly fall through in switch statement ( #5964 )
2018-08-07 13:18:26 -07:00
Jonah Williams
c7ce6dd69c
Apply translation to accessibility tree when in landscape ( #5950 )
2018-08-07 13:09:18 -07:00
Ben Konyi
aef94b73d1
Reland "Updated background execution implementation for Android" ( #5954 )
...
* Reland "Updated background execution implementation for Android" w/ JNI fixes for merge breakages
This reverts commit 5442c0a7da385ac5ebfe7ec66126ee593d84e2a2.
2018-08-07 12:42:22 -07:00
Alexander Markov
5442c0a7da
Revert "Updated background execution implementation for Android" ( #5949 )
...
This reverts commit bc885f319b2fdf471cf1efdf733a2f6708bd4665.
2018-08-06 14:10:23 -07:00
Jonah Williams
a5215ce500
Add hasImplicitScrolling SemanticFlag and support in Android bridge ( #5941 )
2018-08-06 13:57:00 -07:00
Ben Konyi
bc885f319b
Updated background execution implementation for Android
2018-08-06 12:27:57 -07:00
amirh
ffbafc852d
Flush all embedded Android views on hot restart. ( #5929 )
...
* Flush all embedded Android view on hot restart.
Adds an OnEngineRestarted method to PlatformView, this is currently only
implemented for Android where we need to use it for embedded views.
* review comments followup
* rename to OnPreEngineRestart, call before Clone
2018-08-03 08:54:12 -07:00
amirh
3b66f20d96
Don't drop MotionEvents with unknown tool type. ( #5931 )
...
Instead, send them with the new unknown PointerDeviceKind.
We hit this when running `adb shell input tap` in tests which sends events with
an unknown tool type.
This also fills in a missing conversion for TOOL_TYPE_ERASER.
2018-08-02 16:05:55 -07:00
Michael Goderbauer
a76054f4b6
Switch to minimal ICU data config for flutter ( #5922 )
2018-08-01 17:24:07 -07:00