Skip to content

Installation

braccato-kotlin is four Kotlin Multiplatform modules on Maven Central, for the desktop JVM and Android.

Most apps need the Compose views and the parsers. The other two modules come along with them.

build.gradle.kts
kotlin {
sourceSets {
commonMain.dependencies {
implementation("dev.kiyoshi:braccato-compose:0.1.0")
implementation("dev.kiyoshi:braccato-parsers:0.1.0")
}
}
}

In a plain JVM or Android module, the same two lines go into dependencies { }.

An app that draws lyrics itself, without Compose, takes braccato-core instead of braccato-compose. See Custom Renderers.

  • Kotlin 2.4 and Compose Multiplatform 1.12
  • The desktop JVM: Java 17 or newer at run time
  • Android: minSdk 26, and compileSdk 37 as Compose 1.12 asks for

To work on braccato-kotlin from another Gradle build, include it there. Gradle then builds it along and takes it in place of the published modules:

settings.gradle.kts
includeBuild("../braccato-kotlin")
build.gradle.kts
implementation("dev.kiyoshi:braccato-compose")
implementation("dev.kiyoshi:braccato-parsers")