-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add the possibility to make the generated Res class public #4193
Comments
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. |
Konstantin I'm so grateful for your answer! I finally got how to get my resources from my compose ui design system library in my applications! But I have a question - why that design decision was made? I want to extract my compose elements to separate library and reuse it in several applications. May be I'm doing something wrong? |
@terrakok sorry, I tagged you to attract your attention to my question:)) |
https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html
Currently, there are some limitations in underlying things that block us from doing this. We're working with Kotlin and other teams to make this happen. |
Ivan thank you a lot! Will wait quietly:)) |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Right now, it's internal, which makes it not accessible by other modules.
Taking the
:resources:demo
project as an example, the app's name needs to be duplicated inshared/src/commonMain/composeResources/values/strings.xml
,desktopApp/src/jvmMain/kotlin/Main.kt
and
androidApp/src/main/res/values/strings.xml
It could be parameterized like in moko-resources
cf.
compose-multiplatform/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/resources/ResourcesSpec.kt
Lines 104 to 106 in 2e354eb
The text was updated successfully, but these errors were encountered: