![]() ![]() Also, if you are looking to share resources across multiplaform tests for your shared library this blog post by Victoria has a really nice solution that I used for my testing setup. While researching for this post, I found the moko-resources library but it is way to opinionated for my use case and it does much more than I needed. With the resources always in the same folder (with the small caveat of having to manually add new files in Xcode) you will have an easier time managing them and making them work for you across both platforms. To read the files, call ResourceReader().readResource("timezones.json") and you will get a string with the contents of the file. In this first video of this KMM playlist, I'll show you how you can setup KMM to work on your machine. SPM support was initially only available via an (admittedly good) third-party plugin although better XCFramework generation came to KMM natively soon after. These implementations are from the DroidconKotlin repo, which I recommend you take a look at because it has a lot of cool solutions for common KMM problems. KMM allows you to specify dependencies for iOS using CocoaPods but it can only be used for internal dependencies, not for exporting your own project as a pod dependency. ![]()
0 Comments
Leave a Reply. |