JoakimForslund
04/01/2019, 12:20 PMimage = UIImage.imageNamed("image/$file.png");
from iOS target?
My current idea is using base64 and storing it common code but it would be pretty sweet if the resources-folder could be used in my static libraryr4zzz4k
04/01/2019, 12:57 PMImmutableBlob
, which is particularly useful for accessing non-modifiable binary data, but the only way to create them is corresponding factory function:
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/immutable-blob-of.html
AFAIK, there's nothing ready-made which can take your resources and represent them as blobs, but writing Gradle task converting files into Kotlin source code calling immutableBlobOf
should be fairly straightforward.gildor
04/01/2019, 1:03 PMr4zzz4k
04/01/2019, 1:04 PMgildor
04/01/2019, 1:10 PMJoakimForslund
04/01/2019, 2:27 PM