Skip to content

Commit

Permalink
feat: increase min sdk constraint to 3.0.0 (#744)
Browse files Browse the repository at this point in the history
* update to dart 3

* update to dart 3

* change update test

* fix some tests
  • Loading branch information
renancaraujo committed May 23, 2023
1 parent af9b283 commit 464696c
Show file tree
Hide file tree
Showing 28 changed files with 231 additions and 215 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
flutter-version:
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.7.0"
- "3.10.0"
test:
# E2E tests for the test command
- test/commands/test/async_main/async_main_test.dart
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_optimizer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
build_hooks:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: 2.19.0
dart_sdk: 3.0.0
working_directory: bricks/test_optimizer/hooks

verify_bundle:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/very_good_cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: subosito/flutter-action@v2.8.0
with:
flutter-version: 3.7.12
flutter-version: 3.10.1

- name: Install Dependencies
run: flutter pub get
Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.4.0.0.yaml
include: package:very_good_analysis/analysis_options.5.0.0.yaml
analyzer:
exclude:
- "**/version.dart"
2 changes: 1 addition & 1 deletion bricks/test_optimizer/hooks/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.4.0.0.yaml
include: package:very_good_analysis/analysis_options.5.0.0.yaml
linter:
rules:
public_member_api_docs: false
6 changes: 3 additions & 3 deletions bricks/test_optimizer/hooks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: hooks
publish_to: none

environment:
sdk: ">=2.19.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
mason: ">=0.1.0-dev.49 <0.1.0"
Expand All @@ -12,5 +12,5 @@ dependencies:
# the sdk constraints above
dev_dependencies:
mocktail: ^0.3.0
test: ^1.22.2
very_good_analysis: ^4.0.0
test: ^1.24.3
very_good_analysis: ^5.0.0
2 changes: 1 addition & 1 deletion e2e/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.4.0.0.yaml
include: package:very_good_analysis/analysis_options.5.0.0.yaml
3 changes: 1 addition & 2 deletions e2e/helpers/command_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ void Function() withRunner(
Logger logger,
PubUpdater pubUpdater,
List<String> printLogs,
)
runnerFn,
) runnerFn,
) {
return _overridePrint((printLogs) async {
final analytics = _MockAnalytics();
Expand Down
8 changes: 4 additions & 4 deletions e2e/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ">=2.19.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
mason: ^0.1.0-dev.49
mocktail: ^0.3.0
path: ^1.8.0
pub_updater: ^0.2.4
test: ^1.19.2
pub_updater: ^0.3.0
test: ^1.24.3
universal_io: ^2.0.4
usage: ^4.0.2
very_good_analysis: ^4.0.0
very_good_analysis: ^5.0.0
very_good_cli:
path: ../
5 changes: 2 additions & 3 deletions e2e/test/commands/test/async_main/fixture/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
test: ^1.19.2
test_api: 0.4.18
test: ^1.24.3
4 changes: 2 additions & 2 deletions e2e/test/commands/test/compilation_error/fixture/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ">=2.19.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
test: ^1.19.2
test: ^1.24.3
6 changes: 3 additions & 3 deletions e2e/test/commands/test/no_project/fixture/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 0.1.0+1
publish_to: none

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
test: ^1.19.2
test_api: 0.4.18
test: ^1.24.3
test_api: 0.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Fixture for testing golden files with spaced file names.
publish_to: none

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
flutter:
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 464696c

Please sign in to comment.