From c9795ce7675c0c9b0b032d156631051060cf0e60 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Thu, 5 Oct 2023 10:46:33 +0200 Subject: [PATCH] fix: Fix clean build error (#1924) Fixes https://github.com/mrousavy/react-native-vision-camera/issues/1915 --- package/android/build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package/android/build.gradle b/package/android/build.gradle index 447e9b3..c6b3527 100644 --- a/package/android/build.gradle +++ b/package/android/build.gradle @@ -152,8 +152,7 @@ dependencies { } } -task cleanCmakeCache() { - tasks.getByName("clean").dependsOn(cleanCmakeCache) +task deleteCmakeCache() { doFirst { delete "${projectDir}/.cxx" delete "${nodeModules}/react-native-vision-camera/android/.cxx" @@ -175,6 +174,6 @@ tasks.configureEach { task -> } // C++ clean if (task.name.contains("clean")) { - task.dependsOn(cleanCmakeCache) + task.dependsOn(deleteCmakeCache) } }