Last active
November 30, 2015 07:06
-
-
Save rdsubhas/6d0d0aedc64854ab1ca2 to your computer and use it in GitHub Desktop.
Android-Gradle-App-Configuration
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
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