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>
17 lines
396 B
Dart
17 lines
396 B
Dart
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();
|
|
}
|