720 Commits

Author SHA1 Message Date
Jonah Williams
d5fce84be8
revert change to app delegate that wont build on earlier xcodes (#5702) 2018-07-09 15:22:25 -07:00
Jonah Williams
d217a95126
Remove cullRect calculation on TransformLayers with a perspective transform. (#5693) 2018-07-09 12:52:10 -07:00
Jonah Williams
5724faf86e
ensure that bridge is not destroyed when semantics is still enabled (#5672) 2018-07-03 22:25:40 -07:00
Jason Simmons
d085f1df2c
Do not make an extra submit callback during SurfaceFrame destruction if the frame was already submitted (#5669) 2018-07-03 17:17:57 -07:00
amirh
51785d244d
Remove unused Java imports (#5663) 2018-07-03 09:21:03 -07:00
matthew-carroll
061e899b55
Support all keyboard actions. (#11344) (#5620)
* Support all keyboard actions. (#11344)
2018-07-02 06:58:01 +00:00
Jonah Williams
ce06bbac58
ensure a11y state is communicated back to flutter (#5631) 2018-06-28 13:30:51 -07:00
Jason Simmons
fbb3436eaa
Remove some unused code from the Android host (#5619)
These functions were made obsolete by the engine refactoring
(6baff4c821)
2018-06-27 11:06:15 -07:00
Jason Simmons
2c158b6390
Check for calls to FlutterMain.ensureInitializationComplete before startInitialization (#5614) 2018-06-25 16:32:38 -07:00
Chinmay Garde
923663afb4
Remove remaining uses of Skia private header includes. (#5570)
Part of fixing https://bugs.chromium.org/p/skia/issues/detail?id=7741
2018-06-25 16:15:12 -07:00
Sigurd Meldgaard
3528b4851d
Postpone dart initialization to -viewWillAppear on iOS (#5553) 2018-06-21 12:43:38 +02:00
Jason Simmons
1e40f5bc0b
Make Engine::GetFontCollection public (#5578)
Required by the Fuchsia embedder
2018-06-20 10:54:58 -07:00
Jason Simmons
1174a4d9fe
Load the ICU data file asset from the "flutter_shared" path (#5567)
See https://github.com/flutter/flutter/issues/18514
2018-06-19 14:34:13 -07:00
Ryan Macnak
fe9dd64d70
Replace AssetResolver GetAsBuffer with GetAsMapping. (#5546)
Toward no-copy loading of kernel.
2018-06-19 14:24:19 -07:00
Chinmay Garde
edf704d0f4
Get rid of an include of an internal Skia header in GPU Surface GL. (#5568) 2018-06-19 13:12:46 -07:00
Chinmay Garde
0c119932c0
Add explicit casts to pointer data members on Android. (#5558)
This accounts for changes made in https://github.com/flutter/engine/pull/5556
2018-06-18 12:08:11 -07:00
Ian Hickson
824e45e7c1
Remove spurious log messages (#5547)
These are making some of the tests that are sensitive to output flakey.
2018-06-15 14:15:35 -07:00
Maurice Parrish
6afe4c8e51
Added method for receiving Dynamic Links (#5534) 2018-06-15 10:37:47 -07:00
Jason Simmons
c3c40cf958
Lazily load fonts that are embedded within the application (#5533)
Previously the engine would load all embedded fonts listed in the app's
font manifest during startup.  This change creates a Skia font manager that
is backed by the engine's AssetManager and can load embedded font assets
on demand.
2018-06-14 16:13:56 -07:00
Jason Simmons
efd6663344
Maintain a FontCollection for each engine instance instead of a process-wide singleton (#5521) 2018-06-13 14:28:21 -07:00
Ben Konyi
8d8d91bfc3
IsolateNameServer reland (#5519)
* Reland "Added IsolateNameServer functionality (#5410)"

This reverts commit c3976b3c7183f479717bffed3f640fb92afbd3dc.

* Fixed issue with isolate_name_server_test which caused test to timeout

* Disabled thread_annotations on Android as they aren't supported in the
NDK headers for std::mutex. Readded thread annotations to
IsolateNameServer.
2018-06-13 11:57:10 -07:00
Ben Konyi
c3976b3c71
Revert "Added IsolateNameServer functionality (#5410)" (#5516)
This reverts commit 61a2d129cfc8c52cf1ff59b03bccf67d9b07af63.
2018-06-12 17:03:13 -07:00
Ben Konyi
61a2d129cf
Added IsolateNameServer functionality (#5410)
* Added IsolateNameServer functionality, which allows for the association
of string names with isolate SendPort ids that can be used to establish
inter-isolate communications.
2018-06-12 15:50:48 -07:00
Chris Bracken
be02d0cf09
Revert "Eliminate support for Dart 1 (#5504)" (#5505)
Broke runtime_unittests, which are still running directly from source.

This reverts commit 0ea93c3a3e40426fd222ba22c2f60756c8a32097.
2018-06-11 18:12:10 -07:00
Chris Bracken
0ea93c3a3e
Eliminate support for Dart 1 (#5504)
Eliminates support for running directly from sources or script snapshots. In
debug mode, we run from a kernel snapshot; in profile and release modes, we
link in AOT-compiled code.

Renames --dart-non-checked-mode to --disable-dart-asserts since checked mode
does not make sense in Dart 2.
2018-06-11 17:00:43 -07:00
Chris Bracken
d328f4e64f
Enforce clang-format on all files in commit (#5495)
* Enforce clang-format on all files in commit

This re-enforces clang-format across all files changed in the commit.

In c10c417, we enabled checking only for the lines changed in the diff
in order to reduce the change of merge conflicts with the shell refactor
landed in 58e84c8.

* Reformat sources to match latest clang-format

As part of re-enabling clang-format across the codebase, reformat all
code to match the latest toolchain.
2018-06-08 15:10:54 -07:00
Stanislav Baranov
8c6953f869
Fix compile error introduce in #5473. (#5488)
Fix compile error introduced in #5473.
2018-06-07 15:36:35 -07:00
Stanislav Baranov
f51b6b3b07
Support running bundles from zip file. (#5473)
Support running bundles from zip file.
2018-06-07 15:09:23 -07:00
Sigurd Meldgaard
1b3277268a
App life cycle delegate (#5302)
* 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

* Fixed type error

* FREEZE.unindexed

* Fix Header types

* Revert "FREEZE.unindexed"

This reverts commit bebb70056c9bcb90b4321bdc2873896623ed6faa.
2018-06-06 10:49:40 +02:00
Zachary Anderson
a09b4fdcb7
Adds dynamic, interpreter configs to tools/gn (#5446)
Adds --dynamic and --interpreter flags to
tools/gn. These flags result in engines with
properties as follows:

--dynamic:
- JIT targeting native code on Android and
  DBC on iOS

--interpreter
- Target DBC even if running on Android.

For example:

gn --android --dynamic --interpreter --runtime-mode release

Will generate an engine:
- Without Dart asserts
- Without Observatory
- With JIT compililation to DBC

into out/android_dynamic_release_dbc
2018-06-05 14:52:52 -07:00
Stanislav Baranov
cce4fd2279
Remove unused argument. (#5471) 2018-06-05 13:11:18 -07:00
Mikkel Nygaard Ravn
2a4d926ab7
Update FlutterPluginRegistrxxx docs for iOS (#5415) 2018-06-05 08:19:07 +02:00
Chinmay Garde
366d0e3ef7
Fix Dart project configuration for headless Dart runners. (#5461) 2018-06-04 15:01:58 -07:00
Chinmay Garde
16f4da984c
Parse --verbose-logging flag from intent and pass to the engine as args. (#5447) 2018-06-01 17:34:45 -07:00
Mehmet Fidanboylu
d7e3f2d6e7
Fix lint errors to prepare for building Android files in Google (#5440) 2018-06-01 10:16:50 -07:00
Chris Bracken
6cef519598
Eliminate arm64 restriction in iOS framework plist (#5435)
Eliminates the declaration that only arm64 is supported in
Flutter.framework's Info.plist. This causes Xcode's app thinning tools
to remove Flutter.framework in thinned archives for armv7 devices.
2018-05-31 18:51:32 -07:00
Greg Spencer
6bfd413bee
Synchronizes analysis_options.yaml files, and turns on Function typedef lint. (#5419)
Addresses flutter/flutter#18028 for the engine repo, and synchronizes the analysis_options.yaml files between the engine and the flutter/flutter repo.
2018-05-30 16:06:05 -07:00
Chinmay Garde
5441ee79ff
Allow embedders to specify a custom advisory URI and entrypoint. (#5408)
The Fuchsia embedder wants to specify the application name in the field for the advisory URI. This allows embedders to specify whatever they want.
2018-05-29 15:10:12 -07:00
Brandon Parrish
8c564ad120
Correctly added application callback for dynamic links (#5385)
* Correctly added application callback for dynamic links

* Misspelling
2018-05-29 13:56:12 -07:00
liyuqian
83a94d525d
Fix a typo in the comment (#5401) 2018-05-28 18:51:00 -07:00
Chinmay Garde
b537231b7a
Fix build issues for the embedder on Windows. (#5386) 2018-05-25 15:20:36 -07:00
Chinmay Garde
8caa7612f8
Create a shell with no GPU configurations unless explicitly specified by the platform. (#5383) 2018-05-25 14:31:01 -07:00
Chinmay Garde
41620c9c03
Use common GrGLDefines instead of guessing platform specific headers. (#5381) 2018-05-25 12:59:49 -07:00
Chinmay Garde
b067d79ce9
Copy embedder header to the out directory. (#5379)
This allows the stable header to be referenced from a known location. Also reduces the visibility of the framework target so that it is automatically built on the mac.
2018-05-25 12:09:36 -07:00
Brandon Parrish
193d873cae
Revert "Added application callback" (#5377)
* Revert "Added application callback (#5369)"

This reverts commit a1a54ad1f9d845c8cff31e0d5faca2a012213b80.
2018-05-25 11:29:11 -07:00
Brandon Parrish
a1a54ad1f9
Added application callback (#5369)
* Added application callback

* Formatting
2018-05-25 09:55:41 -07:00
Chinmay Garde
e25c70c64c
Explicitly package vm and isolate snapshots on desktop and embedder targets. (#5368)
These snapshots used to be included (from the runtime target) in the executable if AOT mode was disabled. The mobile shells now include this snapshot in the kernel snapshot generated on the host. However the target that run on the host still need this. The tester target was already patched but the desktop embedder targets were overlooked. The unit tests passed on the embedder target because the unit tester exectuable was including the snapshot in addition to the dylib. Now the dylib itself depends on the snapshot directly.
2018-05-24 16:05:39 -07:00
Simon Lightfoot
abd74ed5ed Add support for physical keyboards on Android (#5324)
* Fixes flutter/flutter#7943
* Fixes flutter/flutter#9347
* Fixes flutter/flutter#11177
2018-05-24 15:21:33 -07:00
Ryan Macnak
fb709e25e3
[fuchsia] Plumbing for sharing between AOT snapshots. (#5351) 2018-05-24 13:24:14 -07:00
Ryan Macnak
86d96fd0ce
Reapply "Don't link the core snapshot in the Android engine." (#5353)
Add back the core snapshot to runtime_unittests and embedder_unittests.
2018-05-23 17:09:51 -07:00