Skip to content

Commit 1477a6e

Browse files
committed
发布 Fair 3.2.0 版本
1 parent 60d6eaf commit 1477a6e

File tree

10 files changed

+61
-14
lines changed

10 files changed

+61
-14
lines changed

README-zh.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![social preview](social-dark.png)
22

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

6363
# add build_runner and compiler dependency
6464
dev_dependencies:
6565
build_runner: ^2.0.0
66-
fair_compiler: ^1.6.0
66+
fair_compiler: ^1.7.0
6767

6868
# switch "fair_version" according to the local Flutter SDK version
69-
# 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
69+
# 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
70+
# 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
7071
# 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
7172
# Flutter SDK 2.10.x(2.10.0、2.10.1、2.10.2、2.10.3) -> flutter_2_10_0
7273
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
@@ -75,7 +76,7 @@ dev_dependencies:
7576
# Flutter SDK 1.22.6 -> flutter_1_22_6
7677
dependency_overrides:
7778
fair_version:
78-
path: ../fair/flutter_version/flutter_3_3_0
79+
path: ../fair/flutter_version/flutter_3_7_0
7980
```
8081
8182
**step3:将App替换为FairApp**
@@ -175,6 +176,25 @@ Fair-Online 是面向Flutter 开发者,提供从Flutter 在线开发,到实
175176

176177
## 🔨最近版本
177178

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

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![social preview](social-dark.png)
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
33
<p align="center">
4-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
55
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
66
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
77
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -50,15 +50,16 @@ Assuming that the fair project and your own project are in the same folder:
5050
```yaml
5151
# add Fair dependency
5252
dependencies:
53-
fair: 3.1.0
53+
fair: 3.2.0
5454

5555
# add build_runner and compiler dependency
5656
dev_dependencies:
5757
build_runner: ^2.0.0
58-
fair_compiler: ^1.6.0
58+
fair_compiler: ^1.7.0
5959

6060
# switch "fair_version" according to the local Flutter SDK version
61-
# 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
61+
# 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
62+
# 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
6263
# 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
6364
# Flutter SDK 2.10.x(2.10.0、2.10.1、2.10.2、2.10.3) -> flutter_2_10_0
6465
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
@@ -67,7 +68,7 @@ dev_dependencies:
6768
# Flutter SDK 1.22.6 -> flutter_1_22_6
6869
dependency_overrides:
6970
fair_version:
70-
path: ../fair/flutter_version/flutter_3_3_0
71+
path: ../fair/flutter_version/flutter_3_7_0
7172
```
7273
7374
**step3:Wrap your app with FairApp Widget**
@@ -173,6 +174,24 @@ Hot update platform: [FAIR PUSHY](https://github.com/wuba/FairPushy)
173174

174175
## versions
175176

177+
### 3.2.0
178+
updateDate:2023.04.12
179+
180+
- Adjust the order of dispose calls, not above the tree, subsequent operations stop
181+
- Add generic FairPlugin js and dart code, reuse the same interaction logic, add example comments
182+
- Json parsing compatibility
183+
- Add exception catching and log printing when executeFunction is called with V8 engine in Android
184+
- Fix SliverGridDelegateWithFixedCrossAxisCount conversion error.
185+
- SugarMap and SugarMapEach inputs support other Sugar expressions
186+
- Optimize the performance of ifEqual ifEqualBool switchCase
187+
- Fix Domain not recognizing index and item in sugar
188+
- Make AOT also follow conditions before executing code
189+
- Fix SugarMap and SugarMapEach set input does not support other Sugar syntax
190+
- Abstract Domain, add IndexDomain, MapEachDomain, support nested Domains
191+
- New FunctionDomain generic Domain, generate corresponding parameters for function callbacks for FunctionDomain to use.
192+
- Added NullableIndexedWidgetBuilder, IndexedWidgetBuilder, WidgetBuilder, TransitionBuilder common Sugar support
193+
- Some known issues fixed
194+
176195
### 3.1.0
177196
updateDate:2023.03.14
178197

fair/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [3.2.0]
2+
* Adjust the call sequence of dispose;
3+
* Fix for #244 IconData making it impossible to make tree-shake-icons.
4+
* Add js and dart code for the common FairPlugin, reuse the same interaction logic, add example comments;
5+
* Added exception catching and log printing when calling executeFunction using the V8 engine in Android;
6+
* Add FunctionDomain;
7+
* Fixed some known issues.
8+
19
## [3.1.0]
210
* Upgrade analyzer library to 5.5.0;
311
* Dart function to JS supports parameter passing;

fair/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="https://fair.58.com/logo.png">
33
</p>
44
<p align="center">
5-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.1.0-orange" alt="pub"></a>
5+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
66
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
77
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
88
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -19,7 +19,7 @@ We create Fair so we can dispatch UI changes to users as bundle(s), the way simi
1919
Use Flutter Fair require few steps. Add dependency inside `pubspec.yaml`.
2020
```yaml
2121
dependencies:
22-
fair: ^3.1.0
22+
fair: ^3.2.0
2323
```
2424
2525
Wrap your app with FairApp Widget.
-30.8 MB
Binary file not shown.
-23.2 MB
Binary file not shown.
-28.9 MB
Binary file not shown.
-31.3 MB
Binary file not shown.

fair/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dev_dependencies:
3232
# Switch to another stable flutter version
3333
dependency_overrides:
3434
fair_version:
35-
path: ../../flutter_version/flutter_3_3_0
35+
path: ../../flutter_version/flutter_3_7_0
3636
collection: 1.17.0
3737

3838
#dependency_overrides:

fair/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fair
22
description: Flutter Fair is a package used to update widget dynamically.
3-
version: 3.1.0
3+
version: 3.2.0
44
homepage: https://fair.58.com/
55

66
environment:

0 commit comments

Comments
 (0)