From cec5e4965952c1dc20bbe9f912447af955e2f9af Mon Sep 17 00:00:00 2001 From: zarzet Date: Sat, 7 Feb 2026 20:02:11 +0700 Subject: [PATCH] fix(deps): migrate flutter_local_notifications to v20 named params, update changelog with all dependency changes since 3.5.0 --- CHANGELOG.md | 30 +++++++++++++ lib/services/notification_service.dart | 62 +++++++++++++------------- 2 files changed, 61 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b04f60df..42222421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,36 @@ - Fixed dynamic concurrency update during active downloads: changing limit (e.g. `1 -> 3`) now schedules additional queued items without waiting current active item to finish - Queue scheduler now re-checks capacity/queued items on short intervals to avoid blocking on long-running single active download +### Dependencies + +#### Flutter +- `flutter_local_notifications` 19.x → 20.0.0 (breaking: all positional params converted to named params) +- `connectivity_plus` 6.x → 7.0.0 +- `flutter_secure_storage` 9.x → 10.0.0 +- Removed `palette_generator` dependency + +#### Go +- `go-flac/go-flac` v1.0.0 → v2.0.4 +- `go-flac/flacvorbis` v0.2.0 → v2.0.2 +- `go-flac/flacpicture` v0.3.0 → v2.0.2 +- Go toolchain 1.24 → 1.25.7 + +#### Android +- Android Gradle Plugin 8.x → 9.0.0 +- Kotlin 2.1.x → 2.3.10 +- `desugar_jdk_libs` → 2.1.5 +- `kotlinx-coroutines-android` → 1.10.2 +- `lifecycle-runtime-ktx` → 2.10.0 +- `activity-ktx` → 1.12.3 + +#### CI/CD +- `actions/cache` v4 → v5 +- `actions/checkout` v4 → v6 +- `actions/setup-go` v5 → v6 +- `actions/setup-java` v4 → v5 +- `softprops/action-gh-release` v1 → v2 +- GitHub artifact actions updated + --- ## [3.5.0] - 2026-02-07 diff --git a/lib/services/notification_service.dart b/lib/services/notification_service.dart index 13d84e72..430c779c 100644 --- a/lib/services/notification_service.dart +++ b/lib/services/notification_service.dart @@ -30,7 +30,7 @@ class NotificationService { iOS: iosSettings, ); - await _notifications.initialize(initSettings); + await _notifications.initialize(settings: initSettings); if (Platform.isAndroid) { await _notifications @@ -90,10 +90,10 @@ class NotificationService { ); await _notifications.show( - downloadProgressId, - 'Downloading $trackName', - '$artistName • $percentage%', - details, + id: downloadProgressId, + title: 'Downloading $trackName', + body: '$artistName • $percentage%', + notificationDetails: details, ); } @@ -133,10 +133,10 @@ class NotificationService { ); await _notifications.show( - downloadProgressId, - 'Finalizing $trackName', - '$artistName • Embedding metadata...', - details, + id: downloadProgressId, + title: 'Finalizing $trackName', + body: '$artistName • Embedding metadata...', + notificationDetails: details, ); } @@ -183,10 +183,10 @@ class NotificationService { ); await _notifications.show( - downloadProgressId, - title, - '$trackName - $artistName', - details, + id: downloadProgressId, + title: title, + body: '$trackName - $artistName', + notificationDetails: details, ); } @@ -223,15 +223,15 @@ class NotificationService { ); await _notifications.show( - downloadProgressId, - title, - '$completedCount tracks downloaded successfully', - details, + id: downloadProgressId, + title: title, + body: '$completedCount tracks downloaded successfully', + notificationDetails: details, ); } Future cancelDownloadNotification() async { - await _notifications.cancel(downloadProgressId); + await _notifications.cancel(id: downloadProgressId); } Future showUpdateDownloadProgress({ @@ -274,10 +274,10 @@ class NotificationService { ); await _notifications.show( - updateDownloadId, - 'Downloading SpotiFLAC v$version', - '$receivedMB / $totalMB MB • $percentage%', - details, + id: updateDownloadId, + title: 'Downloading SpotiFLAC v$version', + body: '$receivedMB / $totalMB MB • $percentage%', + notificationDetails: details, ); } @@ -307,10 +307,10 @@ class NotificationService { ); await _notifications.show( - updateDownloadId, - 'Update Ready', - 'SpotiFLAC v$version downloaded. Tap to install.', - details, + id: updateDownloadId, + title: 'Update Ready', + body: 'SpotiFLAC v$version downloaded. Tap to install.', + notificationDetails: details, ); } @@ -339,14 +339,14 @@ class NotificationService { ); await _notifications.show( - updateDownloadId, - 'Update Failed', - 'Could not download update. Try again later.', - details, + id: updateDownloadId, + title: 'Update Failed', + body: 'Could not download update. Try again later.', + notificationDetails: details, ); } Future cancelUpdateNotification() async { - await _notifications.cancel(updateDownloadId); + await _notifications.cancel(id: updateDownloadId); } }