Skip to content

Commit

Permalink
发布 Fair 3.2.0 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
yancechen committed Apr 12, 2023
1 parent 60d6eaf commit 1477a6e
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 14 deletions.
30 changes: 25 additions & 5 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![social preview](social-dark.png)

<p align="center">
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
Expand Down Expand Up @@ -58,15 +58,16 @@ git clone https://github.com/wuba/fair.git
```yaml
# add Fair dependency
dependencies:
fair: 3.1.0
fair: 3.2.0

# add build_runner and compiler dependency
dev_dependencies:
build_runner: ^2.0.0
fair_compiler: ^1.6.0
fair_compiler: ^1.7.0

# switch "fair_version" according to the local Flutter SDK version
# Flutter SDK 3.3.x(3.3.0、3.3.1、3.3.2、3.3.3、3.3.4、3.3.5、3.3.6) -> flutter_3_3_0
# Flutter SDK 3.7.x(3.7.0、3.7.1、3.7.2、3.7.3、3.7.4、3.7.5、3.7.6、3.7.7、3.7.8、3.7.9、3.7.10) -> flutter_3_7_0
# Flutter SDK 3.3.x(3.3.0、3.3.1、3.3.2、3.3.3、3.3.4、3.3.5、3.3.6、3.3.7、3.3.8、3.3.9、3.3.10) -> flutter_3_3_0
# Flutter SDK 3.0.x(3.0.0、3.0.1、3.0.2、3.0.3、3.0.4、3.0.5) -> flutter_3_0_0
# Flutter SDK 2.10.x(2.10.0、2.10.1、2.10.2、2.10.3) -> flutter_2_10_0
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
Expand All @@ -75,7 +76,7 @@ dev_dependencies:
# Flutter SDK 1.22.6 -> flutter_1_22_6
dependency_overrides:
fair_version:
path: ../fair/flutter_version/flutter_3_3_0
path: ../fair/flutter_version/flutter_3_7_0
```
**step3:将App替换为FairApp**
Expand Down Expand Up @@ -175,6 +176,25 @@ Fair-Online 是面向Flutter 开发者,提供从Flutter 在线开发,到实

## 🔨最近版本

### 3.2.0
更新时间:2023.04.12

- 调整 dispose 的调用顺序,不在树上面,后续操作停止
- 增加通用FairPlugin的js和dart代码,复用相同的交互逻辑,增加例子注释
- Json解析兼容
- Android中使用V8引擎调用executeFunction时添加异常捕获及日志打印
- 修复 SliverGridDelegateWithFixedCrossAxisCount 转换报错
- SugarMap 和 SugarMapEach 的输入支持其他 Sugar 表达
- 优化 ifEqual ifEqualBool switchCase 的性能
- 修复 Domain 不识别 sugar 中的 index 和 item
- 让 AOT 也遵循条件达成才执行代码
- 修复 SugarMap 和 SugarMapEach 集合入参不支持其他 Sugar 语法
- 抽象 Domain,增加 IndexDomain、MapEachDomain,支持嵌套 Domain
- 新增 FunctionDomain 通用 Domain,为回调function 生成对应的参数供 FunctionDomain 使用
- 新增 NullableIndexedWidgetBuilder,IndexedWidgetBuilder,WidgetBuilder,TransitionBuilder 常用的 Sugar 支持
- 一些已知问题修复


### 3.1.0
更新时间:2023.03.14

Expand Down
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![social preview](social-dark.png)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<p align="center">
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
Expand Down Expand Up @@ -50,15 +50,16 @@ Assuming that the fair project and your own project are in the same folder:
```yaml
# add Fair dependency
dependencies:
fair: 3.1.0
fair: 3.2.0

# add build_runner and compiler dependency
dev_dependencies:
build_runner: ^2.0.0
fair_compiler: ^1.6.0
fair_compiler: ^1.7.0

# switch "fair_version" according to the local Flutter SDK version
# Flutter SDK 3.3.x(3.3.0、3.3.1、3.3.2、3.3.3、3.3.4、3.3.5、3.3.6) -> flutter_3_3_0
# Flutter SDK 3.7.x(3.7.0、3.7.1、3.7.2、3.7.3、3.7.4、3.7.5、3.7.6、3.7.7、3.7.8、3.7.9、3.7.10) -> flutter_3_7_0
# Flutter SDK 3.3.x(3.3.0、3.3.1、3.3.2、3.3.3、3.3.4、3.3.5、3.3.6、3.3.7、3.3.8、3.3.9、3.3.10) -> flutter_3_3_0
# Flutter SDK 3.0.x(3.0.0、3.0.1、3.0.2、3.0.3、3.0.4、3.0.5) -> flutter_3_0_0
# Flutter SDK 2.10.x(2.10.0、2.10.1、2.10.2、2.10.3) -> flutter_2_10_0
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
Expand All @@ -67,7 +68,7 @@ dev_dependencies:
# Flutter SDK 1.22.6 -> flutter_1_22_6
dependency_overrides:
fair_version:
path: ../fair/flutter_version/flutter_3_3_0
path: ../fair/flutter_version/flutter_3_7_0
```
**step3:Wrap your app with FairApp Widget**
Expand Down Expand Up @@ -173,6 +174,24 @@ Hot update platform: [FAIR PUSHY](https://github.com/wuba/FairPushy)

## versions

### 3.2.0
updateDate:2023.04.12

- Adjust the order of dispose calls, not above the tree, subsequent operations stop
- Add generic FairPlugin js and dart code, reuse the same interaction logic, add example comments
- Json parsing compatibility
- Add exception catching and log printing when executeFunction is called with V8 engine in Android
- Fix SliverGridDelegateWithFixedCrossAxisCount conversion error.
- SugarMap and SugarMapEach inputs support other Sugar expressions
- Optimize the performance of ifEqual ifEqualBool switchCase
- Fix Domain not recognizing index and item in sugar
- Make AOT also follow conditions before executing code
- Fix SugarMap and SugarMapEach set input does not support other Sugar syntax
- Abstract Domain, add IndexDomain, MapEachDomain, support nested Domains
- New FunctionDomain generic Domain, generate corresponding parameters for function callbacks for FunctionDomain to use.
- Added NullableIndexedWidgetBuilder, IndexedWidgetBuilder, WidgetBuilder, TransitionBuilder common Sugar support
- Some known issues fixed

### 3.1.0
updateDate:2023.03.14

Expand Down
8 changes: 8 additions & 0 deletions fair/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [3.2.0]
* Adjust the call sequence of dispose;
* Fix for #244 IconData making it impossible to make tree-shake-icons.
* Add js and dart code for the common FairPlugin, reuse the same interaction logic, add example comments;
* Added exception catching and log printing when calling executeFunction using the V8 engine in Android;
* Add FunctionDomain;
* Fixed some known issues.

## [3.1.0]
* Upgrade analyzer library to 5.5.0;
* Dart function to JS supports parameter passing;
Expand Down
4 changes: 2 additions & 2 deletions fair/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="https://fair.58.com/logo.png">
</p>
<p align="center">
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
Expand All @@ -19,7 +19,7 @@ We create Fair so we can dispatch UI changes to users as bundle(s), the way simi
Use Flutter Fair require few steps. Add dependency inside `pubspec.yaml`.
```yaml
dependencies:
fair: ^3.1.0
fair: ^3.2.0
```
Wrap your app with FairApp Widget.
Expand Down
Binary file removed fair/android/src/main/jniLibs/arm64-v8a/libj2v8.so
Binary file not shown.
Binary file removed fair/android/src/main/jniLibs/armeabi-v7a/libj2v8.so
Binary file not shown.
Binary file removed fair/android/src/main/jniLibs/x86/libj2v8.so
Binary file not shown.
Binary file removed fair/android/src/main/jniLibs/x86_64/libj2v8.so
Binary file not shown.
2 changes: 1 addition & 1 deletion fair/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dev_dependencies:
# Switch to another stable flutter version
dependency_overrides:
fair_version:
path: ../../flutter_version/flutter_3_3_0
path: ../../flutter_version/flutter_3_7_0
collection: 1.17.0

#dependency_overrides:
Expand Down
2 changes: 1 addition & 1 deletion fair/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fair
description: Flutter Fair is a package used to update widget dynamically.
version: 3.1.0
version: 3.2.0
homepage: https://fair.58.com/

environment:
Expand Down

0 comments on commit 1477a6e

Please sign in to comment.