Dan Field
7826548462
Align fuchsia and non-fuchsia tracing ( #9199 )
2019-06-05 15:14:27 -07:00
Matt Carroll
5ea125eaf9
Switch PlatformViewsController from Activity ref to Application ref. ( #9193 )
2019-06-05 14:24:16 -07:00
Greg Spencer
bf15bd0803
Add the key event source, vendorId, and productId from Android ( #9186 )
...
This adds the key event source from Android so that the framework can differentiate between keyboard events and game controller events. Also added vendor and product ids so that Flutter code can decide to do special processing based on the kind of device, if desired.
2019-06-04 16:46:23 -07:00
Ben Konyi
12f48f7601
Allow for whitelisted flags to be passed to the Dart VM ( #9148 )
...
* Allow for whitelisted flags to be passed to the Dart VM
Fixed part of https://github.com/flutter/flutter/issues/32176
2019-06-04 14:51:29 -07:00
Amir Hardon
86aa01442b
Fix platform views channel regression ( #9185 )
...
This regression was introduced in #7847 .
The PlatformViewsChannel method call handler was always setting the result to `notImplemented` even after handling a result, this resulted in a "Reply already submitted" exception being thrown.
Note that the method channel code is swallowing this exception and logging an error, so we didn't crash instead we were logging an error(this is why the integration test didn't fail).
Filed https://github.com/flutter/flutter/issues/33863 to make sure tests fail when such exceptions are thrown.
This PR also cleans up an unused `NoSuchPlatformViewException` that was introduced in #7847 .
https://github.com/flutter/flutter/issues/33866
2019-06-04 12:38:38 -07:00
Emmanuel Garcia
05365c4c32
Revert change by mistake: extract resources ( #9180 )
2019-06-03 23:44:46 -07:00
Emmanuel Garcia
f4d92c1f0c
Use shared library when libapp.so is found ( #9172 )
2019-06-03 16:23:28 -07:00
Matt Carroll
008090b8ab
Extracted PlatformViewsChannel from PlatformViewsController. ( #7847 )
2019-06-03 11:04:33 -07:00
Jason Simmons
e8db5dfd52
Always run the resource extractor in FlutterMain ( #9149 )
...
FlutterMain.findAppBundlePath is using the presence of the flutter_assets
directory as a signal that the app is initialized. For consistency,
FlutterMain will run the resource extractor at startup and create
flutter_assets even if no resources need to be extracted.
2019-05-30 16:50:31 -07:00
Jason Simmons
e87326dd7d
Suppress an unchecked cast warning in ShimPluginRegistry ( #9145 )
2019-05-30 13:10:03 -07:00
Matt Carroll
e8aa120482
New Plugin API PR5: Integrates plugin lifecycle control with FlutterFragment. ( #9083 )
2019-05-29 20:46:07 -07:00
Matt Carroll
8b1199c4dd
Implemented Log proxy that only logs in BuildConfig.DEBUG ( #25391 ). ( #9122 )
2019-05-29 20:19:29 -07:00
Kaushik Iska
d4794122ab
Change the virtual display size restriction to warning ( #9110 )
...
* Change the virtual display size restriction to warning
- Fixes: https://github.com/flutter/flutter/issues/33290
- This is so we don't block usecases where users show the platform
view partially.
- https://github.com/flutter/flutter/issues/31990 should address this
issue more broadly.
* Fix error message
2019-05-30 08:07:41 +05:30
Matt Carroll
4c4c0f8282
Add plugin shim to facilitate old plugins in new embedding ( #33478 ). ( #9120 )
2019-05-29 18:39:15 -07:00
Matt Carroll
e8c2b17873
Added support for transparent FlutterActivitys ( #32740 ). ( #9115 )
2019-05-29 18:34:53 -07:00
Kate Lovett
6e5151359d
Removing unused imports ( #9108 )
2019-05-28 15:16:33 -07:00
Mehmet Fidanboylu
41e10f07f4
Fix internal break since listing contents can return null ( #9078 )
2019-05-26 20:07:13 -07:00
Chris Bracken
509a43fe27
Apply minor cleanups to Android embedding ( #9088 )
...
Eliminate an unused import, add missing @Override annotations, and
eliminate an unused logger.
2019-05-25 15:45:14 -07:00
Chris Bracken
0a0f3305b5
Removed outdated deprecation comments ( #9087 )
...
In breaking change flutter/engine#4487 , a typo was fixed in our Android
APIs correcting RequestPermissionResult to RequestPermissionsResult
(note the 's' on Permissions) for consistency with the Android SDK.
Various tombstone comments were left to help guide developers in the
right direction. These comments were slated for removal in March of
2018; at over a year later, we can probably safely remove them.
2019-05-25 15:02:52 -07:00
Chris Bracken
a44cbbf492
Delete BSDiff sources ( #9086 )
...
BSDiff is no longer used as of flutter/engine#8663 . This removes the
unused Java import and sources.
2019-05-25 13:49:28 -07:00
Chris Bracken
0f1ff3bdb3
Correct typos, adopt US spellings ( #9081 )
...
Corects a bnuch of typeos throughout teh engien codebsae. Also makes
a couple minor Commonwealth -> US spelling adjustments for consistency
with the rest of Flutter's codebase.
Made use of `misspell` tool:
https://github.com/client9/misspell
2019-05-25 13:14:46 -07:00
Matt Carroll
cfa524fcdf
New Plugin API PR4: Adds Lifecycle support to the new plugin system. ( #9049 )
2019-05-24 19:28:49 -07:00
Jason Simmons
ee6a9c4049
Fix unchecked operation warnings in FlutterMain ( #9073 )
...
Also remove trailing whitespace on some lines
2019-05-23 15:30:08 -07:00
Matthew Dempsky
e40768c63a
Initialize next_pointer_flow_id_ to 0 ( #9026 )
...
This member variable was added to three classes in #7807 , but only
initialized to 0 in one of them. Initialize to 0 in the other two.
2019-05-20 16:52:16 -07:00
Amir Hardon
760fea25cf
remove m prefix from fields in the Android PlatformViews code ( #9020 )
2019-05-20 12:38:23 -07:00
Emmanuel Garcia
20f5000bc5
Add mode to load AOT snapshots as a native lib ( #8979 )
2019-05-20 10:08:50 -07:00
Matt Carroll
c181972a40
New Plugin API PR3: Introduces Service, BroadcastReceiver, and ContentProvider awareness, control surfaces, and plugin bindings. ( #8962 )
2019-05-17 14:25:05 -07:00
Matthew Dempsky
3cdfa807fa
Replace ararysize macro with fml::size function ( #8975 )
...
This is forward compatible with std::size and similar to how Chromium
removed use of the arraysize macro.
2019-05-15 12:43:47 -07:00
Gary Qian
f5fa03b5eb
Use Android text selection shifting API to handle keyboard backspace ( #8956 )
2019-05-15 10:44:23 +08:00
Matt Carroll
51486a5494
New Plugin API PR2: Introduces ActivityAware, ActivityControlSurface, and ActivityPluginBinding. ( #8943 )
2019-05-13 17:07:29 -07:00
Matt Carroll
904cfc4fe3
Add @UiThread to MethodChannel and related classes/calls ( #32642 ). ( #8947 )
2019-05-13 13:26:31 -07:00
Matt Carroll
816d3fc586
New Plugin API PR1: Introduces PluginRegistry and FlutterPlugin, adds support for plugin registration to FlutterEngine. ( #8826 )
2019-05-12 16:58:38 -07:00
Chinmay Garde
5526884e78
Wire up the Skia Metal backend on iOS. ( #8936 )
2019-05-11 15:21:26 -07:00
Dan Field
5d1c1a027e
Remove more asserts and fix a11y check ( #8896 )
2019-05-08 01:19:24 -07:00
Dan Field
5a045dd1f7
Log instead of throwing ( #8881 )
2019-05-07 11:08:38 -07:00
Dan Field
88e82d371a
Remove static leaks ( #8825 )
2019-05-03 16:57:04 -07:00
Matt Carroll
2c9e37c34e
Cause crash in FlutterJNI if invoked on non-main thread ( #31263 ). ( #8830 )
2019-05-03 14:55:28 -07:00
Dan Field
7ce2666e54
Guard Android logs ( #8824 )
2019-05-03 14:32:29 -07:00
Dan Field
480844608c
Remove asserts and add BuildConfig ( #8821 )
2019-05-02 17:30:19 -07:00
Dan Field
39a950e5d1
remove legacy build deps ( #8820 )
...
* remove legacy build deps
2019-05-02 16:03:05 -07:00
Matt Carroll
30639ee7b6
Allow FlutterEngine to be used on back-to-back screens ( #31264 ). ( #8808 )
2019-05-02 13:19:11 -07:00
Kaushik Iska
5aa5b6cbf4
VirtualDisplay size constraint - add a comment explaining the reason ( #8780 )
...
* VirtualDisplay size: add a comment explaining the reason
Address nits in: https://github.com/flutter/engine/pull/8704
* remove locale import
2019-04-29 17:19:05 -07:00
Kaushik Iska
7471ddea46
Limit the size of VirtualDisplay we create in android ( #8704 )
...
- This can cause phones to restart as documented in https://github.com/flutter/flutter/issues/28978
2019-04-25 13:44:45 -07:00
Chris Bracken
fdd8fdbf40
Fix reflective ctor invocation in FlutterFragment ( #8735 )
...
Class.newInstance() propagates any exception thrown by the nullary
constructor, including a checked exception. This effectively bypasses
the compile-time exception checking that would otherwise be performed by
the compiler. The Constructor.newInstance method avoids this problem by
wrapping any exception thrown by the constructor in a (checked)
InvocationTargetException.
2019-04-24 17:50:19 -07:00
Stanislav Baranov
8b5f77630f
Remove support for downloading dynamic patches. ( #8663 )
2019-04-22 09:05:06 -07:00
Chinmay Garde
1fe3279149
Cleanup references to FLX archives from the engine. ( #8653 )
2019-04-19 12:49:07 -07:00
Ben Konyi
3e597e1de3
Enable VM service authentication codes by default ( #8594 )
2019-04-18 14:17:25 -07:00
liyuqian
8ff631f3df
Rename flow namespace to flutter ( #8615 )
...
This follows our namespace change from shell to flutter: https://github.com/flutter/engine/pull/8520 .
2019-04-17 14:38:45 -07:00
Qxyat
28a46d51a0
Composite Embedded Views with the correct GrContext
...
PaintRecorder Canvases are not associated with GrContexts.
2019-04-16 14:13:34 -07:00
Matt Carroll
23b0e02ec0
Android Embedding PR29: Improve FlutterFragment construction API + engine config API. ( #8540 )
2019-04-12 13:19:05 -07:00