Join Slack
Powered by
How can I access `~/<username>/.gradle/gradl...
# gradle
j
Jishin Dev [JD]
03/22/2021, 1:56 PM
How can I access
~/<username>/.gradle/gradle.properties
file from kotlin code (not
kts
) in an android project?
m
mbonnin
03/22/2021, 2:01 PM
If you want to access the Gradle properties inside the Android app, you will have to include that information in the App code somehow. One way to do this is to use buildConfigFields:
https://developer.android.com/studio/build/gradle-tips#share-custom-fields-and-resource-values-with-your-app-code
j
Jishin Dev [JD]
03/22/2021, 2:04 PM
Well that looks promising. I’ll give it a try. Thanks
@mbonnin
cheers
🍻 1
2
Views
Open in Slack
Previous
Next