Skip to content

Commit

Permalink
chore: upgrade to flutter 2.10.5 (#31)
Browse files Browse the repository at this point in the history
* ci: upgrade to flutter 2.10.4

* chore(cli): upgrade to dart 2.16.2

* chore(form_inputs): upgrade to flutter 2.10.4

* chore(form_flow): upgrade to flutter 2.10.5

* chore(launch_analytics): upgrade to flutter 2.10.5

* chore(preference_navigation): upgrade to flutter 2.10.5

* chore(profile_accounts): upgrade to flutter 2.10.5

* chore(cli): upgrade to very good analysis 2.4.0

* deps: upgrade to latest bloc and mocktail

* ci: remove min_coverage

* update tests
  • Loading branch information
marcossevilla authored Apr 28, 2022
1 parent 96dd148 commit b46a895
Show file tree
Hide file tree
Showing 30 changed files with 140 additions and 707 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: examples

on:
push:
pull_request:
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1.5.3
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: 2.8.0-3.2.pre
channel: "beta"
flutter-version: '2.10.5'
channel: 'stable'

- name: Install Tools
run: |
Expand All @@ -24,11 +22,10 @@ jobs:
- name: Run CI workflow (format, analyze, test)
run: melos run WF:ci

- name: Check 95% code coverage
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0
- name: Check code coverage
uses: VeryGoodOpenSource/very_good_coverage@v1.2.1
with:
path: "./coverage/merged.lcov.info"
min_coverage: 95
exclude: "**/*.freezed.dart **/*.g.dart **/*.gr.dart"

- name: Upload coverage data to codecov.io
Expand Down
9 changes: 5 additions & 4 deletions cli/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ description: A set of utility commands.
version: 0.1.0+1

environment:
sdk: ">=2.13.0 <3.0.0"
sdk: ">=2.16.2 <3.0.0"

dev_dependencies:
test: ^1.17.12
very_good_analysis: ^2.3.0
dependencies:
path: ^1.8.0

dev_dependencies:
test: ^1.17.12
very_good_analysis: ^2.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ class BiographyFormInput extends FormzInput<String, BiographyValidationError> {
BiographyValidationError? validator(String value) {
if (value.isEmpty) return BiographyValidationError.empty;
if (value.length > 140) return BiographyValidationError.tooLong;
return null;
}
}
1 change: 1 addition & 0 deletions examples/form_flow/packages/formz_inputs/lib/src/name.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ class NameFormInput extends FormzInput<String, NameValidationError> {
@override
NameValidationError? validator(String value) {
if (value.isEmpty || value.length < 2) return NameValidationError.tooShort;
return null;
}
}
1 change: 1 addition & 0 deletions examples/form_flow/packages/formz_inputs/lib/src/pin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ class PinFormInput extends FormzInput<String, PinValidationError> {
if (value.isEmpty || value.length != maxLength) {
return PinValidationError.invalid;
}
return null;
}
}
2 changes: 1 addition & 1 deletion examples/form_flow/packages/formz_inputs/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.2 <3.0.0"

dependencies:
formz: ^0.4.0
Expand Down
2 changes: 1 addition & 1 deletion examples/form_flow/packages/profile/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 1.0.0+1
publish_to: none

environment:
sdk: ">=2.12.0 <3.0.0"
sdk: ">=2.16.2 <3.0.0"

dependencies:
equatable: ^2.0.3
Expand Down
Loading

0 comments on commit b46a895

Please sign in to comment.