Skip to content

Instantly share code, notes, and snippets.

@bgorkowy
Created July 29, 2015 12: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 bgorkowy/c090a4222cd38f1241dd to your computer and use it in GitHub Desktop.
Save bgorkowy/c090a4222cd38f1241dd to your computer and use it in GitHub Desktop.
multi-flavour gradle library module
// Main app module
compile project(path: ':library', configuration: 'flavour1Release')
// 'library' module
android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc3"
defaultPublishConfig "flavour1Release"
publishNonDefault true
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
flavour1 {
}
flavour2 {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment