For macOS, I use these imports, and all runs fine ...
# compose-desktop
n
For macOS, I use these imports, and all runs fine
Copy code
import com.apple.eawt.event.GestureAdapter
import com.apple.eawt.event.MagnificationEvent
import com.apple.eawt.event.SwipeEvent
When I try to compile for Windows/Linux, it can't fins the imports. Of course it is understandable, but is it possible to "ignore" those imports and usages for non macOS? For example, can I add "macOS" jvm module that compiles only on macOS with expect/actual? And for jvmMain module I will just use dummy interfaces
e
you shouldn't be using those on macos either, they're replaced in newer Java versions https://openjdk.org/jeps/272
n
But they are not fully replaced, especially these listeners for trackpad