Monday, November 3, 2014

[Android] Add gradle environment constant

Add gradle environment constant: 1. Create ~/.gradle/gradle.properties 2. Add content like: env=stage Add environment constant for running time: $ gradle assembleDebug -Penv=stage Use in gradle file 1. $buildEnv 2. project.ext['buildEnv']

No comments:

Post a Comment