Martin Kustermann
5c6ebf7994
Enable flutter engine to also work with .*so files on android ( #4298 )
...
* Enable flutter engine to also work with .*so files on android
We would like to be able to use native tools (e.g. simpleperf, gdb) with
precompiled flutter apps. The native tools work much better with *.so
files instead of the custom formats the Dart VM uses by default.
This CL adds support for being able to load the flutter app from an *.so
file on Android.
* Add sanity check to ensure we have either shared library or instruction snapshot (but not both)
2017-11-21 13:14:50 +01:00
Zachary Anderson
242ce44af5
[Android] Cleanup in FlutterActivityDelegate ( #4357 )
2017-11-13 14:13:04 -08:00
Zachary Anderson
7804e8588a
View destroy listener ( #4347 )
...
[Android] Allow persisting a FlutterNativeView across activities.
2017-11-13 13:56:48 -08:00
Jason Simmons
bb55d65085
Delete the native view when destroying the FlutterView ( #4356 )
...
Fixes https://github.com/flutter/flutter/issues/12996
2017-11-13 13:16:48 -08:00
Mikkel Nygaard Ravn
bc3ac074d2
Make EventChannel survive hot restart on Android ( #4350 )
2017-11-13 07:47:36 +01:00
Zachary Anderson
f5bdf9b0fc
[Android] Pulls the native platform view out of FlutterView ( #4338 )
2017-11-09 12:10:00 -08:00
Ian Hickson
bc30d7bed2
Support multiple values in SystemChrome.setPreferredOrientations ( #4320 )
2017-11-03 10:28:31 -07:00
Chinmay Garde
9a960f82f5
Add texture support (eg video, camera) ( #4159 )
2017-11-02 10:57:29 +01:00
Michael Goderbauer
88cf09ffe6
Identify text fields as such to a11y on Android ( #4299 )
...
* Identify text fields as such to a11y on Android
* Add focus flag
2017-11-01 12:59:03 -07:00
Michael Goderbauer
b3d345e323
Android SeekBars announce their value ( #4289 )
...
* Android SeekBars announce their value
* style
2017-10-31 10:03:30 -07:00
Alexander Aprelev
ec19da1c80
Initialize service isolate from kernel file, rather than from embedded sources. ( #4263 )
...
* Read core platform kernel file during Dart initialization.
Currently service isolate is initialized from the source code parsed by VM.
This CL changes it so service isolate created during Dart initialization
is created from the kernel platform.dill file if it is present in the application
bundle. Then this platform kernel file is kept in dart_init module and reused
for application sciprt isolates.
* Reformat and merge
* Use accessor method
* Avoid passing running_from_kernel param. Add TODO for cleanup. Rename param.
2017-10-24 19:37:24 -07:00
Michael Goderbauer
91071f817b
Support for accessibility label and hint ( #4264 )
...
* Support for accessibility label and hint
* review comments
2017-10-23 16:46:01 -07:00
amirh
3d013382e6
Add a semantic isButton flag ( #4254 )
...
https://github.com/flutter/flutter/issues/11992
2017-10-20 13:15:20 -07:00
Zachary Anderson
57f361dc6a
Pass option to reuse an existing runtime controller ( #4253 )
2017-10-20 10:17:21 -07:00
Michael Goderbauer
b9ad2393cf
Set AccessibilityFocus ( #4249 )
...
This ensures that accessibility hints are played properly.
2017-10-19 15:09:37 -07:00
5u3it
31585e0def
Native keyboard behavior update for multiline input ( #4234 )
...
Use sentence capitalization for non-obscuretext fields of TextInputType.text
and TextInputType.multiline on iOS and Android.
2017-10-19 13:56:35 -07:00
Yegor
23f5ccd25c
Add alwaysUse24HourFormat and textScaleFactor ( #4202 )
...
* systems/settings channel split
* merge textScaleFactor and alwaysUse24HourFormat into flutter/settings channel
* add debugOverrideAlwaysUse24HourFormat
* implement textScaleFactor on iOS
* address comments
* remove debugOverrideAlwaysUse24HourFormat
* clang-format
2017-10-18 16:13:43 -07:00
Zachary Anderson
d3ebce9cf6
Allow a non-main entrypoint ( #4238 )
2017-10-18 14:19:28 -07:00
amirh
64fb5d0126
make AccessibilityBridge#mOwner final ( #4235 )
2017-10-18 13:25:07 -07:00
amirh
879c1fb8e1
Support accessibility announcements in the Android AccessibilityBridge ( #4232 )
2017-10-18 11:10:14 -07:00
Zachary Anderson
faaf321b01
Make Engine::RunBundle* reuse an existing RuntimeController ( #4229 )
2017-10-17 13:44:09 -07:00
Sarah Zakarias
7fb41d1b6a
Read snapshot directly from data dir instead of FLX ( #4214 )
2017-10-17 15:06:03 +02:00
Michael Goderbauer
0448bf9bd7
Proper horizontal a11y scrolling on Android ( #4163 )
2017-10-02 15:46:38 -07:00
gspencergoog
b2a7f4bf8f
Add support for system text scale factor. ( #4124 )
...
Adds support for system text scale factor, including hooks for Android system settings changes. iOS hooks will be added in another PR.
2017-09-29 13:19:06 -07:00
Michael Goderbauer
45b11f742d
Send scroll progress with a11y event TYPE_VIEW_SCROLLED ( #4144 )
2017-09-27 11:18:50 -07:00
gspencergoog
90ba98e741
Fixing accidental paste. ( #4145 )
2017-09-26 13:44:39 -07:00
gspencergoog
faabc10178
Support correct keyboards for multi-line text editing. ( #4115 )
...
This addresses part of #8028 , implementing the Engine-side support for it.
2017-09-26 12:53:19 -07:00
Jason Simmons
77ec0b5f5b
Replace a View.getDisplay call that is not supported on API level 16 ( #4139 )
...
Fixes https://github.com/flutter/flutter/issues/12235
2017-09-25 11:25:47 -07:00
Carlo Bernaschina
57a1445a45
Add --trace-skia parameter to flutter run ( #4100 )
...
Skia tracing is extremely useful for internal debug, but reduces the
amount of space available in the Dart Timeline buffers.
Disable skia tracing by default and expose them via the --trace-skia
flag.
2017-09-13 10:18:45 -07:00
Michael Goderbauer
afcc1d1e1f
a11y improvements for iOS ( #4079 )
...
* Various iOS a11y fixes
* undo
* review comments
* review comments
2017-09-11 14:44:17 -07:00
Jason Simmons
a44146f13b
Log instead of asserting when sending a reply message to a defunct engine ( #4084 )
...
Fixes https://github.com/flutter/flutter/issues/12037
2017-09-11 14:05:14 -07:00
Michael Goderbauer
81e3f8b86f
refactor accessibility channel to use StandardMessageCodec ( #4073 )
2017-09-07 15:24:47 -07:00
Michael Goderbauer
ccf68cdcb6
Tell Android which SemanticsNodes are focusable ( #4067 )
...
A node is considered focusable if it contains information that is interesing to the user. A node that doesn't add any semantic information of its own should not be focusable. It's expected that such a node has children, who have smeantics information and are therefore focusable.
Fixes https://github.com/flutter/flutter/issues/11179
2017-09-06 16:56:23 -07:00
Michael Goderbauer
ceb6d05c2f
Adapt semantics event handling to framework changes ( #4066 )
2017-09-05 16:31:24 -07:00
Michael Goderbauer
d60d630ec6
Wire up basic a11y channel for a11y events ( #4054 )
2017-09-01 16:40:04 -07:00
Ryan Macnak
ffbefaf477
Initial implementation of idle notification. ( #4012 )
...
- Assumes only the Dart VM is interested in idle notification.
- Gives the VM the time remaining in each frame.
- Gives the VM 100ms if there is no pending frame.
Issue flutter/flutter#9594
2017-09-01 11:11:25 -07:00
Ian Hickson
60bce44c9f
Implement i18n features in the a11y API. ( #4029 )
2017-08-28 16:12:39 -07:00
Michael Goderbauer
32447c72fc
Traverse children from top left to bottom right for a11y ( #4017 )
...
* order
* comment fix
* review comments
2017-08-28 12:02:07 -07:00
Michael Goderbauer
8cfa97609c
Only expose available semantic scroll actions ( #4010 )
...
* Only expose available scroll actions
* formatting
* more formatting
2017-08-25 16:12:50 -07:00
xster
51775c77a9
Add animation to Android too ( #3981 )
2017-08-23 12:57:06 -07:00
Jason Simmons
e260e35dec
Revert to a Jellybean compatible variant of getDrawable ( #3997 )
2017-08-21 17:25:31 -07:00
Jason Simmons
0223e293f2
Improve checks for calls into native code made after the platform view has been detached ( #3926 )
2017-08-17 10:24:12 -07:00
Jason Simmons
841cd66712
Remove use of a deprecated getDrawable API ( #3979 )
2017-08-15 11:54:04 -07:00
xster
08eb72341f
Add an explicit user configurable check for whether to keep showing the splash screen. ( #3976 )
2017-08-15 11:01:12 -07:00
xster
f187a5c219
Create platform API for first frame callback. Use for defer hiding splash screens on Android and iOS ( #3956 )
...
* Add back launch screen view until first frame on iOS
* improvements
* Move callback plumbing from ios surfaces to the gpu rasterizer. Didn’t wire java JNI yet.
* Android JNI
* Fix ios reference count and let android engine manage a view on top with launch screen
* Hook up Android activity and view
* review notes
* review notes
* Move thread switching upstream. Use weak references for callbacks.
* Some clean up
2017-08-14 15:44:52 -07:00
Jason Simmons
f02a30b405
Support sendKeyEvent for arrow keys ( #3940 )
...
Fixes https://github.com/flutter/flutter/issues/11352
2017-07-31 16:52:34 -07:00
Jason Simmons
ca19ab0a99
Check for an empty selection in deleteSurroundingText ( #3938 )
...
Fixes https://github.com/flutter/flutter/issues/11437
2017-07-31 16:18:27 -07:00
Jason Simmons
232f4636e5
Do not send messages if the platform view has been detached ( #3927 )
2017-07-26 20:04:31 -07:00
Todd Volkert
488584f8b7
Add PluginRegistry.Registrar#view() ( #3900 )
...
Sometimes, plugin instances need access to the `FlutterView`.
They can currently cast the `messenger()`, but that's fragile.
This adds API support for getting the view from the registry.
2017-07-18 19:16:15 -07:00
Michael Goderbauer
1a4bffc4ba
Wire up SemanticsAction Increase and Decrease on Android ( #3876 )
2017-07-17 16:48:50 -07:00