Skip to content

Instantly share code, notes, and snippets.

@ultraon
Last active March 30, 2016 11:01
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 ultraon/c645ab442516def7006029784aa65145 to your computer and use it in GitHub Desktop.
Save ultraon/c645ab442516def7006029784aa65145 to your computer and use it in GitHub Desktop.
Example for building android library module (in project) with custom variant
//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