Last active
March 30, 2016 11:01
-
-
Save ultraon/c645ab442516def7006029784aa65145 to your computer and use it in GitHub Desktop.
Example for building android library module (in project) with custom variant
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
//snippet from library module | |
android { | |
defaultPublishConfig "productionRelease" | |
publishNonDefault true | |
productFlavors { | |
alpha { | |
} | |
production { | |
} | |
} | |
} | |
//snippet from android application module | |
dependencies { | |
compile project(path: ':module', configuration:'alphaDebug') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment