mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-08-09 00:17:35 +00:00
Introduce an expect/actual TvHeroRow rendered as the first row of the TV home. The Android actual uses the androidx.tv Carousel with a backdrop, scrim, and title; iOS gets a no-op since it never renders the TV screens. Wire the shared androidx.tv dependencies into the shared module's Android source set.
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
|
|
|
|
plugins {
|
|
alias(libs.plugins.fluxa.kmp.compose)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.fluxa.app.shared"
|
|
}
|
|
|
|
kotlin {
|
|
targets
|
|
.withType<KotlinNativeTarget>()
|
|
.matching { it.name.startsWith("ios") }
|
|
.configureEach {
|
|
binaries.framework {
|
|
baseName = "FluxaShared"
|
|
isStatic = true
|
|
export(project(":core"))
|
|
export(project(":data"))
|
|
export(project(":player"))
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
commonMain.dependencies {
|
|
api(project(":core"))
|
|
api(project(":data"))
|
|
api(project(":player"))
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
implementation(libs.kotlinx.datetime)
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(libs.coil3)
|
|
implementation(libs.coil3.compose)
|
|
implementation(libs.haze)
|
|
}
|
|
androidMain.dependencies {
|
|
implementation(libs.coil3.network.okhttp)
|
|
implementation(libs.androidx.tv.foundation)
|
|
implementation(libs.androidx.tv.material)
|
|
}
|
|
commonTest.dependencies {
|
|
implementation(kotlin("test"))
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
}
|
|
}
|
|
}
|