Created
October 17, 2019 15:05
-
-
Save martinbonnin/e855ea930af2dd2a0cb7530665ce193b to your computer and use it in GitHub Desktop.
This file contains 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
tasks.withType<LintBaseTask>().configureEach { | |
// doFirst is required else we get a Null Pointer Exception on lintOption | |
doFirst { | |
// This will override the lintOptions from the android extension | |
lintOptions.run { | |
if (name.toLowerCase().contains("debug")) { | |
// Do your configuration here | |
// isAbortOnError = false | |
// etc... | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment