mirror of
https://github.com/JakeWharton/mosaic.git
synced 2025-10-30 10:18:49 +08:00
45 lines
1.1 KiB
Groovy
45 lines
1.1 KiB
Groovy
apply plugin: 'org.jetbrains.kotlin.multiplatform'
|
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
apply from: "$rootDir/addAllTargets.gradle"
|
|
apply from: "$rootDir/publish.gradle"
|
|
apply plugin: 'dev.drewhamilton.poko'
|
|
apply plugin: 'com.jakewharton.mosaic.build'
|
|
|
|
mosaicBuild {
|
|
patchJavaModuleWithKotlinClasses('mosaic.runtime')
|
|
}
|
|
|
|
kotlin {
|
|
explicitApi()
|
|
|
|
sourceSets {
|
|
configureEach {
|
|
languageSettings.optIn('kotlinx.cinterop.ExperimentalForeignApi')
|
|
}
|
|
|
|
commonMain {
|
|
dependencies {
|
|
api libs.androidx.compose.runtime
|
|
api libs.androidx.lifecycle.compose
|
|
api libs.kotlinx.coroutines.core
|
|
api projects.mosaicTerminal
|
|
implementation projects.mosaicTtyTerminal
|
|
implementation libs.androidx.collection
|
|
implementation libs.codepoints
|
|
}
|
|
}
|
|
commonTest {
|
|
dependencies {
|
|
implementation projects.mosaicTesting
|
|
implementation libs.kotlin.test
|
|
implementation libs.kotlinx.coroutines.test
|
|
implementation libs.assertk
|
|
}
|
|
}
|
|
}
|
|
|
|
compilerOptions.freeCompilerArgs.add('-Xexpect-actual-classes')
|
|
compilerOptions.freeCompilerArgs.add('-Xnon-local-break-continue')
|
|
compilerOptions.freeCompilerArgs.add('-Xwhen-guards')
|
|
}
|