fluxa/shared/build.gradle.kts
KhooLy 437b6d5754 Add a TV hero carousel to the catalog home
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.
2026-07-21 14:50:37 +03:00

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)
}
}
}