Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Always rebuild / regenerate the BuildConfig file to reflect changes made to buildConfigField
// always rebuild our build config
tasks.whenTaskAdded { task ->
if (task.name ==~ /generate[\w\W]+BuildConfig/) {
task.dependsOn "clean" + task.name.capitalize()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment