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

DebugLog does not work in library module #80

Closed
curilpe opened this issue Mar 12, 2015 · 7 comments
Closed

DebugLog does not work in library module #80

curilpe opened this issue Mar 12, 2015 · 7 comments

Comments

@curilpe
Copy link

curilpe commented Mar 12, 2015

Project with multi-module setup (application + library) does not log methods annotated with @debuglog from library module. In application module it works fine.

here is example https://github.com/curilpe/hugo-test

EDIT:

problem is not in hugo but in android gradle plugin because all library modules are release builds regardless of build type of application.

to change it to debug build just put in build file of library module

android {
defaultPublishConfig "debug"
}

@promeG
Copy link
Contributor

promeG commented Mar 20, 2015

@curilpe Maybe you should take a look at XLog.

This library have the same funcation as Hugo, and it support library project.

@curilpe
Copy link
Author

curilpe commented Mar 26, 2015

XLog requires root access so it can not be used on real projects.

@promeG
Copy link
Contributor

promeG commented Apr 2, 2015

@curilpe

A project with XLog can run on any devices with or without Xposed(or rooted).

But you have to root and install Xposed & XLog module to see the method log.

Without xposed (or rooted), XLog just doing noting at all. So XLog will not log any thing and cause any problems in a release version on the final user's device.

@curilpe curilpe closed this as completed Apr 16, 2015
@sperzion
Copy link

sperzion commented Jan 8, 2016

@curilpe Were you able to get Hugo to work in your library project when you had it build in debug mode? I tried recently, but was unable to see any Hugo output in my debug library build.

@MessuKilkain
Copy link

I was able to use hugo in only a specific module by using the following code in the build.gradle file of my module :

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
    }
}

apply plugin: 'com.jakewharton.hugo'

android {
    [...]
    buildTypes {
        [...]
        debug {
            defaultPublishConfig "debug"
        }
    }
}

@challchampion
Copy link

@MessuKilkain In this way, everytime it outputs debug.aar, how can we configure it outputs release.aar when the whole project buildType is release?

@johnsonyuw
Copy link

@curilpe do you find method to fix this problem

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

6 participants