🦉 Prefero
Prefero is a modern, type-safe preferences library for Kotlin Multiplatform, built on top of AndroidX DataStore.

⚡ 2-Minute Quick Start
1. Add Dependencies
dependencies {
implementation("dev.teogor.prefero:prefero-core:1.0.0-alpha02")
ksp("dev.teogor.prefero:prefero-processor:1.0.0-alpha02")
}
2. Define your Schema
Simply annotate your @Serializable data class. Prefero handles the rest.
@PreferoSchema
@Serializable
data class AppSettings(
val theme: String = "light",
@Encrypted val apiToken: String = ""
)
3. Access Preferences
Prefero generates type-safe accessors, mapping your data class to DataStore keys automatically.
val settings = AppSettingsStore(dataStore)
val currentTheme = settings.themeFlow.first()
settings.setTheme("dark")
🦉 Core Capabilities
📖 Deep-Dive Documentation
Explore our structured guides for production setups:
License
Prefero is released under the MIT License.
Made with ♥ by @teogor