So I defined a property in `gradle.properties` fil...
# gradle
i
So I defined a property in
gradle.properties
file and got a reference in the
build.gradle.kts
file by declaring a global property:
val api_key: String by project
I want to use
api_key
in my
Main.kt
, but I can't seem to figure out how to gain access. Searched on StackOverflow and all the results were android related. Can anyone help?
n
write the property to a source file. add the source file to the source sets