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:
16
lib/application/app_bootstrap.dart
Normal file
16
lib/application/app_bootstrap.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import '../infrastructure/local/app_database.dart';
|
||||
|
||||
final class AppBootstrap {
|
||||
AppBootstrap._({required this.database});
|
||||
|
||||
final AppDatabase database;
|
||||
|
||||
static Future<AppBootstrap> create() async {
|
||||
final database = AppDatabase.open();
|
||||
await database.customSelect('SELECT 1').get();
|
||||
|
||||
return AppBootstrap._(database: database);
|
||||
}
|
||||
|
||||
Future<void> dispose() => database.close();
|
||||
}
|
||||
Reference in New Issue
Block a user