Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 12 additions & 23 deletions lib/services/ios-project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1574,14 +1574,12 @@ export class IOSProjectService
);
const platformData = this.getPlatformData(projectData);
const pbxProjPath = this.getPbxProjPath(projectData);
const addedExtensionsFromResources =
await this.$iOSExtensionsService.addExtensionsFromPath({
extensionsFolderPath: resorcesExtensionsPath,
projectData,
platformData,
pbxProjPath,
});
let addedExtensionsFromPlugins = false;
await this.$iOSExtensionsService.addExtensionsFromPath({
extensionsFolderPath: resorcesExtensionsPath,
projectData,
platformData,
pbxProjPath,
});
for (const pluginIndex in pluginsData) {
const pluginData = pluginsData[pluginIndex];
const pluginPlatformsFolderPath = pluginData.pluginPlatformsFolderPath(
Expand All @@ -1592,21 +1590,12 @@ export class IOSProjectService
pluginPlatformsFolderPath,
constants.NATIVE_EXTENSION_FOLDER,
);
const addedExtensionFromPlugin =
await this.$iOSExtensionsService.addExtensionsFromPath({
extensionsFolderPath: extensionPath,
projectData,
platformData,
pbxProjPath,
});
addedExtensionsFromPlugins =
addedExtensionsFromPlugins || addedExtensionFromPlugin;
}

if (addedExtensionsFromResources || addedExtensionsFromPlugins) {
this.$logger.warn(
"Let us know if there are other Extension features you'd like! https://github.com/NativeScript/NativeScript/issues",
);
await this.$iOSExtensionsService.addExtensionsFromPath({
extensionsFolderPath: extensionPath,
projectData,
platformData,
pbxProjPath,
});
}
}

Expand Down