From 99b7eb7a9c9a91d9c1d6cb24a381b34938946730 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 11 Oct 2024 10:35:21 +0200 Subject: [PATCH 1/2] refactor: updated deps --- pubspec.lock | 28 ++++++++++++++++++++++++++-- pubspec.yaml | 2 +- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index 478987d..bec4cda 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -416,6 +416,22 @@ packages: url: "https://pub.dev" source: hosted version: "5.0.0" + lists: + dependency: transitive + description: + name: lists + sha256: "4ca5c19ae4350de036a7e996cdd1ee39c93ac0a2b840f4915459b7d0a7d4ab27" + url: "https://pub.dev" + source: hosted + version: "1.0.1" + logging: + dependency: transitive + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" matcher: dependency: transitive description: @@ -765,6 +781,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.2" + unicode: + dependency: transitive + description: + name: unicode + sha256: "0f69e46593d65245774d4f17125c6084d2c20b4e473a983f6e21b7d7762218f1" + url: "https://pub.dev" + source: hosted + version: "0.3.1" universal_io: dependency: transitive description: @@ -833,10 +857,10 @@ packages: dependency: "direct main" description: name: youtube_explode_dart - sha256: "133a65907e6cf839ac7643d92dc5c56b37fcebe4f0a8f0e67716dffa500c0ef0" + sha256: "08bac196966c61abbdc13c00afb7b92f0f7aca438b53f052a5737145c2232df8" url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.3.0" sdks: dart: ">=3.5.0 <4.0.0" flutter: ">=3.22.0" diff --git a/pubspec.yaml b/pubspec.yaml index ba0416d..7657c10 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,7 +32,7 @@ dependencies: sdk: flutter shared_preferences: ^2.3.2 get: ^4.6.6 - youtube_explode_dart: ^2.2.2 + youtube_explode_dart: ^2.3.0 path_provider: ^2.1.4 http: ^1.2.2 just_audio: ^0.9.40 From c48b55e64076dae81f6dfd98aa11d3db37d86718 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 11 Oct 2024 10:52:58 +0200 Subject: [PATCH 2/2] fix: write audios json as string doubled --- lib/services/filesystem_service.dart | 43 ++++++++++++++++------------ 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/lib/services/filesystem_service.dart b/lib/services/filesystem_service.dart index cda9168..93b449c 100644 --- a/lib/services/filesystem_service.dart +++ b/lib/services/filesystem_service.dart @@ -16,6 +16,7 @@ class FileSystemService { Future init() async { _authorized = await _hasStoragePermission(); + if (_authorized) return; _authorized = await _requestStoragePermission(); @@ -63,33 +64,23 @@ class FileSystemService { } Future saveAudioList(List