From 5992c3b1701198246e28bf9b220a26d234a59ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ignacy=20=C5=81=C4=85tka?= Date: Wed, 15 Jan 2025 13:52:24 +0100 Subject: [PATCH] switch to a gradle-specific syntax --- android/build.gradle | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 1e68c5daf3..bf8b35a5b6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -186,18 +186,16 @@ android { } if (isGHExampleApp()) { - tasks.withType(ExternalNativeBuildJsonTask).tap { - configureEach { - compileTask -> - compileTask.doLast { - def rootDir = new File("${project.projectDir}/..") - def generated = new File("${compileTask.abi.getCxxBuildFolder()}/compile_commands.json") - def output = new File("${rootDir}/compile_commands.json") - output.text = generated.text - - println("Generated clangd metadata.") - } - } + tasks.withType(ExternalNativeBuildJsonTask).configureEach { + compileTask -> + compileTask.doLast { + def rootDir = new File("${project.projectDir}/..") + def generated = new File("${compileTask.abi.getCxxBuildFolder()}/compile_commands.json") + def output = new File("${rootDir}/compile_commands.json") + output.text = generated.text + + println("Generated clangd metadata.") + } } } }