Skip to content

Instantly share code, notes, and snippets.

@rdsubhas
Last active November 30, 2015 07:06
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 rdsubhas/6d0d0aedc64854ab1ca2 to your computer and use it in GitHub Desktop.
Save rdsubhas/6d0d0aedc64854ab1ca2 to your computer and use it in GitHub Desktop.
Android-Gradle-App-Configuration
apply plugin: 'com.android.application'
android {
compileSdkVersion ...
buildToolsVersion ...
productFlavors {
// Alpha/Dev/Nightly/Preview
alpha {
applicationId "com.myapp.alpha"
// when building this flavor, any file under
// `src/alpha` will override `src/main`
}
// Beta/Demo/Staging
beta {
applicationId "com.myapp.beta"
// when building this flavor, any file under
// `src/beta` will override `src/main`
}
// Prod/Live/Version1
prod {
applicationId "com.myapp.v1"
// when building this flavor, any file under
// `src/prod` will override `src/main`
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment