diff --git a/README.md b/README.md index 8bce6148..55b2ae24 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Authority*](https://www.androidauthority.com/best-new-android-apps-october-2025- productive - Customizable timer parameters - Support for Now Bar/Live Updates on Android 16 and later +- Android TV support with Leanback Launcher integration ## Translation diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 2199875b..5bab7d82 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -126,6 +126,9 @@ dependencies { implementation(libs.androidx.room.ktx) ksp(libs.androidx.room.compiler) + // Android TV support + implementation(libs.androidx.leanback) + "playImplementation"(libs.revenuecat.purchases) "playImplementation"(libs.revenuecat.purchases.ui) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 62a7ee8c..97b24475 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -25,6 +25,14 @@ + + + + + android:theme="@style/Theme.Tomato" + android:banner="@drawable/tv_banner"> + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4361af8b..5f515e73 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -9,6 +9,7 @@ junit = "4.13.2" junitVersion = "1.3.0" kotlin = "2.2.21" ksp = "2.3.3" +leanback = "1.2.0-alpha04" lifecycleRuntimeKtx = "2.10.0" materialKolor = "4.0.5" navigation3 = "1.0.0" @@ -23,6 +24,7 @@ androidx-compose-bom = { group = "androidx.compose", name = "compose-bom-alpha", androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" } androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" } +androidx-leanback = { group = "androidx.leanback", name = "leanback", version.ref = "leanback" } androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" } androidx-lifecycle-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmodel", version.ref = "lifecycleRuntimeKtx" } androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycleRuntimeKtx" }