Multiplatform color
Charts can be configured via Gradle Kotlin DSL as follows:
plugins {
id("com.android.application") // or id("com.android.library")
kotlin("multiplatform")
}
repositories {
mavenCentral()
}
kotlin {
androidTarget()
jvm()
sourceSets {
val commonMain by getting {
dependencies {
implementation("com.juul.krayon:color:$version")
}
}
}
}
android {
// ...
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.juul.krayon:color-$platform:$version")
}
Where $platform
represents (should be replaced with) the desired platform dependency (e.g. jvm
).