Skip to content

Commit

Permalink
发布 Fair 2.4.1 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
yancechen committed May 12, 2022
1 parent 55e4870 commit df674db
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 25 deletions.
10 changes: 5 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-2.4.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.4.1-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 @@ -54,7 +54,7 @@ git clone https://github.com/wuba/fair.git
```yaml
# add Fair dependency
dependencies:
fair: 2.4.0
fair: 2.4.1

# add compiler dependency
dev_dependencies:
Expand All @@ -63,11 +63,11 @@ dev_dependencies:
path: ../fair/compiler

# switch "fair_version" according to the local Flutter SDK version.
# Flutter SDK 2.5.x(2.5.0、2.5.1、2.5.2、2.5.3) -> fair_version: 2.5.0
# Flutter SDK 2.0.6 -> fair_version: 2.0.6+1
# Flutter SDK 2.5.x(2.5.0、2.5.1、2.5.2、2.5.3) -> fair_version: 2.5.0+1
# Flutter SDK 2.0.6 -> fair_version: 2.0.6+2
# Flutter SDK 1.22.6 -> fair_version: 1.22.6
dependency_overrides:
fair_version: 2.0.6+1
fair_version: 2.0.6+2
```
**step3:将App替换为FairApp**
Expand Down
6 changes: 3 additions & 3 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-2.4.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.4.1-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 @@ -43,7 +43,7 @@ Assuming that the fair project and your own project are in the same folder:
```yaml
# add Fair dependency
dependencies:
fair: 2.4.0
fair: 2.4.1

# add compiler dependency
dev_dependencies:
Expand All @@ -56,7 +56,7 @@ dev_dependencies:
# Flutter SDK 2.0.6 -> fair_version: 2.0.6+1
# Flutter SDK 1.22.6 -> fair_version: 1.22.6
dependency_overrides:
fair_version: 2.0.6+1
fair_version: 2.0.6+2
```
**step3:Wrap your app with FairApp Widget**
Expand Down
6 changes: 3 additions & 3 deletions compiler/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ dependencies:
dart_style: ^2.0.0
glob: ^2.0.1
pedantic: ^1.11.1
# fair_annotation: ^2.3.0
fair_annotation:
path: ../annotation
fair_annotation: ^2.3.0
# fair_annotation:
# path: ../annotation
http: ^0.13.3
fairc:
path: ../dart2dsl
Expand Down
4 changes: 4 additions & 0 deletions fair/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.4.1]
* Fix FairLogger import problem.
* Upgrade Analyzer to 2.3.0.

## [2.4.0]
* FlatBuffers supports generating bin files in a null safe environment.

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-2.4.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.4.1-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: ^2.4.0
fair: ^2.4.1
```
Wrap your app with FairApp Widget.
Expand Down
15 changes: 7 additions & 8 deletions 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: 2.4.0
version: 2.4.1
homepage: https://fair.58.com/

environment:
Expand All @@ -12,14 +12,13 @@ dependencies:
sdk: flutter
ffi: ^1.1.2

# fair_annotation: ^2.3.0
fair_annotation:
path: ../annotation

# fair_version: ^2.0.6+1
fair_version:
path: ../flutter_version/flutter_2_5_0
fair_annotation: ^2.3.0
# fair_annotation:
# path: ../annotation

fair_version: ^2.5.0+1
# fair_version:
# path: ../flutter_version/flutter_2_5_0
flat_buffers: ^2.0.5
url_launcher: ^6.0.10
http: ^0.13.3
Expand Down
4 changes: 4 additions & 0 deletions flutter_version/flutter_2_0_6/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.6+2
* Generated from flutter 2.0.6
* Add the LinearGradient to the mapping table

## 2.0.6+1
* Generated from flutter 2.0.6

Expand Down
12 changes: 11 additions & 1 deletion flutter_version/flutter_2_0_6/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
Widget mapping used by [fair]

Tips:

- If your Flutter SDK is 2.0.6, we recommend that you use fair_version 2.0.6+2, like this:

```yaml
dependency_overrides:
fair_version: 2.0.6+2
```
- v1.22.4 generated from Flutter SDK 1.22.4
- v1.22.6 generated from Flutter SDK 1.22.6
- v2.0.6+1 generated from Flutter SDK 2.0.6
- v2.0.6+1 generated from Flutter SDK 2.0.6
- v2.0.6+2 generated from Flutter SDK 2.0.6
2 changes: 1 addition & 1 deletion flutter_version/flutter_2_0_6/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fair_version
description: Fair binding for Flutter v2.0.6
version: 2.0.6+1
version: 2.0.6+2
homepage: https://fair.58.com/

environment:
Expand Down
8 changes: 8 additions & 0 deletions flutter_version/flutter_2_5_0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
## 2.5.0+1
* Generated from flutter 2.5.0
* Add the LinearGradient to the mapping table

## 2.5.0
* Generated from flutter 2.5.0

## 2.0.6+2
* Generated from flutter 2.0.6
* Add the LinearGradient to the mapping table

## 2.0.6+1
* Generated from flutter 2.0.6

Expand Down
20 changes: 19 additions & 1 deletion flutter_version/flutter_2_5_0/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
Widget mapping used by [fair]

**Tips:**

- If your Flutter SDK is 2.0.6, we recommend that you use fair_version 2.0.6+2, like this:

```yaml
dependency_overrides:
fair_version: 2.0.6+2
```
- If your Flutter SDK is 2.5.0, we recommend that you use fair_version 2.5.0+1, like this:
```yaml
dependency_overrides:
fair_version: 2.5.0+1
```
- v1.22.4 generated from Flutter SDK 1.22.4
- v1.22.6 generated from Flutter SDK 1.22.6
- v2.0.6+1 generated from Flutter SDK 2.0.6
- v2.5.0 generated from Flutter SDK 2.5.0
- v2.0.6+2 generated from Flutter SDK 2.0.6
- v2.5.0 generated from Flutter SDK 2.5.0
- v2.5.0+1 generated from Flutter SDK 2.5.0
2 changes: 1 addition & 1 deletion flutter_version/flutter_2_5_0/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fair_version
description: Fair binding for Flutter v2.5.0
version: 2.5.0
version: 2.5.0+1
homepage: https://fair.58.com/

environment:
Expand Down

0 comments on commit df674db

Please sign in to comment.