Skip to content

Instantly share code, notes, and snippets.

@samkirton
Created June 8, 2017 12:54
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 samkirton/c0734b4f25edce71e7e83ad20abdf336 to your computer and use it in GitHub Desktop.
Save samkirton/c0734b4f25edce71e7e83ad20abdf336 to your computer and use it in GitHub Desktop.
Annotation preprocessor in test package
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