Skip to content

Commit 38af4f6

Browse files
committed
发布2.7.0版本
1 parent d066380 commit 38af4f6

File tree

10 files changed

+134
-16
lines changed

10 files changed

+134
-16
lines changed

README-zh.md

Lines changed: 4 additions & 3 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-2.6.1-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.7.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>
@@ -55,22 +55,23 @@ git clone https://github.com/wuba/fair.git
5555
```yaml
5656
# add Fair dependency
5757
dependencies:
58-
fair: 2.6.1
58+
fair: 2.7.0
5959

6060
# add build_runner and compiler dependency
6161
dev_dependencies:
6262
build_runner: ^2.0.0
6363
fair_compiler: ^1.2.0
6464

6565
# switch "fair_version" according to the local Flutter SDK version
66+
# 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
6667
# Flutter SDK 2.10.x(2.10.0、2.10.1、2.10.2、2.10.3) -> flutter_2_10_0
6768
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
6869
# Flutter SDK 2.5.x(2.5.0、2.5.1、2.5.2、2.5.3) -> flutter_2_5_0
6970
# Flutter SDK 2.0.6 -> flutter_2_0_6
7071
# Flutter SDK 1.22.6 -> flutter_1_22_6
7172
dependency_overrides:
7273
fair_version:
73-
path: ../fair/flutter_version/flutter_2_10_0
74+
path: ../fair/flutter_version/flutter_3_0_0
7475
```
7576
7677
**step3:将App替换为FairApp**

README.md

Lines changed: 17 additions & 3 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-2.6.1-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.7.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,22 +50,23 @@ Assuming that the fair project and your own project are in the same folder:
5050
```yaml
5151
# add Fair dependency
5252
dependencies:
53-
fair: 2.6.1
53+
fair: 2.7.0
5454

5555
# add build_runner and compiler dependency
5656
dev_dependencies:
5757
build_runner: ^2.0.0
5858
fair_compiler: ^1.2.0
5959

6060
# switch "fair_version" according to the local Flutter SDK version
61+
# 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
6162
# Flutter SDK 2.10.x(2.10.0、2.10.1、2.10.2、2.10.3) -> flutter_2_10_0
6263
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
6364
# Flutter SDK 2.5.x(2.5.0、2.5.1、2.5.2、2.5.3) -> flutter_2_5_0
6465
# Flutter SDK 2.0.6 -> flutter_2_0_6
6566
# Flutter SDK 1.22.6 -> flutter_1_22_6
6667
dependency_overrides:
6768
fair_version:
68-
path: ../fair/flutter_version/flutter_2_10_0
69+
path: ../fair/flutter_version/flutter_3_0_0
6970
```
7071
7172
**step3:Wrap your app with FairApp Widget**
@@ -109,6 +110,19 @@ For more details, please refer to [https://fair.58.com](https://fair.58.com)
109110

110111
## versions
111112

113+
### 2.7.0
114+
updateDate:2022.08.10
115+
116+
- Add support of Flutter SDK 3.0.0、3.0.1、3.0.2、3.0.3、3.0.4、3.0.5.
117+
- Fixed some bugs.
118+
119+
#### Fair
120+
- Fair supports loading bundle files on the phone disk path;
121+
- Adapt to Flutter SDK 2.10.0, 2.10.1, 2.10.2, 2.10.3;
122+
- Dart2JS supports parsing static methods;
123+
- When running, the page error message prompts optimization;
124+
- Syntactic sugar supports parsing Model data.
125+
112126
### 2.6.0
113127
updateDate:2022.07.05
114128

fair/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.7.0]
2+
* Add support of Flutter SDK 3.0.0、3.0.1、3.0.2、3.0.3、3.0.4、3.0.5.
3+
* Fixed some bugs.
4+
15
## [2.6.1]
26
* Fixed some bugs.
37
* Fair supports loading bundle from local disk.

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-2.6.1-orange" alt="pub"></a>
5+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.7.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: ^2.6.1
22+
fair: ^2.7.0
2323
```
2424
2525
Wrap your app with FairApp Widget.

fair/pubspec.yaml

Lines changed: 2 additions & 4 deletions
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: 2.6.1
3+
version: 2.7.0
44
homepage: https://fair.58.com/
55

66
environment:
@@ -16,7 +16,7 @@ dependencies:
1616
# fair_annotation:
1717
# path: ../annotation
1818

19-
#fair_version: 2.5.0+1
19+
fair_version: ^3.0.0
2020
# fair_version:
2121
# path: ../flutter_version/flutter_2_5_0
2222
flat_buffers: ^2.0.5
@@ -28,8 +28,6 @@ dev_dependencies:
2828
sdk: flutter
2929
analyzer: ^2.3.0
3030
pedantic: ^1.11.1
31-
fair_version:
32-
path: ../flutter_version/flutter_3_0_0
3331
# For information on the generic Dart part of this file, see the
3432
# following page: https://dart.dev/tools/pub/pubspec
3533

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## 3.0.0
2+
* Generated from flutter 3.0.0
3+
4+
## 2.10.0
5+
* Generated from flutter 2.10.0
6+
7+
## 2.8.0
8+
* Generated from flutter 2.8.0
9+
10+
## 2.5.0+1
11+
* Generated from flutter 2.5.0
12+
* Add the LinearGradient to the mapping table
13+
14+
## 2.5.0
15+
* Generated from flutter 2.5.0
16+
17+
## 2.0.6+2
18+
* Generated from flutter 2.0.6
19+
* Add the LinearGradient to the mapping table
20+
21+
## 2.0.6+1
22+
* Generated from flutter 2.0.6
23+
24+
## 1.22.6
25+
* Generated from flutter 1.22.6
26+
27+
## 0.2.0
28+
* Generated from flutter 1.22.4
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (C) 2005-present, 58.com. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of 58.com nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
Widget mapping used by [fair]
2+
3+
**Tips:**
4+
5+
- If your Flutter SDK is 2.0.6, we recommend that you use fair_version 2.0.6+2, like this:
6+
7+
```yaml
8+
dependency_overrides:
9+
fair_version: 2.0.6+2
10+
```
11+
12+
- If your Flutter SDK is 2.5.0/2.5.1/2.5.2/2.5.3, we recommend that you use fair_version 2.5.0+1, like this:
13+
14+
```yaml
15+
dependency_overrides:
16+
fair_version: 2.5.0+1
17+
```
18+
19+
- If your Flutter SDK is 2.8.0/2.8.1, we recommend that you use fair_version 2.8.0, like this:
20+
21+
```yaml
22+
dependency_overrides:
23+
fair_version: 2.8.0
24+
```
25+
26+
- If your Flutter SDK is 2.10.0/2.10.1/2.10.2/2.10.3, we recommend that you use fair_version 2.10.0, like this:
27+
28+
```yaml
29+
dependency_overrides:
30+
fair_version: 2.10.0
31+
```
32+
33+
- If your Flutter SDK is 3.0.0/3.0.1/3.0.2/3.0.3/3.0.4/3.0.5, we recommend that you use fair_version 3.0.0, like this:
34+
35+
```yaml
36+
dependency_overrides:
37+
fair_version: 3.0.0
38+
```
39+
40+
- v1.22.4 generated from Flutter SDK 1.22.4
41+
- v1.22.6 generated from Flutter SDK 1.22.6
42+
- v2.0.6+1 generated from Flutter SDK 2.0.6
43+
- v2.0.6+2 generated from Flutter SDK 2.0.6
44+
- v2.5.0 generated from Flutter SDK 2.5.0
45+
- v2.5.0+1 generated from Flutter SDK 2.5.0
46+
- v2.8.0 generated from Flutter SDK 2.8.0
47+
- v2.10.0 generated from Flutter SDK 2.10.0
48+
- v3.0.0 generated from Flutter SDK 3.0.0

flutter_version/flutter_3_0_0/lib/src/widgets/version.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// This file is generated by Fair, do not edit manually!
22
// Updated on 2021-10-27 19:21:56.207621
33

4-
const fairVersion = '0.0.1';
5-
const flutterVersion = '2.5.0';
6-
const dartVersion = '2.14.0';
4+
const fairVersion = '3.0.0';
5+
const flutterVersion = '3.0.5';
6+
const dartVersion = '2.17.6';
77
const widgetCount = 358;
88
const apiCount = 212;
99
const widgetNames = {

flutter_version/flutter_3_0_0/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fair_version
22
description: Fair binding for Flutter v3.0.0
3-
version: 0.2.0
3+
version: 3.0.0
44
homepage: https://fair.58.com/
55

66
environment:

0 commit comments

Comments
 (0)