Skip to content

Commit

Permalink
Merge pull request #90 from olexale/dependency_version_bump
Browse files Browse the repository at this point in the history
Dependency version bump
  • Loading branch information
olexale authored Feb 13, 2025
2 parents b935e9b + b2be93f commit 0df0ea2
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: flutter-actions/setup-flutter@v3
with:
channel: stable
version: '3.22.1'
version: '3.29.0'

- name: 🛠 Install dependencies
run: flutter pub get
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.8.0] - Dependency updates

* Update `dart_style` constraint to `^3.0.0`

## [1.7.6] - Add relativeToTestFolder

* Add `relativeToTestFolder` option to control the generated step file location
Expand Down
3 changes: 3 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
include: package:very_good_analysis/analysis_options.yaml

analyzer:
exclude: [test/**_test.dart, example/test/**_test.dart]

linter:
rules:
avoid_positional_boolean_parameters: false
Expand Down
14 changes: 8 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
import 'package:flutter/material.dart';

void main() {
runApp(MyApp());
runApp(const MyApp());
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return MaterialApp(
return const MaterialApp(
title: 'Flutter Demo',
home: MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}

class MyHomePage extends StatefulWidget {
MyHomePage({Key? key, required this.title}) : super(key: key);
const MyHomePage({required this.title, Key? key}) : super(key: key);

final String title;

@override
_MyHomePageState createState() => _MyHomePageState();
State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
Expand All @@ -40,7 +42,7 @@ class _MyHomePageState extends State<MyHomePage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
const Text(
'You have pushed the button this many times:',
),
Text(
Expand All @@ -53,7 +55,7 @@ class _MyHomePageState extends State<MyHomePage> {
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
child: const Icon(Icons.add),
),
);
}
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ dev_dependencies:
bdd_widget_test:
path: ../
build_runner: ^2.4.10
integration_test:
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
flutter_driver:
integration_test:
sdk: flutter
patrol: ^3.7.2
4 changes: 2 additions & 2 deletions example/test/step/common/the_app_is_running.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:dummy_yaml/main.dart';
import 'package:flutter_test/flutter_test.dart';

Future<void> theAppIsRunning(WidgetTester tester) async {
final widget = MyApp();
const widget = MyApp();
await tester.pumpWidget(widget);
}
3 changes: 1 addition & 2 deletions example/test/step/i_tap_icon_times.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:bdd_widget_test/step/i_tap_icon.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';

import 'package:bdd_widget_test/step/i_tap_icon.dart';

Future<void> iTapIconTimes(
WidgetTester tester,
IconData icon,
Expand Down
5 changes: 4 additions & 1 deletion example/test/step/the_following_songs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import 'package:flutter_test/flutter_test.dart';

/// Usage: the following {'Good'} songs
Future<void> theFollowingSongs(
WidgetTester tester, String param1, bdd.DataTable dataTable) async {
WidgetTester tester,
String param1,
bdd.DataTable dataTable,
) async {
throw UnimplementedError();
}
4 changes: 3 additions & 1 deletion lib/src/util/dart_formatter.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'package:dart_style/dart_style.dart';

final _formatter = DartFormatter();
final _formatter = DartFormatter(
languageVersion: DartFormatter.latestShortStyleLanguageVersion,
);

String formatDartCode(String input) => _formatter.format(input);
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: bdd_widget_test
description: A BDD-style widget testing library. Generates Flutter widget tests from *.feature files.
version: 1.7.6
version: 1.8.0
repository: https://github.com/olexale/bdd_widget_test
issue_tracker: https://github.com/olexale/bdd_widget_test/issues

Expand All @@ -12,7 +12,7 @@ dependencies:
build_config: ^1.0.0
characters: ^1.2.0
collection: ^1.15.0
dart_style: ^2.3.6
dart_style: ^3.0.0
diacritic: ^0.1.3
file: ^7.0.0
flutter:
Expand All @@ -25,5 +25,5 @@ dependencies:

dev_dependencies:
build_runner: ^2.4.10
build_test: ^2.2.2
very_good_analysis: ^5.1.0
build_test: ^2.2.3
very_good_analysis: ^7.0.0

0 comments on commit 0df0ea2

Please sign in to comment.