How do I write to file in ios or tvos tests? Is it...
# kotlin-native
b
How do I write to file in ios or tvos tests? Is it even possible? Would posix APIs for that still work like on macos target?
writing should be relatively similar
b
Sweet, I needed reads too. Thanks!
👍 1
m
It's relatively crude (allocates everything in RAM, assumes utf8) but for tests, it's been serving us well so far
b
Any particular reason why it's in appleMain rather than unixMain or smth? Are there any gotchas when compared to linux?
m
Nah, it's just me being lazy 🙂
And HMPP not being enabled yet too
b
Great, I'll see if my linux implementation works and report back.
m
We have only 2 kind of targets, apple and jvm. Once HMPP is enabled, we'll look into adding linux/windows, etc... Then we'll start factoring in this code