Skip to content

Commit

Permalink
Change cocoapods install command from gem install to bundle install (#21
Browse files Browse the repository at this point in the history
)

changes cocoapods installation from gem() to tool()
  • Loading branch information
Joaquimmnetto committed Feb 6, 2024
1 parent 1ab1557 commit 6360333
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,9 @@ class IOSBuildPluginIntegrationSpec extends IOSBuildIntegrationSpec {
assertProcess(command, "repo-art")

and: "'pod' version should be 1.14 or higher, and lesser than 2.x"
def versionStr = "${podsExec.absolutePath} --version".execute().with {

def versionCmd = new ProcessBuilder([podsExec.absolutePath, "--version"]).directory(projectDir)
def versionStr = versionCmd.start().with {
def (stdout, stderr) = [new StringBuilder(), new StringBuilder()]
it.waitForProcessOutput(stdout, stderr)
return stdout.toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ class IOSBuildPlugin implements Plugin<Project> {

def asdf = project.extensions.getByType(AsdfPluginExtension)
asdf.version.convention(IOSBuildPluginConventions.asdfVersion.getStringValueProvider(project))
asdf.tool("ruby")

def ruby = project.extensions.getByType(RubyPluginExtension)
ruby.gem(new ToolVersionInfo("cocoapods", iosBuild.cocoapods.version))
ruby.gem("cocoapods-art")
ruby.gem("cocoapods-pod-linkage")
ruby.tool(new ToolVersionInfo("cocoapods", iosBuild.cocoapods.version)) {
it.gem("cocoapods-art", [])
it.gem("cocoapods-pod-linkage", [])
}

project.tasks.withType(PodInstallTask).configureEach {
it.dependsOn(RubyPlugin.RUBY_BIN_STUBS_TASK)
Expand Down
2 changes: 1 addition & 1 deletion src/test/groovy/com/wooga/security/SecurityHelper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class SecurityHelper {
'-inkey', key.path,
'-out', p12.path,
'-name', options['privateKeyName'],
'-passout', "pass:${password}"
'-passout', "pass:${password}", '-legacy'
]
def sout = new StringBuilder(), serr = new StringBuilder()
def proc = args.execute()
Expand Down

0 comments on commit 6360333

Please sign in to comment.