Hi. I am using compose-resources to share resource...
# multiplatform
a
Hi. I am using compose-resources to share resources between platforms, the issue is that when I am generating XCFramework the compose-resources folder is not creating inside .xcframework, however, it is generating inside of the .aar while building for android. is this issue resolved in latest releases?
t
There are a few ways to resolve it. I guess you use multi module setup. Officially the resource are supported in monolithic project. If this is the case and you have monolitic project then go through the setup guide. For multiple modules you can go around this by need including resources. one way is to use gradle and simply include them in the src of the module consumed in your xcode. Another way would be to use a simple class with your own names and have it reference to the resource ids. object SomeClass { val someValue = StringRes … etc } And in the view simply call SomeClass.someValue Again assuming you have common compose code
a
I am working on KMP library that is sharing files in commonResouces. Now, I want that these resources should bundle up in a generated XCFramework. Currently I'm adding resources directly in my ios project by creating compose-resources folder, so, it's working fine but this is not a viable solution, also I have also tried to first generated the XCFramework unbundle it --> Add resources --> Rebundle it, But then Apple Store not signing my app.