Skip to content

Instantly share code, notes, and snippets.

@vilmarbfilho
Created January 9, 2017 11:13
Show Gist options
  • Save vilmarbfilho/1f162d09899523198a8ffd424b47ccd1 to your computer and use it in GitHub Desktop.
Save vilmarbfilho/1f162d09899523198a8ffd424b47ccd1 to your computer and use it in GitHub Desktop.
Fix BuildConfig.DEBUG in module library
answer: http://stackoverflow.com/questions/20176284/buildconfig-debug-always-false-when-building-library-projects-with-gradle
Complete documentation can be found here http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication
[LIBRARY - build.gradle]
android {
publishNonDefault true
}
[APP]
dependencies {
releaseCompile project(path: ':library', configuration: 'release')
debugCompile project(path: ':library', configuration: 'debug')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment