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

* feat: add youtube engine abstraction and yt-dlp integration * chore: add yt-dlp as optional dependency * feat: implement custom path support for youtube engines * chore: check for custom path in setting engine select dropdown * chore: update yt_dlp_dart * chore: setting video url instead of video id in fetchSiblings * feat: implement NewPipe engine * chore: update local path to git url for flutter_new_pipe_extractor package * chore: fix android build isn't working * chore: fix routes not working when initially signing in * refactor: drop fallback support to different sources
30 lines
802 B
Dart
30 lines
802 B
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_v4.dart' as v4;
|
|
import 'schema_v3.dart' as v3;
|
|
import 'schema_v2.dart' as v2;
|
|
import 'schema_v1.dart' as v1;
|
|
|
|
class GeneratedHelper implements SchemaInstantiationHelper {
|
|
@override
|
|
GeneratedDatabase databaseForVersion(QueryExecutor db, int version) {
|
|
switch (version) {
|
|
case 4:
|
|
return v4.DatabaseAtV4(db);
|
|
case 3:
|
|
return v3.DatabaseAtV3(db);
|
|
case 2:
|
|
return v2.DatabaseAtV2(db);
|
|
case 1:
|
|
return v1.DatabaseAtV1(db);
|
|
default:
|
|
throw MissingSchemaException(version, versions);
|
|
}
|
|
}
|
|
|
|
static const versions = const [1, 2, 3, 4];
|
|
}
|