446 Commits

Author SHA1 Message Date
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
1f0c959189
Align iOS event channel semantics to Android counterpart (#4353) 2017-11-13 15:34:29 +01:00
Mikkel Nygaard Ravn
bc3ac074d2
Make EventChannel survive hot restart on Android (#4350) 2017-11-13 07:47:36 +01:00
Jason Simmons
fb6f3e0734
Log stack traces from exceptions thrown by calls from native into Java (#4346) 2017-11-09 13:04:12 -08:00
Zachary Anderson
f5bdf9b0fc
[Android] Pulls the native platform view out of FlutterView (#4338) 2017-11-09 12:10:00 -08:00
Jason Simmons
a9319a100a
Allow rendering of frames in a paused animator during a change to screen dimensions (#4333)
Fixes https://github.com/flutter/flutter/issues/12886
2017-11-09 10:04:51 -08:00
Chris Bracken
bc2acf7bdd
Revert "Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)" (#4340)
With the update to HEAD of the Fuchsia buildtools repo, the new clang
toolchain picked up caused link-time breakage in android x86_64
libFlutter.so builds.

Sample log:
https://build.chromium.org/p/client.flutter/builders/Linux%20Engine/builds/1974/steps/build%20android_debug_x64/logs/stdio

Sample failure:
FAILED: libflutter.so libflutter.so.TOC lib.stripped/libflutter.so
../../third_party/android_tools/ndk/toolchains/x86_64-4.9/prebuilt/linux-x86_64/lib/gcc/x86_64-linux-android/4.9.x/../../../../x86_64-linux-android/bin/ld.gold: error: obj/flutter/shell/platform/android/libflutter/android_context_gl.o: unsupported reloc 42 against global symbol std::__ndk1::num_put<char, std::__ndk1::ostreambuf_iterator<char, std::__ndk1::char_traits<char> > >::id

This reverts commit 8ad42f0dae3cb1267c2b9ab99db80e4696ddbc3d.
2017-11-08 16:48:00 -08:00
Chris Bracken
8ad42f0dae
Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5 (#4331)
* Roll Fuchsia buildtools to 85907c59e97527d79bbfdfd849d8e85c24959cc5

This also updates Flutter buildroot to a6e52dbb776c45cc8c57d7143b8eb8b2e762fdfb
which disables -Wtautological-constant-compare temporarily until
https://reviews.llvm.org/D39462 lands in clang. This is in line with
Fuchsia's compiler options.

* Apply clang-format diffs

No logical changes. This applies clang-format from the latest Fuchsia
buildtools to the engine codebase.
2017-11-08 11:18:17 -08:00
Chris Bracken
dd6585bb9a
Respond to safe area inset changes (#4330)
On iOS 11 and above, update viewport padding and notify the framework
when changes to safe area insets occur.
2017-11-07 18:26:59 -08:00
Chris Bracken
e059cc0258
Temporaribly disable bottom safe area padding on iOS (#4322)
There are two different sets of view insets that applications may want
to track in order to avoid unwanted interaction with system UI:

1. OS UI that effectively shrinks the Flutter view from a UX point of
   view: e.g., when the keyboard opens, it occludes the bottom of the
   screen and the view should be adjusted such that the bottom, for the
   purposes of scrolling is just above the keyboard.
2. OS UI that is overlaid over the application, but into which the
   application should draw. e.g., the Home indicator on the iPhone X
   typically appears near the bottom of the screen, overlaid over app
   content. Content should be rendered within this 'safe area' but apps
   should avoid requiring user interaction there. For example, list
   views may want to include some small amount of additional padding to
   ensure the last list item can scroll above this area.

Since Flutter does not currently distinguish between these two cases,
this patch disables the bottom safe area inset until API is added to
support these separately.
2017-11-03 14:20:46 -07:00
Ian Hickson
bc30d7bed2
Support multiple values in SystemChrome.setPreferredOrientations (#4320) 2017-11-03 10:28:31 -07:00
Chris Bracken
3021e8f6c3
Correct behaviour for rangeForCharacterAtIndex (#4319)
Previously it always fell through to a zero-length character range at
the specified position.
2017-11-02 15:16:06 -07:00
xster
8d8203ccb6
Make the text selection code more defensive (#4291)
* Make the text selection code more defensive

* format

* Move validation to a method

* Fix math

* rename
2017-11-02 03:36:52 -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
Zachary Anderson
6c73503923
[ios] Adds an API for running Dart code without a PlatformViewIOS (#4294) 2017-11-01 12:16:51 -07:00
P.Y. Laligand
64f445779e
Refer to Flutter's base via the build argument. (#4305)
This fixes the Fuchsia build.
2017-10-31 17:28:35 -07:00
Chris Bracken
ddd51597d0
Use safe area padding on hide keyboard on iOS (#4304)
On hide keyboard, reset the bottom padding to the safe area inset on
devices running iOS 11 or higher.
2017-10-31 17:17:38 -07:00
Chinmay Garde
19e690e84b
Add fml::WeakPtr and update users in Shell. (#4296) 2017-10-31 16:55:36 -07:00
Chinmay Garde
ac16530074
Ensure that public framework headers can be cleanly imported from outside the engine root. (#4303) 2017-10-31 16:25:02 -07:00
Chris Bracken
277bfe66f0
Support iPhone X safe area insets (#4302)
This change exposes the view safe area insets (introduced in iOS 11) to
the framework via MediaQuery.of(context).padding. Safe area insets are
the view insets (padding) inside of which content can be relied on to
display without truncation/clipping, as would occur with e.g. the iPhone
X sensor notch.

As this API was added in iOS 11, we place it behind a runtime guard
checking OS level.

Until the runtime support for @avialable lands in the next Fuchsia
buildtools rev, ignore -Wunguarded-availability-new around the safe area
insets check and use an FML runtime check instead.
2017-10-31 14:30:07 -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
Chinmay Garde
f781f928d1
Test that the embedder can be launched and shut down correctly. (#4281) 2017-10-30 14:15:32 -07:00
Chinmay Garde
fe92a5120c
Fix iOS build to account for Shell rasterizer registration updates. (#4295) 2017-10-30 13:54:41 -07:00
Chinmay Garde
eabcf3aaa9
Avoid registering both the platform view and the rasterizer in the shell. (#4293)
Instead, the rasterizer can be accessed via the platform view.
2017-10-30 13:28:39 -07:00
Chinmay Garde
ede57ad1e7
Allow embedders to specify custom ICU data paths and command line args. (#4290) 2017-10-27 17:31:13 -07:00
Jason Simmons
963a29b096
Remove the diagnostic server (includes Dart roll) (#4287) 2017-10-27 11:53:00 -07:00
Alexander Aprelev
3951c4a976 Fix regression - configure asset bundle (#4285)
* Fix regression - configure asset bundle

* Fix formatting
2017-10-26 14:54:03 -07:00
Jason Simmons
62ac189e27 Add an SkPicture screenshot handler to the service protocol (#4284)
This will replace the one in the diagnostic server
2017-10-26 14:35:26 -07:00
Michael Goderbauer
4a9e6782a7 Announce the correct new value after increase/decrease has been performed on iOS (#4282) 2017-10-25 16:02:43 -07:00
Michael Goderbauer
6665645a0f Only post UIAccessibilityLayoutChangedNotification if layout changed (#4279)
* Only post UIAccessibilityLayoutChangedNotification if layout actually changed

* ++

* review comment
2017-10-25 14:07:41 -07:00
Chinmay Garde
144dea37cd Add a unittest stub for the embedder. (#4276) 2017-10-25 13:09:59 -07:00
Michael Goderbauer
65e4deba15 Revert "Move channel and codec related files to common (#4262)" (#4277)
This reverts commit a48b5f6d25c7371d05d6d8290e385b83d58f0b72.
2017-10-25 13:01:24 -07:00
P.Y. Laligand
7f676451ae Fix build file typo. (#4275) 2017-10-25 10:54:03 -07:00
krisgiesing
a48b5f6d25 Move channel and codec related files to common (#4262)
Refactoring related to use of the embedder APIs on macOS
host builds.
2017-10-24 20:36:18 -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
Chinmay Garde
052a257974 Setup GN rules to package embedder dylib as a Mac framework where supported. (#4270) 2017-10-24 12:50:13 -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
Zachary Anderson
e312b62784 Pass missing parameter. (#4260) 2017-10-23 07:47:37 -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
amirh
6bf9f7594a Revert "Move channel and codec related files to common" (#4256)
* Revert "Pass option to reuse an existing runtime controller (#4253)"

This reverts commit 57f361dc6abcd8441c444882c5e8bb99519532f3.

* Revert "Document the Porter-Duff operators. (#4250)"

This reverts commit b15fa9c64e1028187ec9592289919d77a6843802.

* Revert "Move channel and codec related files to common (#4225)"

This reverts commit 674a3f5869d3ae0e7ea3583a2d0942e184817903.
2017-10-20 11:44:56 -07:00
Zachary Anderson
57f361dc6a Pass option to reuse an existing runtime controller (#4253) 2017-10-20 10:17:21 -07:00
krisgiesing
674a3f5869 Move channel and codec related files to common (#4225)
* Move channel and codec related files to common

This is in preparation for implementing channel and plugin support
for macOS desktop builds.
2017-10-20 09:57:14 -07:00
Ian Hickson
1e21ac3fb7 Documentation improvements - RTL and others (#4248) 2017-10-19 17:30:30 -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
P.Y. Laligand
6fcb45991d Move //dart to //third_party/dart. (#4245) 2017-10-19 01:20:38 -07:00
amirh
5c9e072060 Support accessibility announcements in the iOS accessibility_bridge (#4244) 2017-10-18 16:37:52 -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