JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.15k stars 1.17k forks source link

[Resources]Support multiple modules #4301

Closed hellomr3 closed 7 months ago

hellomr3 commented 8 months ago

Describe the problem Explain the performance issue you're experiencing, including the following details: if (typeString == "values" && file.name.equals("strings.xml", true)) { val stringIds = getStringIds(file) return stringIds.map { strId -> ResourceItem(ResourceType.STRING, qualifiers, strId.asUnderscoredIdentifier(), path) } } there force string named 'strings' limit multiple sub modules ,if all named "strings.xml" led to "mergeDebugJavaResource error".is there any optimization name rule,example end of "strings" to avoid this ?

Affected platforms Select one of the platforms below:

If the problem is Android-only, report it in the Jetpack Compose tracker

Versions

Sample code If possible, provide a small piece of code that reproduces the problem. If the code snippet is too large to paste here, please link to a Gist, a GitHub repo, or any other public code repository.

Reproduction steps Please provide a detailed step-by-step guide on how to reproduce the issue you are experiencing.

Video If you're reporting slow app work or missing frames, please provide a video of the problem.

Profiling data Please provide any relevant profiling data that might be helpful. This could include information like FPS, memory usage, CPU time, or any other data that could provide insight into the performance issue.

Additional information Provide any other details that you think might be helpful for us to understand the problem. This could include things like the system configuration, external factors, etc.

hellomr3 commented 8 months ago
image

Although this can avoid detection

MatkovIvan commented 7 months ago

Tracking multi-modules support request here: #4229

okushnikov commented 3 months ago

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