Last active
February 1, 2021 10:39
-
-
Save micHar/24ea329cc490f9f089c7d03ebeca6cc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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