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

[Enhancement] More customization capabilities for resource generators plugins #4228

Closed
xinzhengzhang opened this issue Feb 4, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request resources

Comments

@xinzhengzhang
Copy link

Currently composed resource generators do not have customization capabilities(https://github.com/JetBrains/compose-multiplatform/blob/master/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesGenerator.kt), e.g. Res is internal level. Generation strategies for drawable density.

Is it possible to add some options such as at least one to turn off the autogeneration of res?


Another appeal:

I am using Bazel to organize kmm projects, now because this tool is in the gradle plugin I need to strip it out to adapt to Bazel Is it possible to export a standalone cli tool like aapt for the Res source code generation?

Versions

  • Kotlin version*: 1.9.20
  • Compose Multiplatform version*: 1.6.0-beta01
@xinzhengzhang xinzhengzhang added bug Something isn't working submitted labels Feb 4, 2024
@mazunin-v-jb mazunin-v-jb added question Not a bug, but question or comment and removed bug Something isn't working submitted labels Feb 4, 2024
@mazunin-v-jb mazunin-v-jb added enhancement New feature or request resources and removed question Not a bug, but question or comment labels Feb 4, 2024
@asapha
Copy link

asapha commented Feb 5, 2024

(Related to #4193)

Right now, it's internal, which makes it not accessible by other modules.

yes. it is the current design decision. module's resources are isolated from each other. if you want to provide it outside you >are suppose to declare explicit API in the module.

@mipastgt
Copy link

mipastgt commented Feb 9, 2024

Another nice customization would be the possibility to set the root package name.

@terrakok
Copy link
Collaborator

Fixed by #4482

@okushnikov
Copy link

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
enhancement New feature or request resources
Projects
None yet
Development

No branches or pull requests

6 participants