https://kotlinlang.org logo
Title
u

ursus

02/05/2023, 4:29 AM
What is the scope of this framework? Creating UI's with prior jetpack compose knowledge has been a breeze, but say I want to read user location (i.e. a macos native api), how would I do that? Is it out of the scope? Or should I look for some jvm library which provides that?
a

Alexander Maryanovsky

02/05/2023, 5:12 AM
Yes and yes.
We may provide, in the future, wrappers for commonly used native APIs that aren’t UI, but currently there are no such plans.
u

ursus

02/05/2023, 12:09 PM
If I might ask, how does one even do that? Say I want the macos location, should I look for a C api, and expose that to java via JNI? What about swift? Is there a mechanism to bridge those to jvm world?
m

mikehearn

02/15/2023, 1:19 PM
Yes, or use JNA or equivalent. But for that thing specifically there is
System.getProperty("user.home")
a

Alexander Maryanovsky

02/15/2023, 3:44 PM
I think he meant physical, geographical, location. But who knows…
m

mikehearn

02/15/2023, 3:44 PM
Ah you're right, that's a more likely interpretation.
u

ursus

02/15/2023, 4:25 PM
yea gps location, i.e. some native api