Last active
August 29, 2015 14:12
-
-
Save mbalex99/4581045b98aacb9eea84 to your computer and use it in GitHub Desktop.
Specifying Android Build Variants for Different Environments
This file contains hidden or 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 21 | |
buildToolsVersion "21.0.2" | |
defaultConfig { | |
applicationId "com.epoqueinc.myapp" | |
minSdkVersion 15 | |
targetSdkVersion 21 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
runProguard false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
productFlavors { | |
prod { | |
packageName "com.mycompany.myapp" | |
} | |
dev { | |
packageName "com.mycompany.myapp.dev" | |
} | |
local{ | |
packageName "com.mycompany.myapp.local" | |
} | |
} | |
} | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment