Last active
April 22, 2018 18:00
-
-
Save tomkoptel/c487bb3bb1e52071164fe6b7b8a310f6 to your computer and use it in GitHub Desktop.
A part of the Medium blog discussion https://medium.com/@tom.koptel/develop-custom-android-gradle-plugin-more-efficiently-c26ffc562aac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.gradle.api.DefaultTask | |
import org.gradle.api.tasks.InputFile | |
import java.io.File | |
/** | |
* Make sure the task is open. Otherwise the plugin will fail with exception: | |
* org.gradle.api.GradleException: Could not generate a proxy class for class com.sample.coolplugin.CoolTask. | |
*/ | |
open class CoolTask : DefaultTask() { | |
// Represents path to the instrumentation task that get generated for the tests | |
@InputFile | |
var instrumentationApkFile: File? = null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment