Skip to content

Commit

Permalink
Merge pull request #21443 from wordpress-mobile/remove_configure_wrapper
Browse files Browse the repository at this point in the history
Remove Gradle tasks wrapping `configure` tool
  • Loading branch information
wzieba authored Nov 12, 2024
2 parents 8699f1d + c573d26 commit 0a324b6
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0a324b6

Please sign in to comment.