I'm accessing a native library with `Native.load("...
# compose-desktop
m
I'm accessing a native library with
Native.load("user32", User32::class.java)
, and it works correctly when ran normally, but when I run the
runReleaseDistributable
task, it no longer works. There are no errors, the method calls just have no effect. What can be going on here?
a
Whenever something works differently in release, ProGuard is the first suspect.
m
It was working in
runRelease
which I assumed runs ProGuard so I ruled it out, but looks like that task doesn't actually run ProGuard. It was indeed ProGuard.
💯 1