Kotose Utils KMP
Kotlin Multiplatform utilities for Compose Multiplatform (Android + iOS).
Modules
Installation
implementation("io.github.robinpcrd:kotose-resources:<VERSION>")
implementation("io.github.robinpcrd:kotose-core:<VERSION>")
Platforms
- Android SDK 24+
- iOS arm64, x64, simulatorArm64
Quick Start
KotoseUtils.setup {
androidContext(context)
stringResourceResolver { key -> Res.allStringResources[key] }
pluralStringResourceResolver { key -> Res.allPluralStringResources[key] }
}
val text = "Hello".toStrRes()
val compose = Res.string.app_name.toStrRes()
val android = R.string.greeting.toStrRes()
@Composable
{
Text(strRes.getStringOrEmpty())
}
See module READMEs for detailed usage.
Contributing
See CONTRIBUTING.md for build, test, and contribution guidelines.
License
Copyright 2025-present Robin PICARD and contributors.
Licensed under the Apache License, Version 2.0.
Originally created at PandaLab.