-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wire the old JNI bindings through the new API (#6425)
Tested by going through a regular `flutter run` and by running `flutter/flutter/examples/flutter_view`. `FlutterView` and `FlutterNativeView` have been changed to wrap an instance of `FlutterJNI` for all their internal native calls. Also moves onPreEngineRestart into FlutterJNI. Follows the `setHandler(interface)` pattern already used in `FlutterJNI.java` for the other C++ to Java callbacks (see `PlatformMessageHandler` and `RenderSurface`). The new interface is `FlutterEngine.EngineHandler`. Sets and uses the impl in `FlutterNativeView`. Fixes flutter/flutter#22580
- Loading branch information
Michael Klimushyn
authored
Oct 15, 2018
1 parent
01077b5
commit 55f9e1c
Showing
6 changed files
with
152 additions
and
420 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.