Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fork of gradle xcodePlugin to build iOS projects with additional support for HockeyApp

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

gradle-xcodePlugin

This project is a fork of the fantastic gradle xcodePlugin to build iOS projects. This version contains some extensions for uploading apps to HockeyApp and overriding some additional project properties. Hopefully the project will become obsolete if the suggested functionality can/would be integrated into the original project.

Current version is 0.7.3

Introduction: http://openbakery.org/gradle.php

Use the following repository and dependency in your gradle files to use this patched/extended version of the plugin:

maven {
    url ('https://raw.github.com/wfrank2509/gradle-xcodePlugin/master/plugin/repo/')
}

dependencies {
        classpath group: 'org.openbakery', name: 'xcodePlugin', version: '0.7.+'
}

xcodebuild Parameters:

  • scheme - the xcode build scheme that should be used. If the scheme is set the configuration and target is ignored

    default value: empty

  • workspace - the workspace file that should be used for the build.

    default value: empty

  • configuration - the build configuration name that should be used (e.g. 'Debug', 'Release')

    default value: 'Debug'

  • sdk - the SDK that should be used (e.g. 'iphonesimulator', 'iphoneos')

    default value: 'iphonesimulator'

  • target - the xcode build target that should be used

    default value: empty

  • unitTestTarget - Unit Test target that should be executed when running xcodebuild. Here first the target is build and afterwards the unitTestTarget is build and executed. This target only works when the iphonesimulator sdk is used.

    default value: empty

  • signIdentity - sign identity that should be used when building for the device

    default value: empty

  • additionalParameters - additional parameters for the xcodebuild. Here you can for example pass preprocessor definitions: additionalParameters = "GCC_PREPROCESSOR_DEFINITIONS='TIME=" + System.currentTimeMillis() + "'".

    Also an array of parameters is excepted e.g. ["-xcconfig", "/path/to/the/xconfig" ]

    default value: empty

  • bundleNameSuffix - String that should be appended to the generated app bundle. e.g. the default app bundle name is 'Demo.App'. When you set bundleNameSuffix=-1.0.0 than the generated bundle is 'Demo-1.0.0.app'

    default value: empty

  • arch - Use the architecture specified by architecture when building each target. e.g. 'i386', 'armv6', 'armv7'

    default value: empty

    NOTE: when scheme and workspace is set and also the sdk value is 'iphonesimulator' that the arch is set per default to the value 'i386', otherwise a simulator build fails

  • buildRoot - build root directory for the build output

    default value: build

  • dstRoot - the distribution root directory

    default value: 'build/dst'

  • objRoot - the object root directory

    default value: 'build/obj'

  • symRoot - the sym directory. Here is where the app and ipa is generated

    default value: 'build/sym'

  • sharedPrecompsDir

    default value: 'build/shared'

  • infoPlist - override the Info.plist file that is configured in the xcode project file

    default value: empty

provisioning Parameters:

  • mobileprovisionUri - URI where the mobileprovision profile is located that should be used when signing the app

    default value: empty

keychain Parameters:

  • certificateUri - Uri to the certificate that should be used to sign the app

    default value: empty

  • certificatePassword - Password for the certificate file

    default value: empty

  • keychainPassword - Password for the chain that is created

    default value: "This_is_the_default_keychain_password"

  • keychainName - name of the keychain that is created

    default value: 'gradle.keychain'

infoplist Parameters:

  • bundleIdentifier - If set it override the bundle identifier in the Info.plist (CFBundleIdentifier)

    default value: empty

  • bundleIdentifierSuffix - If set it adds a suffix to the bundle identifier in the Info.plist (CFBundleIdentifier)

    default value: empty

  • bundleDisplayName - If set it override the bundle display name in the Info.plist (CFBundleDisplayName)

    default value: empty

  • bundleDisplayNameSuffix - If set it adds a suffix to the bundle display name in the Info.plist (CFBundleDisplayName)

    default value: empty

  • version - sets the CFBundleVersion to the given version Note: version=2.3.4 and versionSuffix=-Suffix and versionPrefix=Prefix- results in 'Prefix-2.3.4-Suffix'

    default value: empty

  • versionSuffix - adds the value to the CFBundleVersion e.g. 'CFBundleVersion=1.0.0' and 'versionSuffix=-Test' results in '1.0.0-Test'

    default value: empty

  • versionPrefix - adds the value in front of the CFBundleVersion e.g. 'CFBundleVersion=1.0.0' and 'versionPrefix=Test-' results in 'Test-1.0.0'

    default value: empty

  • shortVersionString - sets the CFBundleShortVersionString to the given shortVersionString

    default value: empty

  • shortVersionStringSuffix - adds the value to the CFBundleVersion e.g. 'CFBundleShortVersionString=1.0.0' and 'versionSuffix=-Test' results in '1.0.0-Test'

    default value: empty

  • shortVersionStringPrefix - adds the value in front of the CFBundleVersion e.g. 'CFBundleShortVersionString=1.0.0' and 'versionPrefix=Test-' results in 'Test-1.0.0'

    default value: empty

hockeykit Parameters:

  • displayName - Title that should be used that is shown on the hockeykit site for the app. If the value is not set then the bundle identifier is used

    default value: the CFBundleDisplayName from the Info.plist file is used

  • versionDirectoryName - subdirectory that should be used for the app.

    default value: "0"

  • outputDirectory - directory where to store the files that are generated for the hockeykit distribution

    default value "build/hockeykit";

testflight Parameters:

hockeyapp Parameters:

  • apiToken - The HockeyApp API Token (http://support.hockeyapp.net/kb/api)

    default value: empty

  • outputDirectory - Optional, output directory where the ipa an dSYM.zip is created

    default value: "build/hockeyapp"

  • notes - Release notes for the build

    default value: "This build was uploaded using the gradle xcodePlugin"

  • status - Optional, download status (can only be set with full-access tokens):

    default value: 2

  • notify - Optional, notify testers

    default value: 1

  • notesType - Optional, type of release notes

    default value: 1

Something went wrong with that request. Please try again.