android-analyzer icon indicating copy to clipboard operation
android-analyzer copied to clipboard

Enable analyzer on non-android module

Open cesarsicas opened this issue 6 years ago • 2 comments

Hi, i'm testing the lib on a project with three different Modules. Two of them are Android Dependent, so they have android and flavors configured on Gradle. The android-analyzer is working perfectly on these modules.

But, one of the modules doesn't have any Android dependency. When i try to include android-analyzer and run the task, the Gradle emit the following error (domain is my module):

Could not determine the dependencies of task ':domain:androidAnalyzerJacoco'. Task with path 'testDebugUnitTest' not found in project ':domain'.

Any help with this ? Is there a way to configure the lib with a non-android project ?

Thanks in advance !

cesarsicas avatar Jun 28 '19 19:06 cesarsicas

Thank you for pointing out the issue. I am looking into it.

AndroideRob-zz avatar Jul 01 '19 16:07 AndroideRob-zz

@cesarsicas You can use the plugin on java modules as long as you don't specify unitTestCoverage = true. I am looking into how to support this functionality, in the meantime, you can use the plugin without test coverage on java modules.

AndroideRob-zz avatar Sep 19 '19 16:09 AndroideRob-zz