in android we used to take permission in manifest ...
# compose-desktop
s
in android we used to take permission in manifest file. how can we take permission for desktop in compose multiplatform?
a
There’s no such concept in compose for desktop.
s
then can we access internet directly? I mean for API calling and all
a
yup
Windows and Linux has no such permission requesting at all, and im not too familiar with MacOS's permission model, but either way none of it is built into Compose for Desktop.
s
Thanks a lot Adam.
@Adam Brown hey can you help actually i am using Log.d in commonMain but it is showing error in compose Multiplatform for desktop. In logcat it is showing no device connected
k
Are you developing for desktop or Android?
s
for desktop
k
Which package is
Log
from?
On desktop you can just use
println
as the very basic logging mechanism
s
In android it is android.util.Log but for desktop i dont know. I have used
Copy code
Log.debug(result.body().toString()) from import org.jetbrains.skia.impl.Log
but it is no showing anything
k
Well, you can’t just use a random class that happens to have the “same” name and expect it to do some sort of logging for you
s
I didn't got any reference so i was trying alternative that i saw during the time of Import
s
Thanks
a
I've been using Napier for cross platform logging: https://github.com/AAkira/Napier