Created
July 29, 2015 12:06
-
-
Save bgorkowy/c090a4222cd38f1241dd to your computer and use it in GitHub Desktop.
multi-flavour gradle library module
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
// 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