Created
March 19, 2018 09:55
-
-
Save smhdk/7e535a47f45296270f4f8cfe339883d2 to your computer and use it in GitHub Desktop.
Module build.gradle Build Type example
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 { | |
defaultConfig { | |
manifestPlaceholders = [hostName:"www.example.com"] | |
... | |
} | |
buildTypes { | |
release { | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
applicationIdSuffix ".debug" | |
debuggable true | |
} | |
// The `initWith` property allows you to copy configurations from other build types, then configure just the settings you want to change. This one copies the debug build type, and then changes the manifest placeholder and applicationID. | |
staging { | |
initWith debug | |
manifestPlaceholders = [hostName:"internal.example.com"] | |
applicationIdSuffix ".debugStaging" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment