75 lines
2.2 KiB
Kotlin
75 lines
2.2 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
id("org.jetbrains.kotlin.plugin.parcelize")
|
|
}
|
|
|
|
android {
|
|
namespace = "com.futbollibre.tv"
|
|
compileSdk = 35
|
|
buildToolsVersion = "36.1.0"
|
|
|
|
defaultConfig {
|
|
applicationId = "com.futbollibre.tv"
|
|
minSdk = 21
|
|
targetSdk = 34
|
|
versionCode = 3
|
|
versionName = "2.0"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
signingConfig = signingConfigs.getByName("debug")
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Android TV Leanback
|
|
implementation("androidx.leanback:leanback:1.0.0")
|
|
implementation("androidx.leanback:leanback-preference:1.0.0")
|
|
|
|
// ConstraintLayout
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
|
|
// ExoPlayer for HLS streaming
|
|
implementation("androidx.media3:media3-exoplayer:1.2.1")
|
|
implementation("androidx.media3:media3-datasource-okhttp:1.2.1")
|
|
implementation("androidx.media3:media3-exoplayer-dash:1.2.1")
|
|
implementation("androidx.media3:media3-exoplayer-hls:1.2.1")
|
|
implementation("androidx.media3:media3-ui:1.2.1")
|
|
|
|
// Coroutines
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
|
|
|
// Lifecycle
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0")
|
|
|
|
// OkHttp for HTTP requests
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
implementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.12.0")
|
|
|
|
// Jsoup for HTML parsing
|
|
implementation("org.jsoup:jsoup:1.17.2")
|
|
|
|
// Gson for JSON
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
|
|
// Coil for image loading
|
|
implementation("io.coil-kt:coil:2.5.0")
|
|
}
|