NTP-1378 | Added custom task & enabled configuration cache with warn … (#12087)
This commit is contained in:
@@ -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'
|
||||
|
||||
51
android/app/exec.gradle
Normal file
51
android/app/exec.gradle
Normal file
@@ -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")
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
android.jetifier.ignorelist=android-base-common,common
|
||||
org.gradle.configuration-cache= true
|
||||
org.gradle.configuration-cache.problems=warn
|
||||
Reference in New Issue
Block a user