Update xcode plugin to support 2.0
Add new parameters: * ipa-export-method * development-team-id Change-Id: I17cc69dc86c59fcddc8d821196424c01caa8f613 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
This commit is contained in:
parent
d77b4d67f9
commit
c4aab5c22d
@ -3043,11 +3043,16 @@ def xcode(registry, xml_parent, data):
|
||||
:arg str version-marketing: The value to use for
|
||||
CFBundleShortVersionString. Leave blank to use project's
|
||||
marketing number. (default '')
|
||||
:arg str ipa-export-method: The export method of the .app to generate the
|
||||
.ipa file. Should be one in 'development', 'ad-hoc', 'enterprise',
|
||||
or 'app-store'. (default '')
|
||||
:arg str ipa-version: A pattern for the ipa file name. You may use
|
||||
${VERSION} and ${BUILD_DATE} (yyyy.MM.dd) in this string.
|
||||
(default '')
|
||||
:arg str ipa-output: The output directory for the .ipa file,
|
||||
relative to the build directory. (default '')
|
||||
:arg development-team-id: The ID of the Apple development team to use to
|
||||
sign the IPA (default '')
|
||||
:arg str keychain-name: The globally configured keychain to unlock for
|
||||
this build. (default '')
|
||||
:arg str keychain-path: The path of the keychain to use to sign the IPA.
|
||||
@ -3107,9 +3112,13 @@ def xcode(registry, xml_parent, data):
|
||||
XML.SubElement(xcode, 'buildIpa').text = str(
|
||||
bool(data.get('ipa-version')) or False).lower()
|
||||
|
||||
valid_ipa_export_methods = ['', 'ad-hoc', 'app-store', 'development']
|
||||
mapping = [
|
||||
('ipa-export-method', 'ipaExportMethod', '',
|
||||
valid_ipa_export_methods),
|
||||
('ipa-version', 'ipaName', ''),
|
||||
('ipa-output', 'ipaOutputDirectory', ''),
|
||||
('development-team-id', 'developmentTeamID', ''),
|
||||
('keychain-name', 'keychainName', ''),
|
||||
('keychain-path', 'keychainPath', ''),
|
||||
('keychain-password', 'keychainPwd', ''),
|
||||
|
@ -22,8 +22,10 @@
|
||||
<cfBundleVersionValue/>
|
||||
<cfBundleShortVersionStringValue/>
|
||||
<buildIpa>false</buildIpa>
|
||||
<ipaExportMethod/>
|
||||
<ipaName/>
|
||||
<ipaOutputDirectory/>
|
||||
<developmentTeamID/>
|
||||
<keychainName/>
|
||||
<keychainPath/>
|
||||
<keychainPwd/>
|
||||
@ -53,8 +55,10 @@
|
||||
<cfBundleVersionValue>TECHNICAL</cfBundleVersionValue>
|
||||
<cfBundleShortVersionStringValue>MARKETING</cfBundleShortVersionStringValue>
|
||||
<buildIpa>true</buildIpa>
|
||||
<ipaExportMethod>ad-hoc</ipaExportMethod>
|
||||
<ipaName>${VERSION}</ipaName>
|
||||
<ipaOutputDirectory>/output</ipaOutputDirectory>
|
||||
<developmentTeamID>foo</developmentTeamID>
|
||||
<keychainName/>
|
||||
<keychainPath>/Users/jenkins/Library/Keychains/jenkins-uasdk-ios-pre_review</keychainPath>
|
||||
<keychainPwd>testpass</keychainPwd>
|
||||
|
@ -15,8 +15,10 @@ builders:
|
||||
allow-failing: true
|
||||
version-technical: "TECHNICAL"
|
||||
version-marketing: "MARKETING"
|
||||
ipa-export-method: ad-hoc
|
||||
ipa-version: "${VERSION}"
|
||||
ipa-output: "/output"
|
||||
development-team-id: foo
|
||||
keychain-path: "/Users/jenkins/Library/Keychains/jenkins-uasdk-ios-pre_review"
|
||||
keychain-password: "testpass"
|
||||
keychain-unlock: true
|
||||
|
Loading…
Reference in New Issue
Block a user