Hello :wave: I’m building an KMP Lib. I have asse...
# ios
j
Hello 👋 I’m building an KMP Lib. I have assets under
commonMain/resources/files/frontend
. How do I need to configure Gradle to bundle these assets in the XCFramework and access them via
NSBundle
? I know it must be possible somehow, because of the composeResources, which are getting correctly included. Here is my current access code:
val basePath = NSBundle.mainBundle.resourcePath + "/files/frontend/"
Every help is appreciated 🙂
f
j
Thanks for the tip! 🙏 Unfortunately, Moko isn't a fit for my use case since I also need to support the
mingw
target, which it currently doesn't support. Do you happen to know how Moko handles this on iOS? Maybe I could extract or replicate just that part. Alternatively, are there any insights on how this is handled in Compose Resources?