diff --git a/README-zh.md b/README-zh.md index 38ba8dde..e3230bdc 100644 --- a/README-zh.md +++ b/README-zh.md @@ -1,7 +1,7 @@ ![social preview](social-dark.png)

- pub + pub github doc license @@ -55,7 +55,7 @@ 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: @@ -63,6 +63,7 @@ dev_dependencies: 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 @@ -70,7 +71,7 @@ dev_dependencies: # 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** diff --git a/README.md b/README.md index de798a54..05fe51e2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ![social preview](social-dark.png)

- pub + pub github doc license @@ -50,7 +50,7 @@ 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: @@ -58,6 +58,7 @@ dev_dependencies: 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 @@ -65,7 +66,7 @@ dev_dependencies: # 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** @@ -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 diff --git a/fair/CHANGELOG.md b/fair/CHANGELOG.md index 7c80748d..19d81d1d 100644 --- a/fair/CHANGELOG.md +++ b/fair/CHANGELOG.md @@ -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. diff --git a/fair/README.md b/fair/README.md index 8423fe6c..c6f8d742 100644 --- a/fair/README.md +++ b/fair/README.md @@ -2,7 +2,7 @@

- pub + pub github doc license @@ -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. diff --git a/fair/pubspec.yaml b/fair/pubspec.yaml index e5a237dd..78979fe9 100644 --- a/fair/pubspec.yaml +++ b/fair/pubspec.yaml @@ -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: @@ -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 @@ -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 diff --git a/flutter_version/flutter_3_0_0/CHANGELOG.md b/flutter_version/flutter_3_0_0/CHANGELOG.md new file mode 100644 index 00000000..6d6f48f1 --- /dev/null +++ b/flutter_version/flutter_3_0_0/CHANGELOG.md @@ -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 diff --git a/flutter_version/flutter_3_0_0/LICENSE b/flutter_version/flutter_3_0_0/LICENSE new file mode 100644 index 00000000..9db6e925 --- /dev/null +++ b/flutter_version/flutter_3_0_0/LICENSE @@ -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. \ No newline at end of file diff --git a/flutter_version/flutter_3_0_0/README.md b/flutter_version/flutter_3_0_0/README.md new file mode 100644 index 00000000..15685066 --- /dev/null +++ b/flutter_version/flutter_3_0_0/README.md @@ -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 \ No newline at end of file diff --git a/flutter_version/flutter_3_0_0/lib/src/widgets/version.dart b/flutter_version/flutter_3_0_0/lib/src/widgets/version.dart index b1afa495..413c7c95 100644 --- a/flutter_version/flutter_3_0_0/lib/src/widgets/version.dart +++ b/flutter_version/flutter_3_0_0/lib/src/widgets/version.dart @@ -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 = { diff --git a/flutter_version/flutter_3_0_0/pubspec.yaml b/flutter_version/flutter_3_0_0/pubspec.yaml index f6d30a33..b56f321a 100644 --- a/flutter_version/flutter_3_0_0/pubspec.yaml +++ b/flutter_version/flutter_3_0_0/pubspec.yaml @@ -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: