You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In order to use compose resources you have to depend on the resources package in your gradle dependencies
implementation(compose.components.resources)
If I want to expose compose resources type to the android or iOS app, I would use api instead but using api(compose.components.resources) doesn't generate the Res object or any resource accessor.
Affected platforms
Desktop (Windows, Linux, macOS)
iOS
Web (K/Wasm) - Canvas based API
Web (K/JS) - Canvas based API
Web (K/JS) - HTML library
Versions
Kotlin version*: 1.9.21
Compose Multiplatform version*: 1.6.0
OS version(s)* (required for Desktop and iOS issues): N/A
OS architecture (x86 or arm64): N/A
Device (model or simulator for iOS issues): N/A
JDK (for desktop issues): N/A
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Use any compose sample project
Replace implementation(compose.components.resources) with api(compose.components.resources)
See error in compilation
Expected behavior Res object and resource accessors are generated
The text was updated successfully, but these errors were encountered:
Describe the bug
In order to use compose resources you have to depend on the resources package in your gradle dependencies
implementation(compose.components.resources)
If I want to expose compose resources type to the android or iOS app, I would use
api
instead but usingapi(compose.components.resources)
doesn't generate theRes
object or any resource accessor.Affected platforms
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
implementation(compose.components.resources)
withapi(compose.components.resources)
Expected behavior
Res
object and resource accessors are generatedThe text was updated successfully, but these errors were encountered: