https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
n

natario1

06/12/2022, 6:22 AM
I need to reference some files in $HOME/.konan/dependencies, but I would like to avoid hardcoding the path. Is there any way to do so, maybe the KGP exposes it in some way?
m

msink

06/12/2022, 7:14 AM
AFAIK for now there isn't, in my projects I use
val konanDataDir = System.getenv("KONAN_DATA_DIR") ?: "${System.getProperty("user.home")}/.konan"
👍 3
n

natario1

06/12/2022, 7:15 AM
I see, thanks!
3 Views