mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-27 15:30:16 +00:00
android: lint: Delete generated ktlint folder between builds
There's a bug in ktlint where it will run into an error if you build the project, delete a source file, and then build again. It will be unable to find the file you deleted and can't recover until these files are deleted. This just deletes those files before every run.
This commit is contained in:
parent
062113374d
commit
1bc832c9b1
1 changed files with 5 additions and 0 deletions
|
@ -160,6 +160,11 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.create<Delete>("ktlintReset") {
|
||||||
|
delete(File(buildDir.path + File.separator + "intermediates/ktLint"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.getByPath("loadKtlintReporters").dependsOn("ktlintReset")
|
||||||
tasks.getByPath("preBuild").dependsOn("ktlintCheck")
|
tasks.getByPath("preBuild").dependsOn("ktlintCheck")
|
||||||
|
|
||||||
ktlint {
|
ktlint {
|
||||||
|
|
Loading…
Reference in a new issue