Skip to content

Commit

Permalink
Update SDK constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
olexale committed Mar 4, 2023
1 parent 2afc719 commit 680f200
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dart.yml
Expand Up @@ -21,13 +21,13 @@ jobs:
- name: 🐦 Setup Flutter SDK
uses: flutter-actions/setup-flutter@v1
with:
version: '3.0.2'
version: '3.7.6'

- name: 🛠 Install dependencies
run: flutter pub get

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

- name: 🕵️‍♀️ Analyze project source
run: flutter analyze . --fatal-infos
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,8 @@
## [1.4.4] - Bugfix
## [1.5.0] - Bugfix and new SDK constraints

* Fix bug for feature tags (by @GuillaumeMorinQc)
* Apply stricter linter
* Update Dart SDK constraints

## [1.4.3] - Multiple includes

Expand Down
5 changes: 1 addition & 4 deletions lib/src/feature_file.dart
Expand Up @@ -12,10 +12,7 @@ class FeatureFile {
this.existingSteps = const <String, String>{},
this.generatorOptions = const GeneratorOptions(),
}) : _lines = _prepareLines(
input
.split('\n')
.map((line) => line.trim())
.map((line) => BddLine(line)),
input.split('\n').map((line) => line.trim()).map(BddLine.new),
) {
_stepFiles = _lines
.where((line) => line.type == LineType.step)
Expand Down
8 changes: 4 additions & 4 deletions lib/src/step_file.dart
Expand Up @@ -35,8 +35,8 @@ abstract class StepFile {
}

class NewStepFile extends StepFile {
const NewStepFile._(String import, this.filename, this.package, this.line)
: super._(import);
const NewStepFile._(super.import, this.filename, this.package, this.line)
: super._();

final String package;
final String line;
Expand All @@ -46,9 +46,9 @@ class NewStepFile extends StepFile {
}

class ExistingStepFile extends StepFile {
const ExistingStepFile._(String import) : super._(import);
const ExistingStepFile._(super.import) : super._();
}

class ExternalStepFile extends StepFile {
const ExternalStepFile._(String import) : super._(import);
const ExternalStepFile._(super.import) : super._();
}
4 changes: 2 additions & 2 deletions pubspec.yaml
@@ -1,10 +1,10 @@
name: bdd_widget_test
description: A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.
version: 1.4.4
version: 1.5.0
homepage: https://github.com/olexale/bdd_widget_test

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

dependencies:
build: ^2.2.1
Expand Down

0 comments on commit 680f200

Please sign in to comment.