Bump Android a 2.0.6 e corregge la compilazione termica.

Alza versionCode a 27 per il test chiuso Play Console e sistema
l'etichetta Kotlin invalida in ThermalStateManager.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-26 15:02:35 +02:00
co-authored by Cursor
parent ea5da1eb86
commit 97d787f758
2 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ android {
applicationId = "com.matchlivetv.match_live_tv" applicationId = "com.matchlivetv.match_live_tv"
minSdk = 24 minSdk = 24
targetSdk = 36 targetSdk = 36
versionCode = 26 versionCode = 27
versionName = "2.0.5-native" versionName = "2.0.6-native"
val apiBaseUrl = project.findProperty("API_BASE_URL") as String? val apiBaseUrl = project.findProperty("API_BASE_URL") as String?
?: "https://www.matchlivetv.it" ?: "https://www.matchlivetv.it"
@@ -40,12 +40,13 @@ class ThermalStateManager(
fun start() { fun start() {
monitor.onStateChanged = { next -> monitor.onStateChanged = { next ->
val previous = _state.value val previous = _state.value
if (next == previous) return@onStateChanged if (next != previous) {
Log.i(TAG, "[Thermal] $previous$next") Log.i(TAG, "[Thermal] $previous$next")
_state.value = next _state.value = next
_noticeMessage.value = userNotice(next, previous) _noticeMessage.value = userNotice(next, previous)
applyAdaptation(next, force = false) applyAdaptation(next, force = false)
updateCriticalWatch(next) updateCriticalWatch(next)
}
} }
monitor.start() monitor.start()
_state.value = monitor.currentState _state.value = monitor.currentState