Skip to content

Commit 680f200

Browse files
committed
Update SDK constraints
1 parent 2afc719 commit 680f200

5 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/dart.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- name: 🐦 Setup Flutter SDK
2222
uses: flutter-actions/setup-flutter@v1
2323
with:
24-
version: '3.0.2'
24+
version: '3.7.6'
2525

2626
- name: 🛠 Install dependencies
2727
run: flutter pub get
2828

2929
- name: 👨‍🎨 Validate formatting
30-
run: flutter format --set-exit-if-changed lib test
30+
run: dart format --set-exit-if-changed lib test
3131

3232
- name: 🕵️‍♀️ Analyze project source
3333
run: flutter analyze . --fatal-infos

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## [1.4.4] - Bugfix
1+
## [1.5.0] - Bugfix and new SDK constraints
22

33
* Fix bug for feature tags (by @GuillaumeMorinQc)
44
* Apply stricter linter
5+
* Update Dart SDK constraints
56

67
## [1.4.3] - Multiple includes
78

lib/src/feature_file.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ class FeatureFile {
1212
this.existingSteps = const <String, String>{},
1313
this.generatorOptions = const GeneratorOptions(),
1414
}) : _lines = _prepareLines(
15-
input
16-
.split('\n')
17-
.map((line) => line.trim())
18-
.map((line) => BddLine(line)),
15+
input.split('\n').map((line) => line.trim()).map(BddLine.new),
1916
) {
2017
_stepFiles = _lines
2118
.where((line) => line.type == LineType.step)

lib/src/step_file.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ abstract class StepFile {
3535
}
3636

3737
class NewStepFile extends StepFile {
38-
const NewStepFile._(String import, this.filename, this.package, this.line)
39-
: super._(import);
38+
const NewStepFile._(super.import, this.filename, this.package, this.line)
39+
: super._();
4040

4141
final String package;
4242
final String line;
@@ -46,9 +46,9 @@ class NewStepFile extends StepFile {
4646
}
4747

4848
class ExistingStepFile extends StepFile {
49-
const ExistingStepFile._(String import) : super._(import);
49+
const ExistingStepFile._(super.import) : super._();
5050
}
5151

5252
class ExternalStepFile extends StepFile {
53-
const ExternalStepFile._(String import) : super._(import);
53+
const ExternalStepFile._(super.import) : super._();
5454
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: bdd_widget_test
22
description: A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.
3-
version: 1.4.4
3+
version: 1.5.0
44
homepage: https://github.com/olexale/bdd_widget_test
55

66
environment:
7-
sdk: ">=2.12.0 <3.0.0"
7+
sdk: ">=2.18.0 <3.0.0"
88

99
dependencies:
1010
build: ^2.2.1

0 commit comments

Comments
 (0)