Skip to content

Releases: alibaba/flutter_boost

4.1.1

13 Oct 10:05
d63b3d1
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.1.0...4.1.1

4.1.0

09 Oct 06:47
Compare
Choose a tag to compare

What's Changed

  • [Android]fix popUntil not working by @joechan-cq in #1718
  • Add demo for afterimage test by @0xZOne in #1723
  • [Android] 与纯Flutter应用生命周期行为保持一致:应用切换到后台时,暂停帧调度,解决动画残影的问题 by @0xZOne in #1724
  • feat(flutter):对子类开放didFragmentShow和didFragmentHide by @JunhuaLin in #1726

New Contributors

Full Changelog: 4.0.4...4.1.0

4.0.4

30 Aug 12:54
4812ec0
Compare
Choose a tag to compare

What's Changed

  • 修复 onPostPush 和 onPostPush 类型强转失败 by @zmtzawqlp in #1707
  • [Android] 提前暴露混淆导致的异常,并给出明确指引 by @0xZOne in #1708

New Contributors

Full Changelog: 4.0.3...4.0.4

4.0.2

22 Aug 03:49
Compare
Choose a tag to compare

What's Changed

  • 增加dual_screen测试案例 by @0xZOne in #1701
  • [Android]恢复detachFromFlutterEngine重载逻辑,解决空指针崩溃问题 by @0xZOne in #1702

Full Changelog: 4.0.1...4.0.2

Release 4.0.0 (2022.08.12)

12 Aug 07:51
Compare
Choose a tag to compare

Support null-safety & Flutter 3.0.

Fixed bugs based on 0.1.60

18 Nov 07:28
Compare
Choose a tag to compare

android:
Fixed bugs

iOS:
no change

A better implementation to support Flutter v1.9.1+hotfixes

18 Nov 07:08
Compare
Choose a tag to compare

Change the content
android:

  1. based on the v1.9.1+hotfixes branch of flutter
  2. Solve major bugs, such as page parameter passing
  3. Support platformview
  4. Support androidx branch :feature/flutter_1.9_androidx_upgrade
  5. Resolve memory leaks
  6. Rewrite part of the code
  7. API changes
  8. Improved demo and added many demo cases

ios:

  1. based on the v1.9.1+hotfixes branch of flutter
    2.bugfixed

A better implementation to support Flutter 1.5

02 Sep 09:21
Compare
Choose a tag to compare

0.1.5

The main changes are as following:

  1. The new version do the page jump (URL route) based on the inherited FlutterViewController or Activity. The jump procedure will create new instance of FlutterView, while the old version just reuse the underlying FlutterView
  2. Avoiding holding and reusing the FlutterView, there is no screenshot and complex attach&detach logical any more. As a result, memory is saved and black or white-screen issue occured in old version all are solved.
  3. This version also solved the app life cycle observation issue, we recommend you to use ContainerLifeCycle observer to listen the app enter background or foreground notification instead of WidgetBinding.
  4. We did some code refactoring, the main logic became more straightforward.

API changes

From the point of API changes, we did some refactoring as following:

iOS API changes

  1. FlutterBoostPlugin's startFlutterWithPlatform function change its parameter from FlutterViewController to Engine

Before change

FlutterBoostPlugin
- (void)startFlutterWithPlatform:(id<FLBPlatform>)platform onStart:(void (^)(FlutterViewController *))callback;

After change

FlutterBoostPlugin2
- (void)startFlutterWithPlatform:(id<FLB2Platform>)platform
                         onStart:(void (^)(id<FlutterBinaryMessenger,
                                           FlutterTextureRegistry,
                                           FlutterPluginRegistry> engine))callback;
  1. FLBPlatform protocol removed flutterCanPop、accessibilityEnable and added entryForDart
    Before change:
@protocol FLBPlatform <NSObject>
@optional
//Whether to enable accessibility support. Default value is Yes.
- (BOOL)accessibilityEnable;
// flutter模块是否还可以pop
- (void)flutterCanPop:(BOOL)canpop;
@required
- (void)openPage:(NSString *)name
          params:(NSDictionary *)params
        animated:(BOOL)animated
      completion:(void (^)(BOOL finished))completion;
- (void)closePage:(NSString *)uid
         animated:(BOOL)animated
           params:(NSDictionary *)params
       completion:(void (^)(BOOL finished))completion;
@end

After change:

@protocol FLB2Platform <NSObject>
@optional
- (NSString *)entryForDart;
    
@required
- (void)open:(NSString *)url
   urlParams:(NSDictionary *)urlParams
        exts:(NSDictionary *)exts
      completion:(void (^)(BOOL finished))completion;
- (void)close:(NSString *)uid
       result:(NSDictionary *)result
         exts:(NSDictionary *)exts
   completion:(void (^)(BOOL finished))completion;
@end

Android API changes

Android mainly changed the IPlatform interface and its implementation.
It removed following APIs:

Activity getMainActivity();
boolean startActivity(Context context,String url,int requestCode);
Map getSettings();

And added following APIs:

void registerPlugins(PluginRegistry registry) 方法
void openContainer(Context context,String url,Map<String,Object> urlParams,int requestCode,Map<String,Object> exts);
void closeContainer(IContainerRecord record, Map<String,Object> result, Map<String,Object> exts);
IFlutterEngineProvider engineProvider();
int whenEngineStart();

Fixed some issues

25 Apr 03:19
3978c43
Compare
Choose a tag to compare
0.0.411

Update version to 0.0.411

0.0.408: Merge pull request #72 from TeahomLee/master

01 Apr 09:59
6e342a7
Compare
Choose a tag to compare
解决ios上页面抖动的issue
LGTM 看起来可能是这个问题,我把这个修改放到0.0.408 Tag