Skip to content

Instantly share code, notes, and snippets.

@vovkab
Last active December 18, 2015 18:39
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vovkab/5827790 to your computer and use it in GitHub Desktop.
Save vovkab/5827790 to your computer and use it in GitHub Desktop.
Spoon gradle integration for Android
/* Your Android Config Here */
/* Spoon Configuration */
repositories { mavenCentral() }
configurations { spoon }
dependencies { spoon 'com.squareup.spoon:spoon-runner:1.0.5' }
def buildDirPath = project.buildDir.path
def apk = buildDirPath + '/apk/' + project.name + '-debug-unaligned.apk'
def testApk = buildDirPath + '/apk/' + project.name + '-test-unaligned.apk'
task runSpoon(type: JavaExec, dependsOn: ['assembleDebug', 'assembleTest']) {
main = "com.squareup.spoon.SpoonRunner"
classpath = configurations.spoon
args '--apk', apk,
'--test-apk', testApk,
'--output', buildDirPath + '/reports/spoon/'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment