Skip to content

Commit

Permalink
发布2.7.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
yancechen committed Aug 10, 2022
1 parent d066380 commit 38af4f6
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 16 deletions.
7 changes: 4 additions & 3 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.6.1-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.7.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 @@ -55,22 +55,23 @@ git clone https://github.com/wuba/fair.git
```yaml
# add Fair dependency
dependencies:
fair: 2.6.1
fair: 2.7.0

# add build_runner and compiler dependency
dev_dependencies:
build_runner: ^2.0.0
fair_compiler: ^1.2.0

# switch "fair_version" according to the local Flutter SDK version
# 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
# 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_10_0
path: ../fair/flutter_version/flutter_3_0_0
```
**step3:将App替换为FairApp**
Expand Down
20 changes: 17 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.6.1-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.7.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,22 +50,23 @@ Assuming that the fair project and your own project are in the same folder:
```yaml
# add Fair dependency
dependencies:
fair: 2.6.1
fair: 2.7.0

# add build_runner and compiler dependency
dev_dependencies:
build_runner: ^2.0.0
fair_compiler: ^1.2.0

# switch "fair_version" according to the local Flutter SDK version
# 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
# 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_10_0
path: ../fair/flutter_version/flutter_3_0_0
```
**step3:Wrap your app with FairApp Widget**
Expand Down Expand Up @@ -109,6 +110,19 @@ For more details, please refer to [https://fair.58.com](https://fair.58.com)

## versions

### 2.7.0
updateDate:2022.08.10

- Add support of Flutter SDK 3.0.0、3.0.1、3.0.2、3.0.3、3.0.4、3.0.5.
- Fixed some bugs.

#### Fair
- Fair supports loading bundle files on the phone disk path;
- Adapt to Flutter SDK 2.10.0, 2.10.1, 2.10.2, 2.10.3;
- Dart2JS supports parsing static methods;
- When running, the page error message prompts optimization;
- Syntactic sugar supports parsing Model data.

### 2.6.0
updateDate:2022.07.05

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.7.0]
* Add support of Flutter SDK 3.0.0、3.0.1、3.0.2、3.0.3、3.0.4、3.0.5.
* Fixed some bugs.

## [2.6.1]
* Fixed some bugs.
* Fair supports loading bundle from local disk.
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.6.1-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-2.7.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.6.1
fair: ^2.7.0
```
Wrap your app with FairApp Widget.
Expand Down
6 changes: 2 additions & 4 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.6.1
version: 2.7.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: ^3.0.0
# fair_version:
# path: ../flutter_version/flutter_2_5_0
flat_buffers: ^2.0.5
Expand All @@ -28,8 +28,6 @@ dev_dependencies:
sdk: flutter
analyzer: ^2.3.0
pedantic: ^1.11.1
fair_version:
path: ../flutter_version/flutter_3_0_0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

Expand Down
28 changes: 28 additions & 0 deletions flutter_version/flutter_3_0_0/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## 3.0.0
* Generated from flutter 3.0.0

## 2.10.0
* Generated from flutter 2.10.0

## 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_3_0_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.
48 changes: 48 additions & 0 deletions flutter_version/flutter_3_0_0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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
```
- 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:
```yaml
dependency_overrides:
fair_version: 2.10.0
```
- 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:
```yaml
dependency_overrides:
fair_version: 3.0.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
- v2.10.0 generated from Flutter SDK 2.10.0
- v3.0.0 generated from Flutter SDK 3.0.0
6 changes: 3 additions & 3 deletions flutter_version/flutter_3_0_0/lib/src/widgets/version.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This file is generated by Fair, do not edit manually!
// Updated on 2021-10-27 19:21:56.207621

const fairVersion = '0.0.1';
const flutterVersion = '2.5.0';
const dartVersion = '2.14.0';
const fairVersion = '3.0.0';
const flutterVersion = '3.0.5';
const dartVersion = '2.17.6';
const widgetCount = 358;
const apiCount = 212;
const widgetNames = {
Expand Down
2 changes: 1 addition & 1 deletion flutter_version/flutter_3_0_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 v3.0.0
version: 0.2.0
version: 3.0.0
homepage: https://fair.58.com/

environment:
Expand Down

0 comments on commit 38af4f6

Please sign in to comment.