- Replace broken Compose focus system with state-based selectedButton approach - Add seek mode (DPAD_UP to enter, LEFT/RIGHT to seek, CENTER/DOWN to apply) - Make SubtitlePickerOverlay state-based (DPAD UP/DOWN navigate, CENTER select) - Fix 25 P0 crashes from 20-agent audit (SSRF, CancellationException, DTO defaults) - Fix UX issues: animations, padding, TvErrorDisplay, navigation, finishAffinity - Fix pause button: remove clickable, onKeyEvent only, repeatCount guard - Add subtitle extraction: OpenSubtitles EN/ES, HI filtering, dedup - Fix override accumulation: clearOverridesOfType before setting new tracks - Disable tunneling for subtitle compatibility - Performance: AutoHideHolder, @Immutable models, contentType - Fix SearchScreen focus visibility: animated scale, white border, dimming - Fix PlayerButton invisible text: white on HorrorGray bg - Fix isLoading stuck in Home/Detail/SearchViewModel - Fix VideoExtractor CancellationException rethrow, IMDB_ID_PATTERN 7+ digits
158 lines
5.0 KiB
Kotlin
158 lines
5.0 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("com.google.dagger.hilt.android")
|
|
id("kotlin-kapt")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.horrortv.app"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.horrortv.app"
|
|
minSdk = 21
|
|
targetSdk = 34
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
buildConfigField("String", "APP_NAME", "\"HorrorTV\"")
|
|
buildConfigField("String", "OMDB_API_KEY", "\"${project.findProperty("OMDB_API_KEY") ?: "5854c81e"}\"")
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file("release.keystore")
|
|
storePassword = System.getenv("HORRORTV_KEYSTORE_PASSWORD") ?: "placeholder"
|
|
keyAlias = System.getenv("HORRORTV_KEY_ALIAS") ?: "release"
|
|
keyPassword = System.getenv("HORRORTV_KEY_PASSWORD") ?: "placeholder"
|
|
}
|
|
getByName("debug") {
|
|
storeFile = file("debug.keystore")
|
|
storePassword = "android"
|
|
keyAlias = "androiddebugkey"
|
|
keyPassword = "android"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
debug {
|
|
isDebuggable = true
|
|
isMinifyEnabled = false
|
|
applicationIdSuffix = ".debug"
|
|
versionNameSuffix = "-debug"
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
}
|
|
release {
|
|
isDebuggable = false
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
flavorDimensions += "environment"
|
|
productFlavors {
|
|
create("dev") {
|
|
dimension = "environment"
|
|
applicationIdSuffix = ".dev"
|
|
versionNameSuffix = "-dev"
|
|
buildConfigField("boolean", "DEBUG_MODE", "true")
|
|
}
|
|
create("prod") {
|
|
dimension = "environment"
|
|
buildConfigField("boolean", "DEBUG_MODE", "false")
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
freeCompilerArgs += listOf(
|
|
"-opt-in=kotlin.RequiresOptIn",
|
|
"-Xjvm-default=all"
|
|
)
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
buildConfig = true
|
|
}
|
|
|
|
composeOptions {
|
|
kotlinCompilerExtensionVersion = "1.5.8"
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
excludes += "/META-INF/DEPENDENCIES"
|
|
excludes += "/META-INF/LICENSE"
|
|
excludes += "/META-INF/LICENSE.txt"
|
|
excludes += "/META-INF/NOTICE"
|
|
excludes += "/META-INF/NOTICE.txt"
|
|
}
|
|
}
|
|
|
|
lint {
|
|
abortOnError = false
|
|
checkReleaseBuilds = true
|
|
disable += "MissingTranslation"
|
|
disable += "ExtraTranslation"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
|
|
implementation(platform("androidx.compose:compose-bom:2024.10.01"))
|
|
implementation("androidx.compose.ui:ui")
|
|
implementation("androidx.compose.material3:material3")
|
|
implementation("androidx.compose.ui:ui-tooling-preview")
|
|
implementation("androidx.compose.foundation:foundation")
|
|
implementation("androidx.activity:activity-compose:1.8.2")
|
|
implementation("androidx.navigation:navigation-compose:2.7.6")
|
|
implementation("androidx.leanback:leanback:1.0.0")
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
|
|
|
|
implementation("io.coil-kt:coil-compose:2.5.0")
|
|
|
|
implementation("com.google.dagger:hilt-android:2.50")
|
|
kapt("com.google.dagger:hilt-android-compiler:2.50")
|
|
implementation("androidx.hilt:hilt-navigation-compose:1.2.0")
|
|
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
|
|
|
|
implementation("androidx.media3:media3-exoplayer:1.4.0")
|
|
implementation("androidx.media3:media3-exoplayer-hls:1.4.0")
|
|
implementation("androidx.media3:media3-ui:1.4.0")
|
|
implementation("androidx.media3:media3-common:1.4.0")
|
|
implementation("org.jsoup:jsoup:1.17.2")
|
|
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("io.mockk:mockk:1.13.9")
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
|
|
testImplementation("app.cash.turbine:turbine:1.0.0")
|
|
|
|
debugImplementation(platform("androidx.compose:compose-bom:2024.10.01"))
|
|
debugImplementation("androidx.compose.ui:ui-tooling")
|
|
debugImplementation("androidx.compose.ui:ui-test-manifest")
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes = true
|
|
} |