Skip to content

Latest commit

 

History

History

color

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

badge-android badge-jvm

Color

Multiplatform color

Setup

Gradle

Maven Central

Charts can be configured via Gradle Kotlin DSL as follows:

Multiplatform

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 {
    // ...
}

Platform-specific

repositories {
    mavenCentral()
}

dependencies {
    implementation("com.juul.krayon:color-$platform:$version")
}

Where $platform represents (should be replaced with) the desired platform dependency (e.g. jvm).