readest/apps/readest-app/src-tauri/plugins/tauri-plugin-native-tts/android
Huang Xin ff962a1f02
fix(android): auto-shutdown native TTS engine after 30 min idle to save battery (#3728)
When the Android native TTS engine is paused or stopped but not shut down,
it holds resources and drains battery. This adds a 30-minute idle timer that
automatically shuts down the TextToSpeech engine and MediaPlaybackService
after inactivity. The engine transparently re-initializes on next use.

Also adds missing androidx.lifecycle:lifecycle-process dependency to fix
ProcessLifecycleOwner build error.

Closes #3713

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 20:00:21 +02:00
..
src fix(android): auto-shutdown native TTS engine after 30 min idle to save battery (#3728) 2026-04-02 20:00:21 +02:00
.gitignore tts: add native tts plugin for Android (#1376) 2025-06-09 16:54:12 +02:00
build.gradle.kts tts: improve media session control compatibility across more Android systems (#2185) 2025-10-09 17:53:07 +02:00
proguard-rules.pro tts: add native tts plugin for Android (#1376) 2025-06-09 16:54:12 +02:00
settings.gradle tts: add native tts plugin for Android (#1376) 2025-06-09 16:54:12 +02:00