Skip to content

Instantly share code, notes, and snippets.

@patrykpoborca
Created March 7, 2016 19:51
Show Gist options
  • Save patrykpoborca/02b7c0fd1ac663497690 to your computer and use it in GitHub Desktop.
Save patrykpoborca/02b7c0fd1ac663497690 to your computer and use it in GitHub Desktop.
android {
productFlavors {
// Define separate dev and prod product flavors.
dev {
// dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
// to pre-dex each module and produce an APK that can be tested on
// Android Lollipop without time consuming dex merging processes.
minSdkVersion 21
}
prod {
// The actual minSdkVersion for the application.
minSdkVersion 14
}
}
...
buildTypes {
release {
runProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment