Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Res object isn't generated when resources is imported via api DependencyHandler #4420

Closed
3 of 5 tasks
amrfarid140 opened this issue Mar 4, 2024 · 4 comments
Closed
3 of 5 tasks
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@amrfarid140
Copy link

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:

  1. Use any compose sample project
  2. Replace implementation(compose.components.resources) with api(compose.components.resources)
  3. See error in compilation

Expected behavior
Res object and resource accessors are generated

@amrfarid140 amrfarid140 added bug Something isn't working submitted labels Mar 4, 2024
@igordmn
Copy link
Collaborator

igordmn commented Mar 4, 2024

Also reported here: #4405

And fixed here: #4406

It will be included in 1.6.1

@igordmn igordmn closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
@igordmn igordmn added duplicate This issue or pull request already exists and removed submitted labels Mar 4, 2024
@bmc08gt
Copy link

bmc08gt commented Mar 5, 2024

Also reported here: #4405

And fixed here: #4406

It will be included in 1.6.1

Any timeline for 1.6.1?

@igordmn
Copy link
Collaborator

igordmn commented Mar 5, 2024

in 2 weeks

@okushnikov
Copy link
Collaborator

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants