Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Jun 30, 2024
2 parents c26822c + e717858 commit a6d579b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.7

- name: Download App Bundle
uses: actions/download-artifact@v4.1.7
with:
Expand Down
14 changes: 7 additions & 7 deletions buildSrc/src/main/kotlin/ProjectSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ object ProjectSettings {

@Suppress("TooGenericExceptionCaught", "UnstableApiUsage")
private fun Project.setIOSVersion(versionName: String) = try {
project.providers.exec {
workingDir = File("${project.rootDir}/ios")
commandLine("agvtool new-version -all ${getVersionCode(project)}".split(" "))
}
project.providers.exec {
workingDir = File("${project.rootDir}/ios")
providers.exec {
workingDir = File("${rootDir}/ios")
commandLine("agvtool new-version -all ${getVersionCode(this@setIOSVersion)}".split(" "))
}.standardOutput.asText.get() // needed for completing the execution
providers.exec {
workingDir = File("${rootDir}/ios")
commandLine("agvtool new-marketing-version $versionName".split(" "))
}
}.standardOutput.asText.get() // needed for completing the execution
} catch (e: Exception) {
println("agvtool exist only mac environment")
println(e.localizedMessage)
Expand Down

0 comments on commit a6d579b

Please sign in to comment.