Commit 05dd5f33 authored by topjohnwu's avatar topjohnwu

Only load config prop when needed

Close #922
parent ec3c43fa
apply plugin: 'com.android.application'
def configProps = new Properties()
def configPath = project.hasProperty('configPath') ? project.configPath : rootProject.file('config.prop')
configProps.load(new FileInputStream(configPath))
def configPath = project.hasProperty('configPath') ?
new File(project.configPath) : rootProject.file('config.prop')
if (configPath.exists())
configPath.withInputStream { is -> configProps.load(is) }
android {
defaultConfig {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment