mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 06:19:35 +00:00
123
This commit is contained in:
parent
161ac021b2
commit
ead8850b2e
4 changed files with 5 additions and 11 deletions
|
|
@ -9,8 +9,6 @@ PODS:
|
||||||
- device_info_plus (0.0.1):
|
- device_info_plus (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- Flutter (1.0.0)
|
- Flutter (1.0.0)
|
||||||
- isar_flutter_libs (1.0.0):
|
|
||||||
- Flutter
|
|
||||||
- just_audio (0.0.1):
|
- just_audio (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- FlutterMacOS
|
- FlutterMacOS
|
||||||
|
|
@ -39,7 +37,6 @@ DEPENDENCIES:
|
||||||
- background_downloader (from `.symlinks/plugins/background_downloader/ios`)
|
- background_downloader (from `.symlinks/plugins/background_downloader/ios`)
|
||||||
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
|
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
|
||||||
- Flutter (from `Flutter`)
|
- Flutter (from `Flutter`)
|
||||||
- isar_flutter_libs (from `.symlinks/plugins/isar_flutter_libs/ios`)
|
|
||||||
- just_audio (from `.symlinks/plugins/just_audio/darwin`)
|
- just_audio (from `.symlinks/plugins/just_audio/darwin`)
|
||||||
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
|
||||||
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
|
||||||
|
|
@ -61,8 +58,6 @@ EXTERNAL SOURCES:
|
||||||
:path: ".symlinks/plugins/device_info_plus/ios"
|
:path: ".symlinks/plugins/device_info_plus/ios"
|
||||||
Flutter:
|
Flutter:
|
||||||
:path: Flutter
|
:path: Flutter
|
||||||
isar_flutter_libs:
|
|
||||||
:path: ".symlinks/plugins/isar_flutter_libs/ios"
|
|
||||||
just_audio:
|
just_audio:
|
||||||
:path: ".symlinks/plugins/just_audio/darwin"
|
:path: ".symlinks/plugins/just_audio/darwin"
|
||||||
package_info_plus:
|
package_info_plus:
|
||||||
|
|
@ -88,7 +83,6 @@ SPEC CHECKSUMS:
|
||||||
background_downloader: a05c77d32a0d70615b9c04577aa203535fc924ff
|
background_downloader: a05c77d32a0d70615b9c04577aa203535fc924ff
|
||||||
device_info_plus: bf2e3232933866d73fe290f2942f2156cdd10342
|
device_info_plus: bf2e3232933866d73fe290f2942f2156cdd10342
|
||||||
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
|
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
|
||||||
isar_flutter_libs: b69f437aeab9c521821c3f376198c4371fa21073
|
|
||||||
just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
|
just_audio: a42c63806f16995daf5b219ae1d679deb76e6a79
|
||||||
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
|
package_info_plus: c0502532a26c7662a62a356cebe2692ec5fe4ec4
|
||||||
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
|
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ AudiobookshelfApi audiobookshelfApi(Ref ref, Uri? baseUrl) {
|
||||||
// try to get the base url from app settings
|
// try to get the base url from app settings
|
||||||
final apiSettings = ref.watch(apiSettingsProvider);
|
final apiSettings = ref.watch(apiSettingsProvider);
|
||||||
baseUrl ??= apiSettings.activeServer?.serverUrl;
|
baseUrl ??= apiSettings.activeServer?.serverUrl;
|
||||||
return DioAudiobookshelfApi(
|
return HttpAudiobookshelfApi(
|
||||||
baseUrl: makeBaseUrl(baseUrl.toString()),
|
baseUrl: makeBaseUrl(baseUrl.toString()),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -89,7 +89,7 @@ AudiobookshelfApi authenticatedApi(Ref ref) {
|
||||||
_logger.severe('No active user can not provide authenticated api');
|
_logger.severe('No active user can not provide authenticated api');
|
||||||
throw StateError('No active user');
|
throw StateError('No active user');
|
||||||
}
|
}
|
||||||
return DioAudiobookshelfApi(
|
return HttpAudiobookshelfApi(
|
||||||
baseUrl: makeBaseUrl(user.server.serverUrl.toString()),
|
baseUrl: makeBaseUrl(user.server.serverUrl.toString()),
|
||||||
token: user.authToken,
|
token: user.authToken,
|
||||||
// client: CacheClient(Client(), options: options),
|
// client: CacheClient(Client(), options: options),
|
||||||
|
|
@ -104,7 +104,7 @@ FutureOr<bool> isServerAlive(Ref ref, String address) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await DioAudiobookshelfApi(baseUrl: makeBaseUrl(address))
|
return await HttpAudiobookshelfApi(baseUrl: makeBaseUrl(address))
|
||||||
.server
|
.server
|
||||||
.ping() ??
|
.ping() ??
|
||||||
false;
|
false;
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ Future initStorage() async {
|
||||||
// );
|
// );
|
||||||
// await storageDir.create(recursive: true);
|
// await storageDir.create(recursive: true);
|
||||||
|
|
||||||
Hive.initFlutter(appName);
|
await Hive.initFlutter(appName);
|
||||||
// Hive.defaultDirectory = appDocumentsDir.path;
|
// Hive.defaultDirectory = appDocumentsDir.path;
|
||||||
// appLogger.config('Hive storage directory init: ${Hive.defaultDirectory}');
|
// appLogger.config('Hive storage directory init: ${Hive.defaultDirectory}');
|
||||||
|
|
||||||
|
|
|
||||||
2
shelfsdk
2
shelfsdk
|
|
@ -1 +1 @@
|
||||||
Subproject commit c4d69ada95a8ad2db367bb3c5efd181668ceca6d
|
Subproject commit 875c4bf90f5f08f24b90d3478322696ea29bd28f
|
||||||
Loading…
Add table
Add a link
Reference in a new issue