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
15.59k stars 1.14k forks source link

Exporting resources via xcframework or maven in multiplatform library #4643

Closed Prajwal-jm25 closed 3 months ago

Prajwal-jm25 commented 3 months ago

Compose Multiplatform has supported Images and resources sharing across different platforms. Since KMP is used by various people to develop a multiplatform library or feature which can be integrated to native platforms, it would be helpful if we are able to export the resources via the framework so that we can have a common UI with resources for multiplatform. I am not sure whether the above requirement is already supported by the KMP library, if it is guide me on how it works

terrakok commented 3 months ago

The build of XCFramework is not supported. Resources are only packed into a final iOS application. There is no a common approach for the resource sharing in the Native world. Usually it is done by package managers such as Cocoapods or SPM. Something can be done on the Kotlin gradle plugin side. You may file an issue on https://kotl.in/issue

terrakok commented 1 month ago

https://youtrack.jetbrains.com/issue/KT-66790

okushnikov commented 2 weeks ago

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