Skip to content

Commit 860893f

Browse files
committed
chore: linting
1 parent c6b7501 commit 860893f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

lib/services/ios-project-service.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
530530
uuid: mobileprovision.UUID,
531531
name: mobileprovision.Name,
532532
identity: mobileprovision.Type === "Development" ? "iPhone Developer" : "iPhone Distribution"
533-
}
533+
};
534534
xcode.setManualSigningStyle(projectData.projectName, configuration);
535535
xcode.setManualSigningStyleByTargetProductType("com.apple.product-type.app-extension", configuration);
536536
xcode.save();
@@ -1108,12 +1108,12 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11081108

11091109
const extensionPath = path.join(pluginPlatformsFolderPath, constants.NATIVE_EXTENSION_FOLDER);
11101110
await this.prepareExtensionsCode(extensionPath, projectData);
1111-
};
1111+
}
11121112
}
11131113

11141114
private async prepareExtensionsCode(extensionsFolderPath: string, projectData: IProjectData): Promise<void> {
11151115
const targetUuids: string[] = [];
1116-
if(!this.$fs.exists(extensionsFolderPath)){
1116+
if (!this.$fs.exists(extensionsFolderPath)) {
11171117
return;
11181118
}
11191119

@@ -1144,15 +1144,15 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11441144
project.addBuildPhase([], 'PBXFrameworksBuildPhase', 'Frameworks', target.uuid);
11451145

11461146
const extJsonPath = path.join(extensionsFolderPath, extensionFolder, "extension.json");
1147-
if(this.$fs.exists(extJsonPath)) {
1147+
if (this.$fs.exists(extJsonPath)) {
11481148
const extensionJson = this.$fs.readJson(extJsonPath);
11491149
_.forEach(extensionJson.frameworks, framework => {
11501150
project.addFramework(
11511151
framework,
11521152
{ target: target.uuid }
11531153
);
11541154
});
1155-
if(extensionJson.assetcatalogCompilerAppiconName){
1155+
if (extensionJson.assetcatalogCompilerAppiconName) {
11561156
project.addToBuildSettings("ASSETCATALOG_COMPILER_APPICON_NAME", extensionJson.assetcatalogCompilerAppiconName, target.uuid);
11571157
}
11581158
}
@@ -1162,24 +1162,24 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11621162
project.addBuildProperty("PRODUCT_BUNDLE_IDENTIFIER", `${projectData.projectIdentifiers.ios}.${extensionFolder}`, "Release", extensionFolder);
11631163
project.addToHeaderSearchPaths(group.path, target.pbxNativeTarget.productName);
11641164

1165-
return target.uuid
1165+
return target.uuid;
11661166
}
11671167

11681168
private prepareExtensionSigning(targetUuids: string[], projectData:IProjectData) {
11691169
const xcode = this.$pbxprojDomXcode.Xcode.open(this.getPbxProjPath(projectData));
11701170
const signing = xcode.getSigning(projectData.projectName);
1171-
if(signing !== undefined) {
1171+
if (signing !== undefined) {
11721172
_.forEach(targetUuids, targetUuid => {
1173-
if(signing.style === "Automatic"){
1173+
if (signing.style === "Automatic") {
11741174
xcode.setAutomaticSigningStyleByTargetKey(targetUuid, signing.team);
11751175
} else {
1176-
for(let config in signing.configurations) {
1176+
for (const config in signing.configurations) {
11771177
const signingConfiguration = signing.configurations[config];
11781178
xcode.setManualSigningStyleByTargetKey(targetUuid, signingConfiguration);
11791179
break;
11801180
}
11811181
}
1182-
})
1182+
});
11831183
}
11841184
xcode.save();
11851185
}
@@ -1190,7 +1190,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
11901190

11911191
if (this.$fs.exists(rootPath)) {
11921192
const stats = this.$fs.getFsStats(rootPath);
1193-
if(stats.isDirectory() && !this.$fs.isEmptyDir(rootPath)) {
1193+
if (stats.isDirectory() && !this.$fs.isEmptyDir(rootPath)) {
11941194
this.$fs.readDirectory(rootPath).forEach(fileName => {
11951195
const filePath = path.join(rootGroup.path, fileName);
11961196
filePathsArr.push(filePath);

test/ios-project-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function createTestInjector(projectPath: string, projectName: string, xcode?: IX
7777
projectDir: "",
7878
appDirectoryPath: "",
7979
appResourcesDirectoryPath: "",
80-
getAppResourcesDirectoryPath: ()=>""
80+
getAppResourcesDirectoryPath: () => ""
8181
});
8282
projectData.projectDir = temp.mkdirSync("projectDir");
8383
projectData.appDirectoryPath = path.join(projectData.projectDir, "app");

0 commit comments

Comments
 (0)