mirror of
https://github.com/Michatec/Radio.git
synced 2026-05-31 00:42:40 +02:00
7d6b0fe136
- Implement `seekToNext` and `seekToPrevious` in `PlayerService` to allow switching between radio stations. - Update `compileSdk` and `targetSdk` to 37 and bump version to 14.6. - Modify `PlayerService` to remain active while paused to improve playback resumption. - Modernize media resumption logic using Media3 `isRecent` check instead of legacy extras. - Refactor `DefaultRenderersFactory` to use non-nullable `AudioSink` return types. - General code cleanup using KTX extensions (e.g., `View.isEmpty()`) and Kotlin property access syntax.
81 lines
2.1 KiB
Kotlin
81 lines
2.1 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
id("kotlin-parcelize")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.michatec.radio"
|
|
compileSdk = 37
|
|
|
|
defaultConfig {
|
|
applicationId = "com.michatec.radio"
|
|
minSdk = 28
|
|
targetSdk = 37
|
|
versionCode = 146
|
|
versionName = "14.6"
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
isMinifyEnabled = false
|
|
isShrinkResources = false
|
|
isCrunchPngs = false
|
|
proguardFiles.addAll(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), file("proguard-rules.pro")))
|
|
applicationIdSuffix = ".debug"
|
|
}
|
|
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
isCrunchPngs = true
|
|
proguardFiles.addAll(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), file("proguard-rules.pro")))
|
|
}
|
|
}
|
|
|
|
ndkVersion = "29.0.14206865"
|
|
|
|
externalNativeBuild {
|
|
cmake {
|
|
path = file("src/main/cpp/CMakeLists.txt")
|
|
version = "3.22.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Google Stuff //
|
|
implementation(libs.material)
|
|
implementation(libs.gson)
|
|
implementation(libs.play.services.cast.framework)
|
|
|
|
// 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.cast)
|
|
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)
|
|
} |