Add new checkboxes for Xcode plugin

This change allows for the user to specify the following checkboxes:
* Upload Bitcode?
* Upload Symbols?
* Compile Bitcode?

The plugin defaults to these checkboxes being checked, so I kept those
defaults here.

Change-Id: I727611fd2a70f2157b05d030ec296c74a5b214a8
This commit is contained in:
Will Soula 2018-08-28 14:24:48 -06:00
parent de4fb862f3
commit f475a7fded
3 changed files with 18 additions and 0 deletions

View File

@ -3157,6 +3157,12 @@ def xcode(registry, xml_parent, data):
(default '')
:arg str ipa-output: The output directory for the .ipa file,
relative to the build directory. (default '')
:arg bool compile-bitcode: recompile from Bitcode when exporting the
application to IPA. (default true)
:arg bool upload-bitcode: include Bitcode when exporting applications to
IPA. (default true)
:arg bool upload-symbols: include symbols when exporting applications to
IPA. (default true)
: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
@ -3236,6 +3242,9 @@ def xcode(registry, xml_parent, data):
('keychain-path', 'keychainPath', ''),
('keychain-password', 'keychainPwd', ''),
('keychain-unlock', 'unlockKeychain', False),
('compile-bitcode', 'compileBitcode', True),
('upload-bitcode', 'uploadBitcode', True),
('upload-symbols', 'uploadSymbols', True)
]
helpers.convert_mapping_to_xml(xcode, data, mapping, fail_required=True)

View File

@ -30,6 +30,9 @@
<keychainPath/>
<keychainPwd/>
<unlockKeychain>false</unlockKeychain>
<compileBitcode>true</compileBitcode>
<uploadBitcode>true</uploadBitcode>
<uploadSymbols>true</uploadSymbols>
<manualSigning>false</manualSigning>
</au.com.rayh.XCodeBuilder>
<au.com.rayh.DeveloperProfileLoader>
@ -64,6 +67,9 @@
<keychainPath>/Users/jenkins/Library/Keychains/jenkins-uasdk-ios-pre_review</keychainPath>
<keychainPwd>testpass</keychainPwd>
<unlockKeychain>true</unlockKeychain>
<compileBitcode>false</compileBitcode>
<uploadBitcode>false</uploadBitcode>
<uploadSymbols>false</uploadSymbols>
<manualSigning>true</manualSigning>
<provisioningProfiles>
<au.com.rayh.ProvisioningProfile>

View File

@ -18,6 +18,9 @@ builders:
ipa-export-method: ad-hoc
ipa-version: "${VERSION}"
ipa-output: "/output"
compile-bitcode: false
upload-bitcode: false
upload-symbols: false
development-team-id: foo
keychain-path: "/Users/jenkins/Library/Keychains/jenkins-uasdk-ios-pre_review"
keychain-password: "testpass"