mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00

- Updated database schema to include `repository` and `pluginApiVersion` columns in the `MetadataPluginsTable`. - Modified `PluginConfiguration` model to include new fields for `repository` and `pluginApiVersion`. - Enhanced JSON serialization and deserialization for the new fields in `PluginConfiguration`. - Refactored `SettingsMetadataProviderPage` to display installed plugins with their repository information. - Created new components `MetadataInstalledPluginItem` and `MetadataPluginRepositoryItem` for better UI representation of plugins. - Updated plugin installation logic to handle new fields and display relevant information. - Bumped `youtube_explode_dart` dependency version to `2.5.1`.
39 lines
1.0 KiB
Dart
39 lines
1.0 KiB
Dart
// dart format width=80
|
|
// GENERATED CODE, DO NOT EDIT BY HAND.
|
|
// ignore_for_file: type=lint
|
|
import 'package:drift/drift.dart';
|
|
import 'package:drift/internal/migrations.dart';
|
|
import 'schema_v1.dart' as v1;
|
|
import 'schema_v2.dart' as v2;
|
|
import 'schema_v3.dart' as v3;
|
|
import 'schema_v4.dart' as v4;
|
|
import 'schema_v5.dart' as v5;
|
|
import 'schema_v6.dart' as v6;
|
|
import 'schema_v7.dart' as v7;
|
|
|
|
class GeneratedHelper implements SchemaInstantiationHelper {
|
|
@override
|
|
GeneratedDatabase databaseForVersion(QueryExecutor db, int version) {
|
|
switch (version) {
|
|
case 1:
|
|
return v1.DatabaseAtV1(db);
|
|
case 2:
|
|
return v2.DatabaseAtV2(db);
|
|
case 3:
|
|
return v3.DatabaseAtV3(db);
|
|
case 4:
|
|
return v4.DatabaseAtV4(db);
|
|
case 5:
|
|
return v5.DatabaseAtV5(db);
|
|
case 6:
|
|
return v6.DatabaseAtV6(db);
|
|
case 7:
|
|
return v7.DatabaseAtV7(db);
|
|
default:
|
|
throw MissingSchemaException(version, versions);
|
|
}
|
|
}
|
|
|
|
static const versions = const [1, 2, 3, 4, 5, 6, 7];
|
|
}
|