JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 798 forks source link

There is any issue to combine hugo and apt? #30

Closed geovanisouza92 closed 9 years ago

geovanisouza92 commented 10 years ago

Hello guys, thank you for this tool!

I 've an issue in my app. My build script is:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:0.10.+'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2'
        classpath 'com.jakewharton.hugo:hugo-plugin:1.1.+'
    }
}

apply plugin: 'android-library'
apply plugin: 'android-apt'
apply plugin: 'hugo'

And I annotated my SyncAdapter-do-all-things method like:

    @DebugLog
    public void make(SyncResult syncResult) {
        // ...
    }

But, I haven't see any log in logcat... Any idea about what I'm doing wrong?

Thank you.

ChrisMCMine commented 10 years ago

Try to comment out the api lines and check if hugo logs something now.

JakeWharton commented 9 years ago

I haven't seen any issues. If you can create a sample that reproduces something being wrong I'll have a look. Otherwise I'm closing for now.