Commit Graph

392 Commits

Author SHA1 Message Date
Matt Carroll 2360b459de Android Embedding PR 11: Add FlutterEngine to FlutterFragment. (#7972) 2019-02-27 21:09:28 -08:00
Jason Simmons 1089b5c9f8 Check for a null pressure range for motion events (#7986)
Fixes https://github.com/flutter/flutter/issues/28490
2019-02-27 11:27:19 -08:00
Matt Carroll 4db7c30501 Android Embedding PR 10: Add system channels to FlutterEngine. (#7960) 2019-02-26 19:05:18 -08:00
Jason Simmons 9f92324fd6 Suppress deprecation warning for usage of Configuration.locale (#7973) 2019-02-26 17:03:10 -08:00
Gary Qian 4434a39c7d Add api 21 check to LocalizationChannel.java (#7967) 2019-02-26 11:33:07 -08:00
Matt Carroll 9f95ef23aa Android Embedding PR 8: Add FlutterEngine attachment/detachment to FlutterView (#7946) 2019-02-26 01:54:17 -08:00
Matt Carroll 31d31e6d2a Android PR 7: Introduce structure of FlutterActivity and FlutterFragment (#7912) 2019-02-26 01:48:09 -08:00
Matt Carroll 18ad03d49d Fixed an Android keyboard entry bug that was introduced by the embedding refactor. (#28438) (#7954) 2019-02-25 19:15:49 -08:00
Jason Simmons fd6c3fc700 Do not clear FlutterJNI state when a FlutterView is detached (#7929)
If an app is using retainFlutterNativeView or a plugin wants to keep the
FlutterNativeView active, then the FlutterNativeView should not drop its
handle to the corresponding native platform view.

Fixes https://github.com/flutter/flutter/issues/26931
2019-02-25 15:31:50 -08:00
Ivan f7306394e3 fix sendLocales on old android versions (#7937)
[Configuration.getLocales()][1] was added in API level 24. 
For earlier versions, we instead return only the current locale.

Fixes https://github.com/flutter/flutter/issues/28321

[1]: https://developer.android.com/reference/android/content/res/Configuration#getLocales()
2019-02-24 22:29:16 -08:00
Matt Carroll 502c9c4002 Android Embedding PR 6: Introduce FlutterView structure with FlutterSurfaceView and FlutterTextureView. (#7896) 2019-02-24 20:41:18 -08:00
Stanislav Baranov 36d495d57a Dynamic patching support for native code libraries. (#7927) 2019-02-22 14:18:47 -08:00
Stanislav Baranov 5809adea41 Make the layout of dynamic patch bundle similar to APK. (#7925)
This will help further changes when we pull other artifacts into the bundle.
2019-02-22 12:56:35 -08:00
Stanislav Baranov aa2b287cbf Reland #7777 with proper LICENSE (#7888) 2019-02-21 13:45:24 -08:00
Matt Carroll e11d0e96fb Android embedding refactor pr5 add flutterengine impl (#7878) 2019-02-20 17:06:33 -08:00
Matt Carroll 2f4a38dbd3 Android embedding refactor pr3 add remaining systemchannels (#7892)
Merging back in after reversion. Fixed some messaging issues in FlutterNativeView and corrected some message parsing.
2019-02-20 17:05:31 -08:00
Dan Field 6d7eb52185 Revert "Android embedding refactor pr3 add remaining systemchannels (#7874)" (#7886)
This reverts commit f4fba6d711.
2019-02-20 11:18:12 -08:00
Matt Carroll f4fba6d711 Android embedding refactor pr3 add remaining systemchannels (#7874) 2019-02-19 15:51:13 -08:00
Stanislav Baranov 5141680287 Revert "Support for binary decompression of dynamic patches. (#7777)" (#7853)
This reverts commit d48de7a3ec.
2019-02-15 17:07:06 -08:00
Chris Bracken 163a2fd5e1 Revert "Android embedding refactor pr3 add remaining systemchannels (#7738)" (#7849)
From build log:
```
../../flutter/shell/platform/android/io/flutter/view/FlutterView.java:95: error: cannot find symbol
    private final LocalizationChannel localizationChannel;
                  ^
  symbol:   class LocalizationChannel
  location: class FlutterView
../../flutter/shell/platform/android/io/flutter/view/FlutterView.java:172: error: cannot find symbol
        localizationChannel = new LocalizationChannel(dartExecutor);
                                  ^
  symbol:   class LocalizationChannel
  location: class FlutterView
2 errors
```

This reverts commit 256db4bc23.
2019-02-15 15:03:19 -08:00
Matt Carroll 256db4bc23 Android embedding refactor pr3 add remaining systemchannels (#7738) 2019-02-15 13:45:24 -08:00
Todd Volkert 02d7ca31d8 Don't call static method from instance variable (#7841) 2019-02-15 16:18:02 -05:00
Amir Hardon 10cee612bb Delete GL textures when they are released from the texture registry. (#7836)
On Android we were never deleting the textures allocated for
the texture registry, which resulted in a memory leak, see:
https://github.com/flutter/flutter/issues/24145
2019-02-15 13:11:49 -08:00
najeira 69e4606077 Fix NullPointerException in SurfaceTextureRegistryEntry (#7837) 2019-02-15 13:01:41 -08:00
najeira 9a965bc3d9 Fix NullPointerException in ResourceCleaner (#7838) 2019-02-15 12:56:37 -08:00