Created
September 16, 2016 20:57
-
-
Save viceversus/53ea51eaf7dfb4e72cd9f859a2c174ac to your computer and use it in GitHub Desktop.
Build Variants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
… | |
buildTypes { | |
debug { | |
buildConfigField('String', 'BUILD_ENV', '"development"') | |
… | |
} | |
release { | |
buildConfigField('String', 'BUILD_ENV', '"production"') | |
… | |
} | |
uiTest.initWith(buildTypes.debug) | |
uiTest { | |
buildConfigField('String', 'BUILD_ENV', '"test"') | |
… | |
} | |
acceptance.initWith(buildTypes.debug) | |
acceptance { | |
buildConfigField('String', 'BUILD_ENV', '"acceptance"') | |
… | |
} | |
… | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment