feat(webpack): add USER_PROJECT_PLATFORMS_IOS for embedding options (#10422)

This commit is contained in:
Teodor Dermendjiev
2023-10-26 00:10:50 +03:00
committed by GitHub
parent 375bc2e10b
commit 3e4582156c

View File

@ -10,7 +10,8 @@ function sanitizeName(appName: string): string {
}
function getDistPath() {
const appName = sanitizeName(basename(getProjectRootPath()));
return `platforms/ios/${appName}/app`;
const platform = process.env.USER_PROJECT_PLATFORMS_IOS ? process.env.USER_PROJECT_PLATFORMS_IOS : "platforms/ios"
return `${platform}/${appName}/app`;
}
const iOSPlatform: INativeScriptPlatform = {