Skip to content

Commit 94fbde5

Browse files
petekanevPlamen5kov
authored andcommitted
refactor: address pr comments, replace app_resources usage for whatever
the name of the app_resources directory basename is
1 parent 79d744b commit 94fbde5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/project-data.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ export class ProjectData implements IProjectData {
152152
}
153153

154154
private getNsConfigContent(projectDir: string): string {
155+
if (!projectDir) {
156+
return null;
157+
}
158+
155159
const configNSFilePath = path.join(projectDir, constants.CONFIG_NS_FILE_NAME);
156160

157161
if (!this.$fs.exists(configNSFilePath)) {

test/ios-entitlements-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe("IOSEntitlements Service Tests", () => {
4747
injector = createTestInjector();
4848

4949
platformsData = injector.resolve("platformsData");
50-
projectData = injector.resolve("projectData");
50+
projectData = $injector.resolve<IProjectData>("projectData");
5151
projectData.projectName = 'testApp';
5252

5353
projectData.platformsDir = temp.mkdirSync("platformsDir");

0 commit comments

Comments
 (0)