Skip to content

Instantly share code, notes, and snippets.

View xmarkurion's full-sized avatar
💎
Providing value.

xmarkurion

💎
Providing value.
View GitHub Profile
@xmarkurion
xmarkurion / android_local.properties.md
Last active December 1, 2024 19:19
Local Properties in Android Studio Using Kotlin DSL -2025

Android reading props from local properties ..By Markurion :)

I've spent my time which is worthless... For you.

Android studio by default uses Kotlin DSL instead of Grovy DSL
The Kotlin DSL for Gradle uses val and var instead of def, and the syntax is slightly different.

How to import local properties in Kotlin DSL

To proper configure env variable from local.properties we need to do the folowing.

  1. Inport this in build.gradle.kts