Skip to content

Instantly share code, notes, and snippets.

@micHar
Last active February 1, 2021 10:39
Show Gist options
  • Save micHar/24ea329cc490f9f089c7d03ebeca6cc1 to your computer and use it in GitHub Desktop.
Save micHar/24ea329cc490f9f089c7d03ebeca6cc1 to your computer and use it in GitHub Desktop.
plugins {
kotlin("multiplatform")
id("com.android.library")
kotlin("kapt")
}
kotlin {
//...
sourceSets {
val coroutineVersion = "1.4.2-native-mt"
val koruVersion = "0.3.2"
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion") {
version { strictly(coroutineVersion) }
}
implementation("org.koin:koin-core:3.0.0-alpha-4")
implementation("com.futuremind:koru:$koruVersion")
configurations.get("kapt").dependencies.add(
org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency(
"com.futuremind", "koru-processor", koruVersion
)
)
}
}
val iosMain by getting {
kotlin.srcDir("${buildDir.absolutePath}/generated/source/kaptKotlin/")
}
}
}
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment