Skip to content

Commit

Permalink
Fix logic for determinig whether platofm folders are needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagiera committed Oct 11, 2024
1 parent 0c21812 commit f78d6c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/vscode-extension/src/builders/buildAndroid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function buildAndroid(

if (!(await dependencyManager.isInstalled("android"))) {
throw new Error(
"Android directory does not exist, configure build source in launch configuration or use expo prebuild to generate the directory"
'"android" directory does not exist, configure build source in launch configuration or use expo prebuild to generate the directory'
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,5 +352,5 @@ async function areNativeDirectoriesOptional(): Promise<boolean> {
const isExpoGo = await isExpoGoProject();
const launchConfiguration = getLaunchConfiguration();

return isExpoGo && !!launchConfiguration.eas && !!launchConfiguration.customBuild;
return isExpoGo || !!launchConfiguration.eas || !!launchConfiguration.customBuild;
}
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ export function dependencyDescription(dependency: Dependency) {
};
case "ios":
return {
info: "Whether ios directory exists in the project",
error: "Ios directory does not exist in root directory",
info: 'Whether "ios" directory exists in the project',
error: '"ios" directory does not exist in the main application directory',
};
case "android":
return {
info: "Whether android directory exists in the project",
error: "Android directory does not exist in root directory",
info: 'Whether "android" directory exists in the project',
error: '"android" directory does not exist in the main application directory',
};
case "expo":
return {
Expand Down

0 comments on commit f78d6c5

Please sign in to comment.