compose-resources
Installation
SKILL.md
Compose Multiplatform Resources
Overview
Shared images, strings, fonts, and files for Compose Multiplatform live in a composeResources/ directory. The Gradle plugin scans it and generates a type-safe Res object (Res.drawable.*, Res.string.*, Res.font.*) usable from commonMain. Requires Kotlin 2.0+ and Compose Multiplatform 1.6+ (1.6.10+ to include resources in published artifacts).
When to use
- Adding drawables/strings/fonts/files to shared CMP UI
Res.drawable/Res.stringnot resolving- Per-locale, per-theme, or per-density resource variants
- Loading raw files across platforms (
Res.readBytes)