From c573d263b29c15829042178745bdfcf2fb034d2d Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Mon, 11 Nov 2024 16:33:52 +0100 Subject: [PATCH] Remove `configure` tool Gradle wrapper - These tasks are not configuration-cache compatible - They don't seem to be that useful: calling fastlane tasks is convenient and gives more customization. It's also aligned with other projects --- build.gradle | 66 ---------------------------------------------------- 1 file changed, 66 deletions(-) diff --git a/build.gradle b/build.gradle index 503b30fe47e9..f623dbcc9e7e 100644 --- a/build.gradle +++ b/build.gradle @@ -81,72 +81,6 @@ allprojects { } } -// Onboarding and dev env setup tasks -tasks.register("checkBundler", Exec) { - doFirst { - println "Check Bundler" - } - - workingDir = './' - executable "sh" - args "-c", "if ! type 'bundle' > /dev/null; then gem install bundler; fi" - - //store the output instead of printing to the console: - standardOutput = new ByteArrayOutputStream() - - //extension method checkBundler.output() can be used to obtain the output: - ext.output = { - return standardOutput.toString() - } -} - -tasks.register("checkBundle", Exec) { - dependsOn tasks.named("checkBundler") - doFirst { - println "Check Bundle" - } - - workingDir = './' - executable "sh" - args "-c", "bundle check --path=\${BUNDLE_PATH:-vendor/bundle} > /dev/null || bundle install --jobs=3 --retry=3 --path=\${BUNDLE_PATH:-vendor/bundle}" - - //store the output instead of printing to the console: - standardOutput = new ByteArrayOutputStream() - - //extension method checkBundle.output() can be used to obtain the output: - ext.output = { - return standardOutput.toString() - } -} - -tasks.register("applyCredentials", Exec) { - dependsOn tasks.named("checkBundle") - doFirst { - println "Apply credentials for this branch" - } - - workingDir = './' - executable "sh" - args "-c", "FASTLANE_SKIP_UPDATE_CHECK=1 FASTLANE_ENV_PRINTER=1 bundle exec fastlane run configure_apply force:true" - - //store the output instead of printing to the console: - standardOutput = new ByteArrayOutputStream() - - //extension method checkBundle.output() can be used to obtain the output: - ext.output = { - return standardOutput.toString() - } -} - -tasks.register("configureApply") { - group = 'Onboarding' - description = 'Install dependencies for debug and production builds' - dependsOn applyCredentials - doLast { - println("Done") - } -} - dependencies { detektPlugins(libs.detekt.formatting) }