I have a build.gradle file and local.properties . I want to declare a value in local.properties that is not verified in version control, for use in build.gradle .
I have buildConfigField working with:
buildTypes { debug { buildConfigField "String", "TEST", "test" } }
Unfortunately, this causes an error:
buildTypes { debug { buildConfigField "String", "TEST", local.properties.get("test") } }
source share