mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05: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`.
16 lines
663 B
Dart
16 lines
663 B
Dart
part of '../database.dart';
|
|
|
|
class MetadataPluginsTable extends Table {
|
|
IntColumn get id => integer().autoIncrement()();
|
|
TextColumn get name => text().withLength(min: 1, max: 50)();
|
|
TextColumn get description => text()();
|
|
TextColumn get version => text()();
|
|
TextColumn get author => text()();
|
|
TextColumn get entryPoint => text()();
|
|
TextColumn get apis => text().map(const StringListConverter())();
|
|
TextColumn get abilities => text().map(const StringListConverter())();
|
|
BoolColumn get selected => boolean().withDefault(const Constant(false))();
|
|
TextColumn get repository => text().nullable()();
|
|
TextColumn get pluginApiVersion => text()();
|
|
}
|