@@ -57,6 +57,16 @@ export function createRepackBuildFunction(): BuildFunction {
5757 allowedValueTypeName : BuildStepInputValueTypeName . BOOLEAN ,
5858 required : false ,
5959 } ) ,
60+ BuildStepInput . createProvider ( {
61+ id : 'ios_signing_use_source_app_entitlements' ,
62+ allowedValueTypeName : BuildStepInputValueTypeName . BOOLEAN ,
63+ required : false ,
64+ } ) ,
65+ BuildStepInput . createProvider ( {
66+ id : 'ios_signing_app_entitlements_path' ,
67+ allowedValueTypeName : BuildStepInputValueTypeName . STRING ,
68+ required : false ,
69+ } ) ,
6070 BuildStepInput . createProvider ( {
6171 id : 'repack_version' ,
6272 allowedValueTypeName : BuildStepInputValueTypeName . STRING ,
@@ -138,6 +148,12 @@ export function createRepackBuildFunction(): BuildFunction {
138148 iosSigningOptions : await resolveIosSigningOptionsAsync ( {
139149 job : stepsCtx . global . staticContext . job ,
140150 logger : stepsCtx . logger ,
151+ useAppEntitlements : inputs . ios_signing_use_source_app_entitlements . value as
152+ | boolean
153+ | undefined ,
154+ entitlementsPath : inputs . ios_signing_app_entitlements_path . value as
155+ | string
156+ | undefined ,
141157 } ) ,
142158 logger : stepsCtx . logger ,
143159 spawnAsync : repackSpawnAsync ,
@@ -275,9 +291,13 @@ export async function resolveAndroidSigningOptionsAsync({
275291export async function resolveIosSigningOptionsAsync ( {
276292 job,
277293 logger,
294+ useAppEntitlements,
295+ entitlementsPath,
278296} : {
279297 job : Job ;
280298 logger : bunyan ;
299+ useAppEntitlements ?: boolean ;
300+ entitlementsPath ?: string ;
281301} ) : Promise < IosSigningOptions | undefined > {
282302 const iosJob = job as Ios . Job ;
283303 const buildCredentials = iosJob . secrets ?. buildCredentials ;
@@ -295,5 +315,7 @@ export async function resolveIosSigningOptionsAsync({
295315 provisioningProfile,
296316 keychainPath : credentials . keychainPath ,
297317 signingIdentity : credentials . applicationTargetProvisioningProfile . data . certificateCommonName ,
318+ useAppEntitlements,
319+ entitlementsPath,
298320 } ;
299321}
0 commit comments