mirror of
https://github.com/Michatec/Radio.git
synced 2026-04-01 07:56:27 +02:00
* Implement initial Android TV support, including `LEANBACK_LAUNCHER` intent filter, hardware feature declarations, and television-specific layouts for the player, search results, and dialogs. * Add a splash/loading screen for the TV interface and a dedicated `SplashTheme`. * Improve DPAD navigation by adding `OnKeyListener` for station cards and allowing focus on internal elements. * Update `LayoutHolder` and `PlayerFragment` to handle TV layouts and add previous/next station navigation buttons. * Adjust `PreferencesHelper` to disable station editing by default on TV devices. * Update `androidx.media3` to v1.10.0, `work-runtime-ktx` to v2.11.2, and add `androidx.leanback` dependency. * Bump `versionCode` to 144 and `versionName` to 14.4. * Refactor `PlayerService` to simplify sleep timer cancellation logic. * Remove stale copyright headers and license comments from several Kotlin files.
82 lines
2.1 KiB
Groovy
82 lines
2.1 KiB
Groovy
plugins {
|
|
alias libs.plugins.android.application
|
|
id 'kotlin-parcelize'
|
|
}
|
|
|
|
androidComponents {
|
|
onVariants(selector().all()) { variant ->
|
|
variant.outputs.forEach { output ->
|
|
output.outputFileName.set("Radio.apk")
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace 'com.michatec.radio'
|
|
compileSdk 36
|
|
|
|
defaultConfig {
|
|
applicationId 'com.michatec.radio'
|
|
minSdk 28
|
|
targetSdk 36
|
|
versionCode 144
|
|
versionName '14.4'
|
|
resourceConfigurations += ['en', 'de', 'el', 'nl', 'pl', 'ru','uk', 'ja', 'da', 'fr']
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig true
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
minifyEnabled false
|
|
shrinkResources false
|
|
crunchPngs false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
applicationIdSuffix = ".debug"
|
|
}
|
|
|
|
release {
|
|
minifyEnabled true
|
|
shrinkResources true
|
|
crunchPngs true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// Google Stuff //
|
|
implementation libs.material
|
|
implementation libs.gson
|
|
|
|
// AndroidX Stuff //
|
|
implementation libs.core.ktx
|
|
implementation libs.activity.ktx
|
|
implementation libs.palette.ktx
|
|
implementation libs.preference.ktx
|
|
implementation libs.media
|
|
implementation libs.media3.exoplayer
|
|
implementation libs.media3.exoplayer.hls
|
|
implementation libs.media3.session
|
|
implementation libs.media3.datasource.okhttp
|
|
implementation libs.navigation.fragment.ktx
|
|
implementation libs.navigation.ui.ktx
|
|
implementation libs.work.runtime.ktx
|
|
implementation libs.leanback
|
|
|
|
implementation libs.freedroidwarn
|
|
|
|
// Volley HTTP request //
|
|
implementation libs.volley
|
|
implementation libs.material3
|
|
}
|