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>
24 lines
549 B
Dart
24 lines
549 B
Dart
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 [];
|
|
}
|