Skip to content

Commit 81e987f

Browse files
committed
Use IProjectDefinition from mobile-cli-lib
1 parent b62a907 commit 81e987f

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

lib/definitions/project.d.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,12 @@ interface IProjectService {
5353
isValidNativeScriptProject(pathToProject?: string): boolean;
5454
}
5555

56-
interface IProjectIdentifier {
57-
ios: string;
58-
android: string;
59-
[platform: string]: string;
60-
}
61-
6256
interface IProjectData extends IProjectDir {
6357
projectName: string;
6458
platformsDir: string;
6559
projectFilePath: string;
6660
projectId: string;
67-
projectIdentifiers?: IProjectIdentifier;
61+
projectIdentifiers?: Mobile.IProjectIdentifier;
6862
dependencies: any;
6963
devDependencies: IStringDictionary;
7064
appDirectoryPath: string;

lib/project-data.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ProjectData implements IProjectData {
3030
public projectDir: string;
3131
public platformsDir: string;
3232
public projectFilePath: string;
33-
public projectIdentifiers: IProjectIdentifier;
33+
public projectIdentifiers: Mobile.IProjectIdentifier;
3434
get projectId(): string {
3535
this.warnProjectId();
3636
return this.projectIdentifiers.ios;
@@ -97,8 +97,8 @@ export class ProjectData implements IProjectData {
9797
this.$errors.fail("No project found at or above '%s' and neither was a --path specified.", projectDir || this.$options.path || currentDir);
9898
}
9999

100-
private getProjectIdentifiers(data :any): IProjectIdentifier {
101-
let identifier: IProjectIdentifier;
100+
private getProjectIdentifiers(data :any): Mobile.IProjectIdentifier {
101+
let identifier: Mobile.IProjectIdentifier;
102102
data = data || "";
103103

104104
if (typeof data === "string") {

test/stubs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class ProjectDataStub implements IProjectData {
242242
return "";
243243
}
244244
projectFilePath: string;
245-
projectIdentifiers: IProjectIdentifier;
245+
projectIdentifiers: Mobile.IProjectIdentifier;
246246
projectId: string;
247247
dependencies: any;
248248
appDirectoryPath: string;

0 commit comments

Comments
 (0)