From 39c538b64db4e7c383f41bec56d008180cdc031c Mon Sep 17 00:00:00 2001 From: Kishan Kumar Date: Tue, 13 Aug 2024 17:50:15 +0530 Subject: [PATCH] =?UTF-8?q?NTP-1378=20|=20Added=20custom=20task=20&=20enab?= =?UTF-8?q?led=20configuration=20cache=20with=20warn=20=E2=80=A6=20(#12087?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 1 + android/app/exec.gradle | 51 +++++++++++++++++++++++++++++++++++++++ android/gradle.properties | 4 ++- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 android/app/exec.gradle diff --git a/android/app/build.gradle b/android/app/build.gradle index ad3ecc9b5a..a0ca174cd3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -382,3 +382,4 @@ apply from: project(':react-native-config').projectDir.getPath() + '/dotenv.grad apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) apply from: "../../node_modules/react-native-code-push/android/codepush.gradle" apply plugin: "kotlin-android" +apply from : 'exec.gradle' diff --git a/android/app/exec.gradle b/android/app/exec.gradle new file mode 100644 index 0000000000..f7896f2d60 --- /dev/null +++ b/android/app/exec.gradle @@ -0,0 +1,51 @@ +/* + * + * * Copyright © 2024 by Navi Technologies Limited + * * All rights reserved. Strictly confidential + * + */ + + +tasks.register('cleanNavi',Exec) +tasks.register('buildNavi',Exec) + + +tasks.named('cleanNavi') { + group = 'Build' + description = 'Cleans the project' + + doFirst { + println("CleanNavi configuring") + } + workingDir = rootProject.projectDir + + executable = './gradlew' + args 'clean', + '--no-configuration-cache', + '--info' + + doLast { + println("CleanNavi execution completed") + } +} + +tasks.named('buildNavi') { + group = 'Build' + description = 'Assembles and installs the QaDebug' + + doFirst { + println("BuildNavi configuring") + } + workingDir = rootProject.projectDir + + executable = './gradlew' + args ':app:assembleQaDebug', + ':navi_hl_dynamic:assembleQaDebug', + ':navi_pl_dynamic:assembleQaDebug', + 'app:installQaDebug', + '--info' + + doLast { + println("BuildNavi execution completed") + } +} diff --git a/android/gradle.properties b/android/gradle.properties index 107e7994c6..7ee54f0243 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -26,4 +26,6 @@ org.gradle.parallel=true org.gradle.caching=true android.nonTransitiveRClass=true android.nonFinalResIds=false -android.jetifier.ignorelist=android-base-common,common \ No newline at end of file +android.jetifier.ignorelist=android-base-common,common +org.gradle.configuration-cache= true +org.gradle.configuration-cache.problems=warn \ No newline at end of file