feat(app): scaffolding initial du projet Flutter GameTime
Structure Flutter iOS/Android (lib/ organisé en couches domain, application, infrastructure, presentation), intégration Drift pour la persistance locale (sqlite3_flutter_libs), configuration des plateformes android/ et ios/. Build APK debug validé. Ajuste le .gitignore pour ignorer l'état d'exécution IdeA (.ideai/permissions.json) au même titre que le reste du runtime. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
5
lib/infrastructure/infrastructure.dart
Normal file
5
lib/infrastructure/infrastructure.dart
Normal file
@ -0,0 +1,5 @@
|
||||
/// Infrastructure layer entry point.
|
||||
///
|
||||
/// Concrete adapters live here and depend inward on application/domain
|
||||
/// contracts.
|
||||
library;
|
||||
23
lib/infrastructure/local/app_database.dart
Normal file
23
lib/infrastructure/local/app_database.dart
Normal file
@ -0,0 +1,23 @@
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:drift_flutter/drift_flutter.dart';
|
||||
|
||||
final class AppDatabase extends GeneratedDatabase {
|
||||
AppDatabase(DatabaseConnection connection) : super.connect(connection);
|
||||
|
||||
factory AppDatabase.open() {
|
||||
return AppDatabase(
|
||||
driftDatabase(
|
||||
name: 'gametime',
|
||||
native: const DriftNativeOptions(
|
||||
shareAcrossIsolates: true,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
int get schemaVersion => 1;
|
||||
|
||||
@override
|
||||
Iterable<TableInfo<Table, dynamic>> get allTables => const [];
|
||||
}
|
||||
1
lib/infrastructure/local/local.dart
Normal file
1
lib/infrastructure/local/local.dart
Normal file
@ -0,0 +1 @@
|
||||
export 'app_database.dart';
|
||||
Reference in New Issue
Block a user