JakeWharton / hugo

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

support release build type use DebugLog with SOURCE Retention #146

Open xxxzhi opened 7 years ago

xxxzhi commented 7 years ago

Could hugo support release build with SOURCE Retention DebugLog annotation? SOURCE Retention will not keep in .class file.

I try to use releaseCompile dependencies to realize it like this:

debugCompile project(':hugo-annotations')
releaseCompile project(':hugo-annotations-release')

hugo-annotations-release module has DebugLog Annotation which Retention is SOURCE. But this only support release and debug task. When execute ./gradlew assemble, It will throw exception.

Does anyone have a better idea?