games
Some checks failed
Web App CI / test (push) Waiting to run
Web App CI / build (push) Blocked by required conditions
Mobile App CI / test (push) Has been cancelled
Mobile App CI / build-android (push) Has been cancelled
Mobile App CI / build-ios (push) Has been cancelled

This commit is contained in:
Dmitry 2025-12-11 03:56:43 +03:00
parent 689636fbc4
commit 05831c8a9e
5 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,6 @@
include: package:flutter_lints/flutter.yaml
linter:
rules:
prefer_const_constructors: true
prefer_const_literals_to_create_immutables: true

View file

@ -0,0 +1,6 @@
library game_tests;
/// Entry point for shared game test utilities and widgets.
/// Extend this package with data models, state helpers, and UI.
export 'src/config/game_test_settings.dart';
export 'src/game_tests_placeholder.dart';

View file

@ -0,0 +1,24 @@
/// Configuration for game test experience: delays, sounds, haptics.
class GameTestSettings {
const GameTestSettings({
this.enableSounds = true,
this.enableHaptics = true,
this.feedbackDelay = const Duration(milliseconds: 1500),
});
final bool enableSounds;
final bool enableHaptics;
final Duration feedbackDelay;
GameTestSettings copyWith({
bool? enableSounds,
bool? enableHaptics,
Duration? feedbackDelay,
}) {
return GameTestSettings(
enableSounds: enableSounds ?? this.enableSounds,
enableHaptics: enableHaptics ?? this.enableHaptics,
feedbackDelay: feedbackDelay ?? this.feedbackDelay,
);
}
}

View file

@ -0,0 +1,6 @@
/// Placeholder for game tests shared package.
///
/// Add shared models, mappers, and widgets for Mnemo Cards game tests here.
class GameTestsPlaceholder {
const GameTestsPlaceholder();
}

View file

@ -0,0 +1,19 @@
name: game_tests
description: "Shared game test logic and UI components for Mnemo Cards games"
version: 0.0.1
homepage: https://mnemo-cards.online
environment:
sdk: ^3.8.1
flutter: ">=3.19.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^5.0.0
flutter: