v2.0.3: Custom Spotify credentials, rate limit UI, search fixes

This commit is contained in:
zarzet
2026-01-03 23:56:03 +07:00
parent 794486a200
commit 85bb67da47
17 changed files with 594 additions and 44 deletions
@@ -200,6 +200,14 @@ class MainActivity: FlutterActivity() {
"isDownloadServiceRunning" -> {
result.success(DownloadService.isServiceRunning())
}
"setSpotifyCredentials" -> {
val clientId = call.argument<String>("client_id") ?: ""
val clientSecret = call.argument<String>("client_secret") ?: ""
withContext(Dispatchers.IO) {
Gobackend.setSpotifyAPICredentials(clientId, clientSecret)
}
result.success(null)
}
else -> result.notImplemented()
}
} catch (e: Exception) {