https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Jan Stoltman

07/28/2020, 7:57 AM
Hey, I would like to add a .txt file to my multiplatform (android & ios) library/framework to read some data from. Is there a way to add this file as an ios resource? I know that for android I can just add it to res/raw and it will work, but I'm kinda lost at ios side.
👍 3
m

Michal Harakal

07/28/2020, 4:07 PM
you can use existing library moko-resources https://github.com/icerockdev/moko-resources or implement it by yourself with lambdas like here https://github.com/touchlab/DroidconKotlin/blob/master/iosApp/iosApp/app/AppDelegate.swift#L33
👍 2
2 Views