plugins { alias(libs.plugins.kotlin.multiplatform) alias(libs.plugins.android.library) alias(libs.plugins.compose) } @OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class) kotlin { applyDefaultHierarchyTemplate() androidTarget { compilations.all { kotlinOptions { jvmTarget = "1.8" } } } listOf( iosX64(), iosArm64(), iosSimulatorArm64() ).forEach { it.binaries.framework { baseName = "detailopener-impl" } } sourceSets { val androidMain by getting { dependencies { implementation(libs.coil.compose) } } val commonMain by getting { dependencies { implementation(compose.runtime) implementation(compose.foundation) implementation(compose.material) implementation(compose.material3) @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) implementation(compose.components.resources) implementation(libs.voyager.navigator) implementation(projects.core.navigation) implementation(projects.core.commonui.detailopenerApi) implementation(projects.unit.postdetail) implementation(projects.unit.communitydetail) implementation(projects.unit.userdetail) implementation(projects.domain.lemmy.data) implementation(projects.resources) } } val commonTest by getting { dependencies { implementation(kotlin("test")) } } } } android { namespace = "com.github.diegoberaldin.raccoonforlemmy.core.commonui.detailopener.impl" compileSdk = libs.versions.android.targetSdk.get().toInt() defaultConfig { minSdk = libs.versions.android.minSdk.get().toInt() } }