Skip to content

Instantly share code, notes, and snippets.

@a7madev
Created January 2, 2016 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a7madev/e7945a271060afc32e6e to your computer and use it in GitHub Desktop.
Save a7madev/e7945a271060afc32e6e to your computer and use it in GitHub Desktop.
How to have debug, beta and prod builds installed at the same time
defaultConfig {
resValue "string", "app_name", "MyApp"
}
buildTypes {
debug {
applicationIdSuffix = ".debug"
testCoverageEnabled = "true"
resValue "string", "app_name", "MyApp DEBUG"
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
beta {
applicationIdSuffix = ".beta"
initWith release
resValue "string", "app_name", "MyApp BETA"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment