Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libraries' @DebugLog doesn't work #31

Closed
jonasfa opened this issue Jun 6, 2014 · 5 comments
Closed

Libraries' @DebugLog doesn't work #31

jonasfa opened this issue Jun 6, 2014 · 5 comments

Comments

@jonasfa
Copy link

jonasfa commented Jun 6, 2014

My project has a number of modules apart from the actual app.
Today I've tried to use Hugo on one of the 'android-library' modules, and nothing is logged when the app module runs.

Project modules:
app (has compile project(':mylibrary'))
mylibrary (has apply plugin: 'hugo')

Already tried to also apply plugin: 'hugo' on the app module, with no luck.

@Dr-Emann
Copy link

Dr-Emann commented Jun 6, 2014

IIRC, gradle only assembles libraries in release mode, and hugo only logs in debug mode.

@jonasfa
Copy link
Author

jonasfa commented Jun 27, 2014

Does Gradle expose the current tasks stack? Hugo could look it up to
determine the final build type.
Em 06/06/2014 16:52, "Zachary Dremann" notifications@github.com escreveu:

IIRC, gradle only assembles libraries in release mode, and hugo only logs
in debug mode.


Reply to this email directly or view it on GitHub
#31 (comment).

@JakeWharton
Copy link
Owner

I don't think there's a way to do this yet, no.

@JakeWharton
Copy link
Owner

This is a Gradle and Android plugin problem, not this library.

More info at http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Library-Publication with configuration to publish the debug variant which could be enabled with a -Dflag from the CLI as a temporary workaround.

@Tagakov
Copy link

Tagakov commented Sep 30, 2015

Just for clarifying. It can be done by adding

android {
    publishNonDefault true

    //...
}

in module's build.gradle and the

dependencies {
    //...
    debugCompile    project(path: ':module', configuration: 'debug' )
    releaseCompile  project(path: ':module', configuration: 'release' )
}

in the application's build.gradle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants