Is there an `appleMain` API that can detect whethe...
# kotlin-native
m
Is there an
appleMain
API that can detect whether the code is running on MacOS vs iOS vs watchOS, etc... ?
j
You could have an enum and an expect val platform thats actualized in each platform's source set
👍 1
m
Was too lazy for that blob upside down but I guess this is the way...
o
m
Perfect 👌
l
Was just about to suggest that, but note that it's getting moved for 2.0
m
This is for tests so it's fine, I'll change my tests for 2.0 👍
And this saves me 4 files with 1 line in each 🙏
e
> but note that it's getting moved for 2.0 Removed (or just moved out of native)? Do you know why?
👀 1
e
Part of the native cleanup basically