Installation
braccato-kotlin is four Kotlin Multiplatform modules on Maven Central, for the desktop JVM and Android.
Add the modules
Section titled “Add the modules”Most apps need the Compose views and the parsers. The other two modules come along with them.
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.
Requirements
Section titled “Requirements”- Kotlin 2.4 and Compose Multiplatform 1.12
- The desktop JVM: Java 17 or newer at run time
- Android:
minSdk 26, andcompileSdk 37as Compose 1.12 asks for
Working on a copy
Section titled “Working on a copy”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:
includeBuild("../braccato-kotlin")implementation("dev.kiyoshi:braccato-compose")implementation("dev.kiyoshi:braccato-parsers")
