Skip to content

Commit 77edc61

Browse files
committed
chore: format
1 parent e0f9341 commit 77edc61

File tree

156 files changed

+2361
-2410
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+2361
-2410
lines changed

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"useTabs": true,
3+
"trailingComma": "none",
34
"overrides": [
45
{
56
"files": "*.json",

lib/commands/add-platform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { IProjectData } from "../definitions/project";
33
import {
44
IOptions,
55
IPlatformCommandHelper,
6-
IPlatformValidationService,
6+
IPlatformValidationService
77
} from "../declarations";
88
import { IPlatformsDataService } from "../definitions/platform";
99
import { ICommandParameter, ICommand } from "../common/definitions/commands";

lib/commands/apple-login.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IApplePortalSessionService } from "../services/apple-portal/definitions
88
export class AppleLogin implements ICommand {
99
public allowedParameters: ICommandParameter[] = [
1010
new StringCommandParameter(this.$injector),
11-
new StringCommandParameter(this.$injector),
11+
new StringCommandParameter(this.$injector)
1212
];
1313

1414
constructor(
@@ -23,7 +23,7 @@ export class AppleLogin implements ICommand {
2323
let username = args[0];
2424
if (!username) {
2525
username = await this.$prompter.getString("Apple ID", {
26-
allowEmpty: false,
26+
allowEmpty: false
2727
});
2828
}
2929

@@ -34,7 +34,7 @@ export class AppleLogin implements ICommand {
3434

3535
const user = await this.$applePortalSessionService.createUserSession({
3636
username,
37-
password,
37+
password
3838
});
3939
if (!user.areCredentialsValid) {
4040
this.$errors.fail(

lib/commands/appstore-list.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import { injector } from "../common/yok";
88
import { IErrors } from "../common/declarations";
99
import {
1010
IApplePortalApplicationService,
11-
IApplePortalSessionService,
11+
IApplePortalSessionService
1212
} from "../services/apple-portal/definitions";
1313

1414
export class ListiOSApps implements ICommand {
1515
public allowedParameters: ICommandParameter[] = [
1616
new StringCommandParameter(this.$injector),
17-
new StringCommandParameter(this.$injector),
17+
new StringCommandParameter(this.$injector)
1818
];
1919

2020
constructor(
@@ -49,7 +49,7 @@ export class ListiOSApps implements ICommand {
4949

5050
if (!username) {
5151
username = await this.$prompter.getString("Apple ID", {
52-
allowEmpty: false,
52+
allowEmpty: false
5353
});
5454
}
5555

@@ -60,7 +60,7 @@ export class ListiOSApps implements ICommand {
6060
const user = await this.$applePortalSessionService.createUserSession(
6161
{ username, password },
6262
{
63-
sessionBase64: this.$options.appleSessionBase64,
63+
sessionBase64: this.$options.appleSessionBase64
6464
}
6565
);
6666
if (!user.areCredentialsValid) {
@@ -69,9 +69,8 @@ export class ListiOSApps implements ICommand {
6969
);
7070
}
7171

72-
const applications = await this.$applePortalApplicationService.getApplications(
73-
user
74-
);
72+
const applications =
73+
await this.$applePortalApplicationService.getApplications(user);
7574

7675
if (!applications || !applications.length) {
7776
this.$logger.info("Seems you don't have any applications yet.");

lib/commands/appstore-upload.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { IProjectData } from "../definitions/project";
66
import {
77
IITMSTransporterService,
88
IOptions,
9-
IPlatformValidationService,
9+
IPlatformValidationService
1010
} from "../declarations";
1111
import { ICommand, ICommandParameter } from "../common/definitions/commands";
1212
import { IInjector } from "../common/definitions/yok";
@@ -19,7 +19,7 @@ export class PublishIOS implements ICommand {
1919
new StringCommandParameter(this.$injector),
2020
new StringCommandParameter(this.$injector),
2121
new StringCommandParameter(this.$injector),
22-
new StringCommandParameter(this.$injector),
22+
new StringCommandParameter(this.$injector)
2323
];
2424

2525
constructor(
@@ -58,7 +58,7 @@ export class PublishIOS implements ICommand {
5858
this.$options.appleApplicationSpecificPassword,
5959
sessionBase64: this.$options.appleSessionBase64,
6060
requireInteractiveConsole: true,
61-
requireApplicationSpecificPassword: true,
61+
requireApplicationSpecificPassword: true
6262
}
6363
);
6464
if (!user.areCredentialsValid) {
@@ -121,7 +121,7 @@ export class PublishIOS implements ICommand {
121121
ipaFilePath,
122122
shouldExtractIpa: !!this.$options.ipa,
123123
verboseLogging: this.$logger.getLevel() === "TRACE",
124-
teamId: this.$options.teamId,
124+
teamId: this.$options.teamId
125125
});
126126
}
127127

lib/commands/build.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import {
22
ANDROID_RELEASE_BUILD_ERROR_MESSAGE,
3-
AndroidAppBundleMessages,
3+
AndroidAppBundleMessages
44
} from "../constants";
55
import { ValidatePlatformCommandBase } from "./command-base";
66
import { hasValidAndroidSigning } from "../common/helpers";
77
import { IProjectData } from "../definitions/project";
88
import {
99
IOptions,
1010
IPlatformValidationService,
11-
IAndroidBundleValidatorHelper,
11+
IAndroidBundleValidatorHelper
1212
} from "../declarations";
1313
import { IPlatformsDataService } from "../definitions/platform";
1414
import { IBuildController, IBuildDataService } from "../definitions/build";
@@ -42,9 +42,9 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
4242
watch: {
4343
type: OptionType.Boolean,
4444
default: false,
45-
hasSensitiveValue: false,
45+
hasSensitiveValue: false
4646
},
47-
hmr: { type: OptionType.Boolean, default: false, hasSensitiveValue: false },
47+
hmr: { type: OptionType.Boolean, default: false, hasSensitiveValue: false }
4848
};
4949

5050
public async executeCore(args: string[]): Promise<string> {
@@ -132,7 +132,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
132132
if (!this.$options.force) {
133133
await this.$migrateController.validate({
134134
projectDir: this.$projectData.projectDir,
135-
platforms: [platform],
135+
platforms: [platform]
136136
});
137137
}
138138

@@ -180,7 +180,7 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
180180

181181
public async execute(args: string[]): Promise<void> {
182182
await this.executeCore([
183-
this.$devicePlatformsConstants.Android.toLowerCase(),
183+
this.$devicePlatformsConstants.Android.toLowerCase()
184184
]);
185185

186186
if (this.$options.aab) {
@@ -201,7 +201,7 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
201201
if (!this.$options.force) {
202202
await this.$migrateController.validate({
203203
projectDir: this.$projectData.projectDir,
204-
platforms: [platform],
204+
platforms: [platform]
205205
});
206206
}
207207
this.$androidBundleValidatorHelper.validateRuntimeVersion(

0 commit comments

Comments
 (0)