
org.openbakery.appstore.AbstractAppstoreTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcode-plugin Show documentation
Show all versions of xcode-plugin Show documentation
XCode-Plugin is a plugin to allow custom XCode projects to build as generated by CMake
package org.openbakery.appstore
import org.gradle.internal.logging.text.StyledTextOutput
import org.gradle.internal.logging.text.StyledTextOutputFactory
import org.openbakery.AbstractDistributeTask
import org.openbakery.output.ConsoleOutputAppender
class AbstractAppstoreTask extends AbstractDistributeTask {
public AbstractDistributeTask() {
}
def runAltool(String action) {
File ipa = getIpaBundle()
if (project.appstore.username == null) {
throw new IllegalArgumentException("Appstore username is missing. Parameter: appstore.username")
}
if (project.appstore.password == null) {
throw new IllegalArgumentException("Appstore password is missing. Parameter: appstore.password")
}
StyledTextOutput output = getServices().get(StyledTextOutputFactory.class).create(AbstractAppstoreTask.class)
commandRunner.run([xcode.getAltool(), action, "--username", project.appstore.username, "--password", project.appstore.password, "--file", ipa.getAbsolutePath()], new ConsoleOutputAppender(output))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy