Skip to content

Commit e22c156

Browse files
cleanup
1 parent c0fd0e6 commit e22c156

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

dist/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58401,7 +58401,8 @@ async function getExportOptions(projectRef) {
5840158401
exportOptions['manageAppVersionAndBuildNumber'] = true;
5840258402
}
5840358403
projectRef.exportOption = method;
58404-
exportOptionsPath = await writeExportOptions(projectRef.projectPath, exportOptions);
58404+
exportOptionsPath = `${projectRef.projectPath}/exportOptions.plist`;
58405+
await fs.promises.writeFile(exportOptionsPath, plist.build(exportOptions));
5840558406
}
5840658407
else {
5840758408
exportOptionsPath = exportOptionPlistInput;
@@ -58422,11 +58423,6 @@ async function getExportOptions(projectRef) {
5842258423
}
5842358424
projectRef.exportOptionsPath = exportOptionsPath;
5842458425
}
58425-
async function writeExportOptions(projectPath, exportOptions) {
58426-
const exportOptionsPath = `${projectPath}/exportOptions.plist`;
58427-
await fs.promises.writeFile(exportOptionsPath, plist.build(exportOptions));
58428-
return exportOptionsPath;
58429-
}
5843058426
async function getDefaultEntitlementsMacOS(projectRef) {
5843158427
const entitlementsPath = `${projectRef.projectPath}/Entitlements.plist`;
5843258428
projectRef.entitlementsPath = entitlementsPath;

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/xcode.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ async function getExportOptions(projectRef: XcodeProject): Promise<void> {
436436
exportOptions['manageAppVersionAndBuildNumber'] = true;
437437
}
438438
projectRef.exportOption = method;
439-
exportOptionsPath = await writeExportOptions(projectRef.projectPath, exportOptions);
439+
exportOptionsPath = `${projectRef.projectPath}/exportOptions.plist`;
440+
await fs.promises.writeFile(exportOptionsPath, plist.build(exportOptions));
440441
} else {
441442
exportOptionsPath = exportOptionPlistInput;
442443
}
@@ -456,12 +457,6 @@ async function getExportOptions(projectRef: XcodeProject): Promise<void> {
456457
projectRef.exportOptionsPath = exportOptionsPath;
457458
}
458459

459-
async function writeExportOptions(projectPath: string, exportOptions: any): Promise<string> {
460-
const exportOptionsPath = `${projectPath}/exportOptions.plist`;
461-
await fs.promises.writeFile(exportOptionsPath, plist.build(exportOptions));
462-
return exportOptionsPath;
463-
}
464-
465460
async function getDefaultEntitlementsMacOS(projectRef: XcodeProject): Promise<void> {
466461
const entitlementsPath = `${projectRef.projectPath}/Entitlements.plist`;
467462
projectRef.entitlementsPath = entitlementsPath;

0 commit comments

Comments
 (0)