Migrate KMP to swift module export

This commit is contained in:
2025-10-21 11:47:47 -03:00
parent 13babb6193
commit 76db29ae77
4 changed files with 16 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.swiftexport.ExperimentalSwiftExportDsl
plugins {
alias(libs.plugins.androidApplication)
@@ -24,6 +25,17 @@ kotlin {
}
}
@OptIn(ExperimentalSwiftExportDsl::class)
swiftExport {
moduleName = "ComposeApp"
flattenPackage = "dev.carlosmartino.template"
export(project(":features:common")) {
moduleName = "CommonFeature"
flattenPackage = "dev.carlosmartino.template.common"
}
}
sourceSets {
androidMain.dependencies {
implementation(compose.preview)