Migrate KMP to swift module export
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user