stanfy / spoon-gradle-plugin

Gradle plugin for Spoon.
Apache License 2.0
353 stars 79 forks source link

instrumentationArgs param is incompatible with spoon #166

Open PohilAlex opened 6 years ago

PohilAlex commented 6 years ago

I tried to use instrumentationArgs as suggested in the documentation of spoon-gradle-plugin instrumentationArgs = ["foo=bar", "name=value"]

I had the error:

Execution failed for task ':app:spoonDebugAndroidTest'. No signature of method: com.squareup.spoon.SpoonRunner$Builder.setInstrumentationArgs() is applicable for argument types: (java.util.ArrayList) values: [[notAnnotation=com.netpulse.mobile.utils.SmokeTest, coverage=true]] Possible solutions: setInstrumentationArgs(java.util.Map)

I did some investigation and found that in Spoon instrumentationArgs is a Map SpoonRunner

Can you please fix this mismatch?

dweebo commented 6 years ago

It's fixed in https://github.com/stanfy/spoon-gradle-plugin/pull/161, if you are able to upgrade to gradle 4/android build tools 3.0.0