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 composepreferences = "<LATEST-VERSION>"

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

// modules
implementation("io.github.mflisar.composepreferences:screen-bool:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-button:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-color:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-date:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-input:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-list:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-number:$composepreferences")
implementation("io.github.mflisar.composepreferences:screen-time:$composepreferences")

// extensions
implementation("io.github.mflisar.composepreferences:kotpreferences:$composepreferences")

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

libs.versions.toml
[versions]

composepreferences = "<LATEST-VERSION>"

[libraries]

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

# modules
composepreferences-screen-bool = { module = "io.github.mflisar.composepreferences:screen-bool", version.ref = "composepreferences" }
composepreferences-screen-button = { module = "io.github.mflisar.composepreferences:screen-button", version.ref = "composepreferences" }
composepreferences-screen-color = { module = "io.github.mflisar.composepreferences:screen-color", version.ref = "composepreferences" }
composepreferences-screen-date = { module = "io.github.mflisar.composepreferences:screen-date", version.ref = "composepreferences" }
composepreferences-screen-input = { module = "io.github.mflisar.composepreferences:screen-input", version.ref = "composepreferences" }
composepreferences-screen-list = { module = "io.github.mflisar.composepreferences:screen-list", version.ref = "composepreferences" }
composepreferences-screen-number = { module = "io.github.mflisar.composepreferences:screen-number", version.ref = "composepreferences" }
composepreferences-screen-time = { module = "io.github.mflisar.composepreferences:screen-time", version.ref = "composepreferences" }

# extensions
composepreferences-kotpreferences = { module = "io.github.mflisar.composepreferences:kotpreferences", version.ref = "composepreferences" }

And then use the definitions in your projects like following:

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

# modules
implementation(libs.composepreferences.screen.bool)
implementation(libs.composepreferences.screen.button)
implementation(libs.composepreferences.screen.color)
implementation(libs.composepreferences.screen.date)
implementation(libs.composepreferences.screen.input)
implementation(libs.composepreferences.screen.list)
implementation(libs.composepreferences.screen.number)
implementation(libs.composepreferences.screen.time)

# extensions
implementation(libs.composepreferences.kotpreferences)