Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
8d797657
Commit
8d797657
authored
Sep 11, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the leak
parent
f78fb4b9
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
263 additions
and
3 deletions
+263
-3
android/build.gradle
android/build.gradle
+1
-1
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
...main/java/com/idlefish/flutterboost/BoostFlutterView.java
+3
-2
android/src/main/java/com/idlefish/flutterboost/XAndroidKeyProcessor.java
.../java/com/idlefish/flutterboost/XAndroidKeyProcessor.java
+2
-0
android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java
.../main/java/com/idlefish/flutterboost/XPlatformPlugin.java
+257
-0
No files found.
android/build.gradle
View file @
8d797657
...
...
@@ -22,7 +22,7 @@ rootProject.allprojects {
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
2
6
compileSdkVersion
2
8
buildToolsVersion
'27.0.3'
defaultConfig
{
minSdkVersion
16
...
...
android/src/main/java/com/idlefish/flutterboost/BoostFlutterView.java
View file @
8d797657
...
...
@@ -54,7 +54,7 @@ public class BoostFlutterView extends FrameLayout {
private
BoostFlutterEngine
mFlutterEngine
;
private
XFlutterView
mFlutterView
;
private
PlatformPlugin
mPlatformPlugin
;
private
X
PlatformPlugin
mPlatformPlugin
;
private
Bundle
mArguments
;
...
...
@@ -114,7 +114,7 @@ public class BoostFlutterView extends FrameLayout {
if
(
mArguments
==
null
)
{
mArguments
=
new
Bundle
();
}
mPlatformPlugin
=
new
PlatformPlugin
((
Activity
)
getContext
(),
mFlutterEngine
.
getPlatformChannel
());
mPlatformPlugin
=
new
X
PlatformPlugin
((
Activity
)
getContext
(),
mFlutterEngine
.
getPlatformChannel
());
mFlutterView
=
new
XFlutterView
(
getContext
(),
getRenderMode
(),
getTransparencyMode
());
addView
(
mFlutterView
,
new
FrameLayout
.
LayoutParams
(
...
...
@@ -295,6 +295,7 @@ public class BoostFlutterView extends FrameLayout {
mFlutterView
.
removeOnFirstFrameRenderedListener
(
mOnFirstFrameRenderedListener
);
mFlutterView
.
release
();
mPlatformPlugin
.
release
();
}
//混合栈的返回和原来Flutter的返回逻辑不同
...
...
android/src/main/java/com/idlefish/flutterboost/XAndroidKeyProcessor.java
View file @
8d797657
...
...
@@ -13,6 +13,7 @@ public class XAndroidKeyProcessor {
private
final
KeyEventChannel
keyEventChannel
;
@NonNull
private
final
XTextInputPlugin
textInputPlugin
;
private
int
combiningCharacter
;
public
XAndroidKeyProcessor
(
@NonNull
KeyEventChannel
keyEventChannel
,
@NonNull
XTextInputPlugin
textInputPlugin
)
{
...
...
@@ -20,6 +21,7 @@ public class XAndroidKeyProcessor {
this
.
textInputPlugin
=
textInputPlugin
;
}
public
void
onKeyUp
(
@NonNull
KeyEvent
keyEvent
)
{
Character
complexCharacter
=
applyCombiningCharacterToBaseCharacter
(
keyEvent
.
getUnicodeChar
());
keyEventChannel
.
keyUp
(
...
...
android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java
0 → 100644
View file @
8d797657
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment