Ian Arbuckle
09/12/2020, 11:50 AMlocal.properties
using groovy.
def properties = new Properties()
properties.load(properties.rootProject.file("local.properties).newDataInputStream()
def key = properties.getProperties("google.map.key")
Does anyone know how to replace it with the gradleLocalProperties
DSL or any documentation on this?Ian Arbuckle
09/12/2020, 12:13 PMimport java.utils.Properties
import java.io.FileInputStream
val properties = Properties()
properties.load(FileInputStream(project.rootProject.file("loal.properties")))
val key = properties["goole.map.key"] as String
Ian Arbuckle
09/12/2020, 12:14 PMgildor
09/13/2020, 3:52 AMproperties.load(project.rootProject.file("loal.properties").inputStream())
Ian Arbuckle
09/13/2020, 12:09 PM