Skip to content

Commit 08dc066

Browse files
authored
Merge branch 'alibaba:master' into master
2 parents b230c6c + b07e6cf commit 08dc066

File tree

8 files changed

+25
-5
lines changed

8 files changed

+25
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v3.0-preview.7
2+
1. [Android] 解决前一个页面destroy时导致当前页面的PlatformViewsChannel断开的问题 (#1250)
3+
2. Hfix #1229 修复example中从Flutter页面推后台再回前天,栈顶页面是Native的页面的问题
4+
3. 修复单引擎多VC下问题:1.updateViewportMetrics在键盘唤起时被多个VC调用 2.Tab初始化场景下导致的Crash
5+
4. 修复 FlutterBoostFragment跳转新的FlutterBoostFragment,返回上一个FlutterFragment后不响应点击事件
6+
7+
18
## v3.0-preview.6
29
1.[iOS] 修复iOS打开Flutter页面再关闭不走dispose逻辑问题
310
2.[Android] 解决setSystemUIOverlayStyle不生效的问题

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77

88
# Release Note
9-
v3.0-preview.5
9+
v3.0-preview.7
1010

1111
PS: Before updating the beta version, please read the CHANGELOG to see if there are any BREAKING CHANGE
1212

@@ -37,7 +37,7 @@ Open you pubspec.yaml and add the following line to dependencies:
3737
flutter_boost:
3838
git:
3939
url: 'https://github.com/alibaba/flutter_boost.git'
40-
ref: 'v3.0-preview.6'
40+
ref: 'v3.0-preview.7'
4141
```
4242

4343

README_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Release Note
77

8-
v3.0-preview.5
8+
v3.0-preview.7
99

1010
PS:preview版本相比beta版本,有较大的改动,建议仔细阅读新的接入文档与使用文档。
1111

@@ -34,7 +34,7 @@ PS:preview版本相比beta版本,有较大的改动,建议仔细阅读新
3434
flutter_boost:
3535
git:
3636
url: 'https://github.com/alibaba/flutter_boost.git'
37-
ref: 'v3.0-preview.6'
37+
ref: 'v3.0-preview.7'
3838
```
3939

4040
# 使用文档

android/src/main/java/com/idlefish/flutterboost/containers/FlutterBoostActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ protected void onPause() {
9494
assert (flutterView != null);
9595
ActivityAndFragmentPatch.onPauseDetachFromFlutterEngine(flutterView, getFlutterEngine());
9696
getFlutterEngine().getActivityControlSurface().detachFromActivity();
97+
platformPlugin.destroy();
9798
platformPlugin = null;
9899
getFlutterEngine().getLifecycleChannel().appIsResumed();
99100
}

android/src/main/java/com/idlefish/flutterboost/containers/FlutterBoostFragment.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ private void didFragmentShow() {
194194
private void didFragmentHide() {
195195
FlutterBoost.instance().getPlugin().onContainerDisappeared(this);
196196
ActivityAndFragmentPatch.onPauseDetachFromFlutterEngine(flutterView, getFlutterEngine());
197+
platformPlugin.destroy();
197198
platformPlugin = null;
198199
}
199200

docs/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
flutter_boost:
2020
git:
2121
url: 'https://github.com/alibaba/flutter_boost.git'
22-
ref: 'v3.0-preview.6'
22+
ref: 'v3.0-preview.7'
2323
```l
2424
之后在flutter工程下运行`flutter pub get`
2525
dart端就集成完毕了,然后可以在dart端放上一些代码,以下代码基于example3.0

ios/Classes/container/FBFlutterViewContainer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
@property (nonatomic, strong) NSNumber *disablePopGesture;
3232
- (instancetype)init;
3333
- (void)surfaceUpdated:(BOOL)appeared;
34+
- (void)updateViewportMetrics;
3435
@end
3536

3637

ios/Classes/container/FBFlutterViewContainer.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ - (void)flushOngoingTouches;
4040
- (void)bridge_viewDidDisappear:(BOOL)animated;
4141
- (void)bridge_viewWillAppear:(BOOL)animated;
4242
- (void)surfaceUpdated:(BOOL)appeared;
43+
- (void)updateViewportMetrics;
4344
@end
4445

4546
#pragma clang diagnostic push
@@ -184,6 +185,9 @@ - (void)notifyWillDealloc
184185
}
185186

186187
- (void)viewDidLoad {
188+
// Ensure current view controller attach to Flutter engine
189+
[self attatchFlutterEngine];
190+
187191
[super viewDidLoad];
188192
//只有在不透明情况下,才设置背景颜色,否则不设置颜色(也就是默认透明)
189193
if(self.opaque){
@@ -224,6 +228,12 @@ - (void)surfaceUpdated:(BOOL)appeared {
224228
}
225229
}
226230

231+
- (void)updateViewportMetrics {
232+
if (self.engine && self.engine.viewController == self) {
233+
[super updateViewportMetrics];
234+
}
235+
}
236+
227237
#pragma mark - Life circle methods
228238

229239
- (void)viewDidLayoutSubviews

0 commit comments

Comments
 (0)