Do we have a work around to support android code ProGuard?

116 views
Skip to first unread message

陈煜

unread,
Nov 27, 2017, 11:39:03 PM11/27/17
to JaCoCo and EclEmma Users
As we know, we can open code ProGuard in an android project. The class files are ProGuard when a build is completed, so Jacoco can not support well.
Do we have a work around for this case?

Marc Hoffmann

unread,
Nov 28, 2017, 1:10:08 AM11/28/17
to jac...@googlegroups.com

I don't think JaCoCo can be combined with an obfuscator. You might try to apply JaCoCo offline instrumentation before the obfuscator kicks in.

Anyways, doesn't make sense to analyze code coverage on obfuscated code.

Regards,
-marc

 

 

On 2017-11-28 05:39, 陈煜 wrote:

As we know, we can open code ProGuard in an android project. The class files are ProGuard when a build is completed, so Jacoco can not support well.
Do we have a work around for this case?

 

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/42c04277-d7c0-4802-8c0b-5d12aaab6c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

陈煜

unread,
Nov 28, 2017, 1:34:42 AM11/28/17
to JaCoCo and EclEmma Users
@marc
Thank you.
We do have to inner release  a (.apk) file with ProGuard to our tester. We do not want to test twice with release version and debug version(with code coverage), because the workload may be double.


在 2017年11月28日星期二 UTC+8下午2:10:08,Marc R. Hoffmann写道:

Marc Hoffmann

unread,
Nov 28, 2017, 5:14:30 AM11/28/17
to jac...@googlegroups.com

Code coverage should be meassured with automated tests.

陈煜

unread,
Nov 30, 2017, 10:24:51 PM11/30/17
to JaCoCo and EclEmma Users
Thank you for your answer.
So we do not have the plan to support obfuscated code in the near future?


在 2017年11月28日星期二 UTC+8下午6:14:30,Marc R. Hoffmann写道:

Marc Hoffmann

unread,
Dec 1, 2017, 2:08:01 AM12/1/17
to jac...@googlegroups.com

Not in scope for JaCoCo.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages