bjoernQ / unmock-plugin

Gradle plugin to be used in combination with the new unit testing feature of the Gradle Plugin / Android Studio to use real classes for e.g. SparseArray.
Apache License 2.0
323 stars 22 forks source link

Add support for proper Gradle up-to-date checks #48

Closed drewhannay closed 5 years ago

drewhannay commented 5 years ago

This adds a new UnMockTask class which defines the correct input and output properties needed for Gradle to do proper up-to-date checking on the task. It also allows Gradle to handle any file downloads for dependent jars rather than trying to handle this manually in ProcessRealAndroidJar.

In order to test that the caching logic is working correctly, add a dependency on Gradle TestKit and java-gradle-plugin so that unit tests can be written in the plugin project directly.

Fixes #46 and #47

bjoernQ commented 5 years ago

Thanks a lot - looks very good and great you added tests

I'll have time for the review and a new release latest tomorrow morning (European time)