Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: tighten template dependencies #137

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ environment:
sdk: ^3.4.0

dependencies:
bloc: ^8.1.3
bloc: ^8.1.4
flutter:
sdk: flutter
flutter_bloc: ^8.1.4
flutter_bloc: ^8.1.6
flutter_localizations:
sdk: flutter
intl: ^0.19.0

dev_dependencies:
bloc_test: ^9.1.6
bloc_test: ^9.1.7
flutter_test:
sdk: flutter
mocktail: ^1.0.3
mocktail: ^1.0.4
very_good_analysis: ^6.0.0

flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ environment:
sdk: ^3.4.0

dependencies:
args: ^2.4.2
args: ^2.5.0
cli_completion: ^0.5.0
mason_logger: ^0.2.12
mason_logger: ^0.2.15
pub_updater: ^0.4.0

dev_dependencies:
build_runner: ^2.4.8
build_runner: ^2.4.11
build_verify: ^3.1.0
build_version: ^2.1.1
mocktail: ^1.0.3
test: ^1.25.2
mocktail: ^1.0.4
test: ^1.25.7
very_good_analysis: ^6.0.0

executables:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ environment:
sdk: ^3.4.0

dev_dependencies:
mocktail: ^1.0.3
test: ^1.25.2
mocktail: ^1.0.4
test: ^1.25.7
very_good_analysis: ^6.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ environment:
sdk: ^3.4.0

dependencies:
audioplayers: ^5.2.1
bloc: ^8.1.3
audioplayers: ^6.0.0
bloc: ^8.1.4
equatable: ^2.0.5
flame: ^1.16.0
flame_audio: ^2.10.0
flame: ^1.18.0
flame_audio: ^2.10.2
flame_behaviors: ^1.1.0
flutter:
sdk: flutter
flutter_bloc: ^8.1.4
flutter_bloc: ^8.1.6
flutter_localizations:
sdk: flutter
google_fonts: ^6.1.0
google_fonts: ^6.2.1
intl: ^0.19.0

dev_dependencies:
bloc_test: ^9.1.6
flame_test: ^1.16.0
bloc_test: ^9.1.7
flame_test: ^1.16.2
flutter_test:
sdk: flutter
mockingjay: ^0.5.0
mocktail: ^1.0.3
mocktail: ^1.0.4
very_good_analysis: ^6.0.0

flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,37 +74,33 @@ void main() {
});

testWidgets('is routable', (tester) async {
await tester.runAsync(() async {
await tester.pumpApp(
Builder(
builder: (context) => Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: () => Navigator.of(context).push(GamePage.route()),
),
await tester.pumpApp(
Builder(
builder: (context) => Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: () => Navigator.of(context).push(GamePage.route()),
),
),
preloadCubit: preloadCubit,
);
),
preloadCubit: preloadCubit,
);

await tester.tap(find.byType(FloatingActionButton));
await tester.tap(find.byType(FloatingActionButton));

await tester.pump();
await tester.pump();
await tester.pump();
await tester.pump();

expect(find.byType(GamePage), findsOneWidget);
expect(find.byType(GamePage), findsOneWidget);

await tester.pumpWidget(Container());
});
await tester.pumpWidget(Container());
});

testWidgets('renders GameView', (tester) async {
await tester.runAsync(() async {
await tester.pumpApp(
const GamePage(),
preloadCubit: preloadCubit,
);
expect(find.byType(GameView), findsOneWidget);
});
await tester.pumpApp(
const GamePage(),
preloadCubit: preloadCubit,
);
expect(find.byType(GameView), findsOneWidget);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.3
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.0
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.3
mocktail: ^1.0.4
plugin_platform_interface: ^2.1.8
very_good_analysis: ^6.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
flutter:
sdk: flutter
plugin_platform_interface: ^2.1.0
plugin_platform_interface: ^2.1.8

dev_dependencies:
flutter_test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ environment:
sdk: ^3.4.0

dependencies:
bloc: ^8.1.3
bloc: ^8.1.4
flutter:
sdk: flutter
flutter_bloc: ^8.1.4
flutter_bloc: ^8.1.6
flutter_localizations:
sdk: flutter
intl: ^0.19.0
wearable_rotary: ^2.0.2

dev_dependencies:
bloc_test: ^9.1.6
bloc_test: ^9.1.7
flutter_test:
sdk: flutter
mocktail: ^1.0.3
mocktail: ^1.0.4
very_good_analysis: ^6.0.0

flutter:
Expand Down
Loading