Skip to content

Instantly share code, notes, and snippets.

@goofyahead
Created April 4, 2017 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofyahead/5d78e29f4bf787f33ca3ef40791bb172 to your computer and use it in GitHub Desktop.
Save goofyahead/5d78e29f4bf787f33ca3ef40791bb172 to your computer and use it in GitHub Desktop.
android.applicationVariants.all {
def aptOutputDir = new File(buildDir, "generated/source/apt/${it.unitTestVariant.dirName}")
it.unitTestVariant.addJavaSourceFoldersToModel(aptOutputDir)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment