Commit Graph

46 Commits

Author SHA1 Message Date
Matt Carroll 211adeac3a Introduced a number of Java system channels in io/flutter/embedding/engine/systemchannels/ (#7500) 2019-02-06 17:07:30 -08:00
Jason Simmons 395937380c Log errors returned from method channel invocations in the text input plugin (#7476)
See https://github.com/flutter/flutter/issues/25715
2019-01-14 17:26:05 -08:00
Dan Field 8b73b9d42c Fix javadoc for Android-28 (#7254)
* Fix javadoc for Android-28

* build javadoc as part of pre-submit
2018-12-19 09:24:02 -08:00
Ian Hickson 8a7ae957ff Undeprecated BigInteger support, but document what it actually does. (#6903) 2018-12-15 08:32:20 -08:00
Michael Goderbauer 70a1106b50 Unify copyright lines (#6757) 2018-11-07 12:24:35 -08:00
Kirill Nikolaev 68a42e3f47 Add nullability annotations to MethodChannel/MethodCall. (#6393)
This works towards resolving https://github.com/flutter/flutter/issues/19888.
2018-10-02 15:02:16 -07:00
Kirill Nikolaev 27f77cbef5 Document that all MethodChannel callbacks must be called on the main thread. (#6245)
This further addresses https://github.com/flutter/flutter/issues/14568.
2018-09-27 15:48:29 -07:00
amirh 68d81a31f4 Platform Views: Android and MethodChannel APIs, and implementation skeleton. (#5684)
To keep the scope of this CL as small of possible I'm leaving the actual
implementation of the platform view mechanics to a following CL.

This CL introduces:
  * A PlatformViewsController class which will be responsible for creating,
    resizing, and disposing platform views.
  * A PlatformViewRegistry which is exposed through the PluginRegistry
    and allows plugins to register factories for platform views.

Android plugin code will add support for a new platform view type by
implementing PlatformViewFactory, and registering a factory with the
registry, e.g:
```java
registrar.platformViewRegistry().registerViewFactory(
  'webview',
  new FlutterWebViewFactory()
);
```
On the Dart side, the framework will ask the engine to create new
platform views by sending a create message over the platformviews method
channel with the unique platform view type id, dimensions, and a unique
id allocated by the framework for the new platform view instance.
The platformviews method channel is also used for resizing and disposing
platform views.
2018-07-11 14:11:15 -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
Sarah Zakarias 2c5a1bf507 Provide lookup key to access Flutter assets in the APK (#4785) 2018-03-16 12:59:57 +01:00
Mikkel Nygaard Ravn 9671f63459 Make standard codecs extensible (#4770) 2018-03-16 00:08:08 +00:00
Mikkel Nygaard Ravn 3656278894 Make deprecated API unavailable (#4722) 2018-02-28 11:14:43 +01:00
Jason Simmons 15430edc1f Fix some errors in Javadoc annotations (#4622) 2018-01-31 13:56:32 -08:00
Ali Bitek 8e9598df97 Get active Context from the Registrar (#4523) 2018-01-20 08:46:40 +01:00
Mikkel Nygaard Ravn 84fc920fde Deprecate support for big integers in standard message codec (#4528) 2018-01-09 23:58:45 +01:00
Mehmet Fidanboylu 9b98d194f2 Fix build break caused by https://github.com/flutter/engine/pull/4491 (#4524) 2018-01-07 07:51:46 -08:00
Mehmet Fidanboylu d43ae0b41b Add unwrap to JSONUtil (#4491)
We have a use for this for the internal messaging plugin. Instead of rolling our own, it made sense to add it here especially since it has the mirror functionality (wrap).
2018-01-06 14:32:00 -08:00
Mikkel Nygaard Ravn 288897bb46 Fix API typo (#4487) 2018-01-02 15:32:53 +01:00
Zachary Anderson 619f452ece [Android] Extract the PluginRegistry from the FlutterActivity (#4393) 2017-11-30 11:05:55 -08:00
Zachary Anderson 7804e8588a View destroy listener (#4347)
[Android] Allow persisting a FlutterNativeView across activities.
2017-11-13 13:56:48 -08:00
Mikkel Nygaard Ravn bc3ac074d2 Make EventChannel survive hot restart on Android (#4350) 2017-11-13 07:47:36 +01:00
Chinmay Garde 9a960f82f5 Add texture support (eg video, camera) (#4159) 2017-11-02 10:57:29 +01: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
Jason Simmons ab2bc15fcc Align doubles to 8 bytes in the StandardMessageCodec (#3779)
See https://github.com/flutter/flutter/issues/10701
2017-06-15 21:15:25 -07:00
Todd Volkert b91d2f1bb4 Fix some minor issues with Javadocs (#3761) 2017-06-09 07:35:50 -07:00