Setup

This library is distributed via maven central.

Add dependencies like following to use this library inside your project.

Simply add the dependencies inside your build.gradle.kts file.

build.gradle.kts
val composethemer = "<LATEST-VERSION>"

// core
implementation("io.github.mflisar.composethemer:core:$composethemer")

// Modules
implementation("io.github.mflisar.composethemer:modules-picker:$composethemer")
implementation("io.github.mflisar.composethemer:modules-defaultpicker:$composethemer")

// Themes
implementation("io.github.mflisar.composethemer:themes-flatui:$composethemer")
implementation("io.github.mflisar.composethemer:themes-material500:$composethemer")
implementation("io.github.mflisar.composethemer:themes-metro:$composethemer")

Define the dependencies inside your libs.versions.toml file.

libs.versions.toml
[versions]

composethemer = "<LATEST-VERSION>"

[libraries]

# core
composethemer-core = { module = "io.github.mflisar.composethemer:core", version.ref = "composethemer" }

# Modules
composethemer-modules-picker = { module = "io.github.mflisar.composethemer:modules-picker", version.ref = "composethemer" }
composethemer-modules-defaultpicker = { module = "io.github.mflisar.composethemer:modules-defaultpicker", version.ref = "composethemer" }

# Themes
composethemer-themes-flatui = { module = "io.github.mflisar.composethemer:themes-flatui", version.ref = "composethemer" }
composethemer-themes-material500 = { module = "io.github.mflisar.composethemer:themes-material500", version.ref = "composethemer" }
composethemer-themes-metro = { module = "io.github.mflisar.composethemer:themes-metro", version.ref = "composethemer" }

And then use the definitions in your projects like following:

build.gradle.kts
# core
implementation(libs.composethemer.core)

# Modules
implementation(libs.composethemer.modules.picker)
implementation(libs.composethemer.modules.defaultpicker)

# Themes
implementation(libs.composethemer.themes.flatui)
implementation(libs.composethemer.themes.material500)
implementation(libs.composethemer.themes.metro)