1110 Commits

Author SHA1 Message Date
Gary Qian
8d4b7f3a68
Add split AOT loading unit failure/error code path (#22857) 2020-12-08 22:58:01 -08:00
Jason Simmons
bf6dc49c14
Move the WindowInsetsAnimation.Callback implementation to an inner class to avoid Android class loader warnings (#22916) 2020-12-08 12:38:02 -08:00
Chris Yang
5db07805d4
Enable clipRRect for android platform view hybrid composition (#21817) 2020-12-08 09:13:02 -08:00
ftsui
a26e80c931
Allow the root layout to be overriden. (#22887)
a
2020-12-07 14:15:45 -08:00
xster
6ab050b861
Handle null platform plugin delegate for v1 embedding (#22853) 2020-12-03 16:38:03 -08:00
mikerreed
6ae2594b97
opt into new Skia APIs (#22845) 2020-12-03 15:28:02 -08:00
Chris Bracken
14a6fd97ca
Fix NPE when platform plugin delegate is null (#22852)
Adds a null check before dereferencing in
PlatformPlugin.popSystemNavigator. platformPluginDelegate is allowed to
be null, as it is in the PlatformPlugin(Activity, PlatformChannel)
constructor.
2020-12-03 15:22:34 -08:00
zljj0818
48befc59d4
More rename from GPU thread to raster thread (#22819) 2020-12-03 15:03:02 -08:00
Greg Spencer
78b567f7d5
Reland: "Fix race condition in key event handling on Android (#22658)" (#22834) 2020-12-03 08:53:02 -08:00
Gary Qian
fcbfa9f527
Split AOT Engine Runtime (#22624) 2020-12-02 13:28:01 -08:00
Jason Simmons
1358fda357
Generate Maven metadata files for engine artifacts (#22685) 2020-12-02 12:43:01 -08:00
Greg Spencer
6c8342f76a
Revert "Fix race condition in key event handling on Android (#22658)" (#22823)
This reverts commit 40fa345 (#22658) because it breaks some Google tests. Will investigate and re-land.
2020-12-02 12:03:48 -08:00
Greg Spencer
40fa345c02
Fix race condition in key event handling on Android (#22658)
This fixes a problem in Android key event handling where, because I was only using a single bool to indicate that we were re-dispatching, there was a race condition when multiple keys were pending (sent to the framework, awaiting responses).

This fixes that by switching to a mechanism that uses the event itself to tell if it was redispatched.

In doing this, I realized that because key events can come from either the dispatchEvent call, or through the InputConnectionAdaptor, I needed to handle both routes properly so that the events would all be handled, and all go through the same mechanism on the framework side.
2020-12-01 09:42:38 -08:00
Gary Qian
a4ce848dfb
Add FlutterPlayStoreSplitApplication for simpler opt in to Split AOT (#22752) 2020-11-30 19:27:44 -08:00
xster
a35e3fe4a3
Let FlutterFragment not pop the whole activity by default when more fragments are in the activity (#22692) 2020-11-30 12:43:03 -08:00
Jason Simmons
1c2a6bd0a7
Fix the unchecked conversion warning for searchPaths in PlayStoreDynamicFeatureManager (#22654)
Also use the diamond operator throughout this class.
2020-11-30 12:23:09 -08:00
Jason Simmons
26c4ba074d
Make AndroidContext::IsValid virtual (#22665)
Fixes https://github.com/flutter/flutter/issues/70938
2020-11-21 07:51:39 -08:00
Gary Qian
c0b08e8e06
Fix java warnings for unchecked conversions in PlayStoreDynamicFeatureManager (#22628) 2020-11-20 13:37:26 -08:00
Greg Spencer
b4d4e30c0a
Fix double delete on backspace on Android (#22626) 2020-11-20 10:43:02 -08:00
Gary Qian
53fc019aab
Split AOT Android Embedder and shell (#22179) 2020-11-19 17:22:26 -08:00
Ari Weiland
a0da844845
Update the tag for FlutterEngineConnectionRegistry to be 23 characters. (#22610) 2020-11-19 12:06:56 -08:00
Emmanuel Garcia
f7383c4350
Replace support libraries for AndroidX (#22598) 2020-11-19 10:08:02 -08:00
Gary Qian
139fc64129
Rename padding->viewPadding to match framework naming conventions (#22599) 2020-11-19 09:50:51 -08:00
gaaclarke
1c3bc02649
started providing the GPU sync switch to external view embedders (#22302) 2020-11-17 18:43:01 -08:00
Jason Simmons
635df89760
Make the AndroidContext superclass destructor virtual (#22555)
Also remove an obsolete external_view_embedder reference from
AndroidSurfaceFactoryImpl.

Fixes https://github.com/flutter/flutter/issues/70621
2020-11-16 17:46:52 -06:00
Hamdi Kahloun
0ce1137b73
[Android] Add systemNavigationBarDividerColor (#22538) 2020-11-16 10:48:02 -08:00
Hamdi Kahloun
fae92ed574 Revert "Update PlatformPluginTest.java & PlatformPlugin.java"
This reverts commit 85bfc4c5de0c4fa10b5bad6d51213cdbebb7db24.
2020-11-16 16:53:30 +01:00
Hamdi Kahloun
85bfc4c5de Update PlatformPluginTest.java & PlatformPlugin.java 2020-11-16 16:28:03 +01:00
Ari Weiland
ccbc2e6cf1
Fix some serious lifecycle bugs with Android embedding code (#22203) 2020-11-13 11:58:02 -08:00
Kaushik Iska
fcb64c988c
[android] Platform view creates external view embedder (#22360) 2020-11-13 05:52:41 -08:00
Kaushik Iska
1ff237fdca
Reland "remove surface dependance on external view embedder (#22468)" (#22470) 2020-11-12 15:37:12 -08:00
Dan Field
d07368169e
Limit heap growth on Android (#20473)
Limit heap growth to half of totalMem by default, with the option to set it higher or lower in the AndroidManifest
2020-11-12 14:53:54 -08:00
LongCatIsLooong
778eb844d4
[Android text input] Reland #21534 (#22435) 2020-11-12 11:34:01 -08:00
Emmanuel Garcia
091b6cc5b4
Fix talkback in hybrid composition while using FlutterFragmentActivity (#22429) 2020-11-12 10:30:29 -08:00
Kaushik Iska
021ff04336
Reverts 2 commits that remove surface dependance on external view embedder (#22468)
* Revert "Remove GetExternalViewEmbedder from surface (#22272)"

This reverts commit 5419f70f173db1c9f2d5db4c289560e68ce9b77b.

* Revert "Rasterizer is initialized with an external view embedder (#22405)"

This reverts commit f95df42e6e3d80f17c2024e9956768be9416717f.
2020-11-12 08:41:11 -08:00
LongCatIsLooong
23b6310c52
Revert "[Android Text Input] Make the editing state listenable and allow batch edits (#21534)" (#22434) 2020-11-11 18:24:02 -08:00
chunhtai
d97a81c889
reland support uri launch in android (#22363)
* Revert "Revert "support uri intent launcher in android (#21275)" (#22298)"

This reverts commit f61cbc05f01ffb5dbda6a9c20eb0feda524774ab.

* reland support uri launch for android

* refactor

* update

* fix test

* addressing comments

* addressing comments

* revert throw error
2020-11-11 14:51:04 -08:00
Kaushik Iska
5419f70f17
Remove GetExternalViewEmbedder from surface (#22272)
This decouples surfaces from view embedders.
2020-11-11 13:45:24 -08:00
LongCatIsLooong
81f219c59c
[Android Text Input] Make the editing state listenable and allow batch edits (#21534) 2020-11-10 19:19:03 -08:00
Kaushik Iska
caf678d30f
Move common graphics utils to //flutter/common/graphics (#22320) 2020-11-10 12:34:02 -08:00
xster
d642a939c3
move deprecation from the PluginRegistry outer interface to inner, v1-specific fields (#22345) 2020-11-09 13:57:06 -08:00
Greg Spencer
13a624ac31
Use dispatchKeyEvent, and handle keys sent to InputConnection.sendKeyEvent on Android (#22340)
This (mostly) re-lands #21163, which was reverted in #22321

This switches from using onKeyDown to using dispatchKeyEvent on Android so that keys can be intercepted handled by the framework and not continue to be dispatched to other controls.

It also now intercepts key events sent to InputConnection.sendKeyEvent, as some IMEs do (e.g. the Hacker's Keyboard), and sends them to Flutter.

This fixes the problem where (for example) pressing TAB on a hardware keyboard sends the tab to both the text field and to the focus traversal system.

Note that we still can't intercept all keystrokes given to a soft keyboard, only those which the soft keyboard decides to send to InputConnection.sendKeyEvent, and system keys (like the back button) are only received if the IME doesn't eat them.
2020-11-06 12:45:47 -08:00
Kaushik Iska
6e95e005f1
Platform views have CreateExternalViewEmbedder (#22214) 2020-11-06 05:30:48 -08:00
Greg Spencer
5d481fb9c1
Revert "Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#22304)" (#22321)
This reverts commit 7a8057bd728772d5b7ff2451301d6c095d6bda1b because it breaks back button functionality.
2020-11-05 09:02:25 -08:00
Greg Spencer
7a8057bd72
Reland: Use dispatchKeyEventPreIme, and handle keys sent to InputConnection.sendKeyEvent on Android (#22304)
This re-lands #21163, which was reverted in #22004

Now that flutter/flutter#67359 has landed, this change will no longer cause spaces (and other shortcuts) to be ignored in text fields if there is no action associated with the intent, even if there is a shortcut key mapping to an intent.

It also no longer causes web test failures (as far as I can tell without submitting it: the same tests don't fail locally).

Here's the original PR description:

This switches from using dispatchKeyEvent to using dispatchKeyEventPreIme so that keys can be intercepted before they reach the IME and be handled by the framework.

It also now intercepts key events sent to InputConnection.sendKeyEvent, as some IMEs do (e.g. the Hacker's Keyboard), and sends the to Flutter before sending them to the IME (which it now only does if they are not handled by the framework).

This fixes the problem where pressing TAB on a hardware keyboard sends the tab to both the text field and to the focus traversal system.

Note that we still can't intercept all keystrokes given to a soft keyboard, only those which the soft keyboard decides to send to InputConnection.sendKeyEvent.
2020-11-04 15:54:21 -08:00
chunhtai
f61cbc05f0
Revert "support uri intent launcher in android (#21275)" (#22298) 2020-11-04 15:04:02 -08:00
chunhtai
9b4bb20ac9
makes android semanticsnode to ignore hittest if it is not focusable (#22205) 2020-11-02 09:53:01 -08:00
Lazy Llama
7d6180c301
Fix viewInset.bottom and viewPadding.bottom… (#21730) 2020-10-29 17:28:01 -07:00
Jason Simmons
5677d3dea5
Reformat some files that were not auto-formatted (#21940) 2020-10-23 18:57:03 -07:00
chunhtai
742dfbefad
support uri intent launcher in android (#21275)
* support uri intent launcher in android

* fix comment
2020-10-22 15:54:30 -07:00