Skip to content

Commit

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

# add build_runner and compiler dependency
dev_dependencies:
Expand All @@ -63,12 +63,13 @@ dev_dependencies:
path: ../fair/compiler

# switch "fair_version" according to the local Flutter SDK version
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
# Flutter SDK 2.5.x(2.5.0、2.5.1、2.5.2、2.5.3) -> flutter_2_5_0
# Flutter SDK 2.0.6 -> flutter_2_0_6
# Flutter SDK 1.22.6 -> flutter_1_22_6
dependency_overrides:
fair_version:
path: ../fair/flutter_version/flutter_2_5_0
path: ../fair/flutter_version/flutter_2_8_0
```
**step3:将App替换为FairApp**
Expand Down Expand Up @@ -144,7 +145,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="http://blog.hacktons.cn/"><img src="https://avatars.githubusercontent.com/u/1622234?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Wu</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=avenwu" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=avenwu" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/LinLeyang"><img src="https://avatars.githubusercontent.com/u/13174498?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Penta</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=LinLeyang" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=LinLeyang" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/153493932"><img src="https://avatars.githubusercontent.com/u/10431131?v=4?s=100" width="100px;" alt=""/><br /><sub><b>haijun</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=153493932" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=153493932" title="Documentation">📖</a></td>
<td align="center"><a href="https://yancechen.github.io/"><img src="https://avatars.githubusercontent.com/u/19757728?v=4?s=100" width="100px;" alt=""/><br /><sub><b>陈有余</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=yancechen" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=yancechen" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/yancechen/"><img src="https://avatars.githubusercontent.com/u/19757728?v=4?s=100" width="100px;" alt=""/><br /><sub><b>陈有余</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=yancechen" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=yancechen" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/yyzl0418"><img src="https://avatars.githubusercontent.com/u/14289945?v=4?s=100" width="100px;" alt=""/><br /><sub><b>yangyang</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=yyzl0418" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/wanbing"><img src="https://avatars.githubusercontent.com/u/7804234?v=4?s=100" width="100px;" alt=""/><br /><sub><b>wan</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=wanbing" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/bujiee"><img src="https://avatars.githubusercontent.com/u/16713978?v=4?s=100" width="100px;" alt=""/><br /><sub><b>bujie</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=bujiee" title="Code">💻</a></td>
Expand Down
9 changes: 5 additions & 4 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.1-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.5.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 @@ -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.1
fair: 2.5.0

# add build_runner and compiler dependency
dev_dependencies:
Expand All @@ -52,12 +52,13 @@ dev_dependencies:
path: ../fair/compiler

# switch "fair_version" according to the local Flutter SDK version
# Flutter SDK 2.8.x(2.8.0、2.8.1) -> flutter_2_8_0
# Flutter SDK 2.5.x(2.5.0、2.5.1、2.5.2、2.5.3) -> flutter_2_5_0
# Flutter SDK 2.0.6 -> flutter_2_0_6
# Flutter SDK 1.22.6 -> flutter_1_22_6
dependency_overrides:
fair_version:
path: ../fair/flutter_version/flutter_2_5_0
path: ../fair/flutter_version/flutter_2_8_0
```
**step3:Wrap your app with FairApp Widget**
Expand Down Expand Up @@ -136,7 +137,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="http://blog.hacktons.cn/"><img src="https://avatars.githubusercontent.com/u/1622234?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Wu</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=avenwu" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=avenwu" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/LinLeyang"><img src="https://avatars.githubusercontent.com/u/13174498?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Penta</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=LinLeyang" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=LinLeyang" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/153493932"><img src="https://avatars.githubusercontent.com/u/10431131?v=4?s=100" width="100px;" alt=""/><br /><sub><b>haijun</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=153493932" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=153493932" title="Documentation">📖</a></td>
<td align="center"><a href="https://yancechen.github.io/"><img src="https://avatars.githubusercontent.com/u/19757728?v=4?s=100" width="100px;" alt=""/><br /><sub><b>陈有余</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=yancechen" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=yancechen" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/yancechen/"><img src="https://avatars.githubusercontent.com/u/19757728?v=4?s=100" width="100px;" alt=""/><br /><sub><b>陈有余</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=yancechen" title="Code">💻</a> <a href="https://github.com/wuba/fair/commits?author=yancechen" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/yyzl0418"><img src="https://avatars.githubusercontent.com/u/14289945?v=4?s=100" width="100px;" alt=""/><br /><sub><b>yangyang</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=yyzl0418" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/wanbing"><img src="https://avatars.githubusercontent.com/u/7804234?v=4?s=100" width="100px;" alt=""/><br /><sub><b>wan</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=wanbing" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/bujiee"><img src="https://avatars.githubusercontent.com/u/16713978?v=4?s=100" width="100px;" alt=""/><br /><sub><b>bujie</b></sub></a><br /><a href="https://github.com/wuba/fair/commits?author=bujiee" title="Code">💻</a></td>
Expand Down
3 changes: 3 additions & 0 deletions compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.1.0]
* Support singleton parsing.

## [1.0.1]
* bugfix.

Expand Down
4 changes: 2 additions & 2 deletions compiler/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fair_compiler
description: A complier which can generate Fair bundle for widget with annotation.
version: 1.0.1
version: 1.1.0
homepage: https://fair.58.com/

environment:
Expand All @@ -26,7 +26,7 @@ dependencies:
# path: ../annotation
http: ^0.13.3
fair_dart2dsl: ^1.0.1
fair_dart2js: ^1.0.0
fair_dart2js: ^1.1.0

dev_dependencies:
test: ^1.17.12
4 changes: 4 additions & 0 deletions dart2js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.0

- 支持单例解析

## 1.0.0

- Initial version, created by Stagehand
2 changes: 1 addition & 1 deletion dart2js/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fair_dart2js
description: Convert individual dart file to js.
version: 1.0.0
version: 1.1.0
homepage: https://fair.58.com/

environment:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^2.0.0
fair_compiler: ^1.0.1
fair_compiler: ^1.1.0

dependency_overrides:
fair_version:
Expand Down
5 changes: 5 additions & 0 deletions fair/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [2.5.0]
* Add support of flutter 2.8.0、2.8.1.
* Support singleton parsing.
* Add Sugar:Sugar.colorsWithOpacity、Sugar.switchCase、Sugar.convertToString.

## [2.4.1]
* Fix FairLogger import problem.
* Upgrade Analyzer to 2.3.0.
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.1-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.5.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: ^2.4.1
fair: ^2.5.0
```
Wrap your app with FairApp Widget.
Expand Down
4 changes: 2 additions & 2 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.1
version: 2.5.0
homepage: https://fair.58.com/

environment:
Expand All @@ -16,7 +16,7 @@ dependencies:
# fair_annotation:
# path: ../annotation

fair_version: ^2.5.0+1
fair_version: ^2.8.0
# fair_version:
# path: ../flutter_version/flutter_2_5_0
flat_buffers: ^2.0.5
Expand Down
22 changes: 22 additions & 0 deletions flutter_version/flutter_2_8_0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## 2.8.0
* Generated from flutter 2.8.0

## 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

## 1.22.6
* Generated from flutter 1.22.6

## 0.2.0
* Generated from flutter 1.22.4
25 changes: 25 additions & 0 deletions flutter_version/flutter_2_8_0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (C) 2005-present, 58.com. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of 58.com nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 changes: 32 additions & 0 deletions flutter_version/flutter_2_8_0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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/2.5.1/2.5.2/2.5.3, we recommend that you use fair_version 2.5.0+1, like this:
```yaml
dependency_overrides:
fair_version: 2.5.0+1
```
- If your Flutter SDK is 2.8.0/2.8.1, we recommend that you use fair_version 2.8.0, like this:
```yaml
dependency_overrides:
fair_version: 2.8.0
```
- 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+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
- v2.8.0 generated from Flutter SDK 2.8.0
2 changes: 1 addition & 1 deletion flutter_version/flutter_2_8_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.8.0
version: 0.2.0
version: 2.8.0
homepage: https://fair.58.com/

environment:
Expand Down

0 comments on commit 8e7c403

Please sign in to comment.