compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

[Enhancement] More customization capabilities for resource generators plugins

Open xinzhengzhang opened this issue 1 year ago • 2 comments

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 avatar Feb 04 '24 04:02 xinzhengzhang

(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.

asapha avatar Feb 05 '24 18:02 asapha

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

mipastgt avatar Feb 09 '24 17:02 mipastgt

Fixed by https://github.com/JetBrains/compose-multiplatform/pull/4482

terrakok avatar May 10 '24 12:05 terrakok

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

okushnikov avatar Jul 14 '24 15:07 okushnikov