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-defaultpicker:$composethemer")
implementation("io.github.mflisar.composethemer:modules-picker:$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-defaultpicker = { module = "io.github.mflisar.composethemer:modules-defaultpicker", version.ref = "composethemer" }
composethemer-modules-picker = { module = "io.github.mflisar.composethemer:modules-picker", 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.defaultpicker)
implementation(libs.composethemer.modules.picker)
# themes
implementation(libs.composethemer.themes.flatui)
implementation(libs.composethemer.themes.material500)
implementation(libs.composethemer.themes.metro)