fix: Fix clean build error (#1924)

Fixes https://github.com/mrousavy/react-native-vision-camera/issues/1915
This commit is contained in:
Marc Rousavy 2023-10-05 10:46:33 +02:00 committed by GitHub
parent 3ed74e6794
commit c9795ce767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,8 +152,7 @@ dependencies {
} }
} }
task cleanCmakeCache() { task deleteCmakeCache() {
tasks.getByName("clean").dependsOn(cleanCmakeCache)
doFirst { doFirst {
delete "${projectDir}/.cxx" delete "${projectDir}/.cxx"
delete "${nodeModules}/react-native-vision-camera/android/.cxx" delete "${nodeModules}/react-native-vision-camera/android/.cxx"
@ -175,6 +174,6 @@ tasks.configureEach { task ->
} }
// C++ clean // C++ clean
if (task.name.contains("clean")) { if (task.name.contains("clean")) {
task.dependsOn(cleanCmakeCache) task.dependsOn(deleteCmakeCache)
} }
} }