Skip to content

Commit b2bd5b4

Browse files
committed
chore: fix PR comments
1 parent 28390c1 commit b2bd5b4

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

lib/commands/appstore-list.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,13 @@ export class ListiOSApps implements ICommand {
3737
this.$logger.out("Seems you don't have any applications yet.");
3838
} else {
3939
const table: any = createTable(["Application Name", "Bundle Identifier", "In Flight Version"], applications.map(application => {
40-
return [application.name, application.bundleId, this.getVersion(application)];
40+
const version = (application && application.versionSets && application.versionSets.length && application.versionSets[0].inFlightVersion && application.versionSets[0].inFlightVersion.version) || "";
41+
return [application.name, application.bundleId, version];
4142
}));
4243

4344
this.$logger.out(table.toString());
4445
}
4546
}
46-
47-
private getVersion(application: IApplePortalApplicationSummary): string {
48-
if (application && application.versionSets && application.versionSets.length && application.versionSets[0].inFlightVersion) {
49-
return application.versionSets[0].inFlightVersion.version;
50-
}
51-
52-
return "";
53-
}
5447
}
5548

5649
$injector.registerCommand("appstore|*list", ListiOSApps);

lib/commands/appstore-upload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class PublishIOS implements ICommand {
109109
username,
110110
password,
111111
ipaFilePath,
112-
ipaFileOption: !!this.$options.ipa,
112+
shouldExtractIpa: !!this.$options.ipa,
113113
verboseLogging: this.$logger.getLevel() === "TRACE"
114114
});
115115
}

lib/declarations.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,9 @@ interface IITMSData extends ICredentials {
624624
ipaFilePath: string;
625625

626626
/**
627-
* Specified if the ipa options is provided
627+
* Specify if the service should extract the `.ipa` file into `temp` directory in order to get bundleIdentifier from info.plist
628628
*/
629-
ipaFileOption: boolean;
629+
shouldExtractIpa: boolean;
630630
/**
631631
* Specifies whether the logging level of the itmstransporter command-line tool should be set to verbose.
632632
* @type {string}

lib/services/itmstransporter-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export class ITMSTransporterService implements IITMSTransporterService {
4444
}
4545

4646
private async getBundleIdentifier(data: IITMSData): Promise<string> {
47-
const { ipaFileOption, ipaFilePath } = data;
47+
const { shouldExtractIpa, ipaFilePath } = data;
4848

49-
if (ipaFileOption) {
49+
if (shouldExtractIpa) {
5050
if (!this.$fs.exists(ipaFilePath) || path.extname(ipaFilePath) !== ".ipa") {
5151
this.$errors.failWithoutHelp(`Cannot use specified ipa file ${ipaFilePath}. File either does not exist or is not an ipa file.`);
5252
}

0 commit comments

Comments
 (0)