-
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathproject-changes.d.ts
62 lines (54 loc) · 1.92 KB
/
project-changes.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
interface IAppFilesHashes {
appFilesHashes: IStringDictionary;
}
interface IPrepareInfo extends IAddedNativePlatform, IAppFilesHashes {
time: string;
bundle: boolean;
release: boolean;
projectFileHash: string;
changesRequireBuild: boolean;
changesRequireBuildTime: string;
iOSProvisioningProfileUUID?: string;
}
interface IProjectChangesInfo extends IAddedNativePlatform {
appFilesChanged: boolean;
appResourcesChanged: boolean;
modulesChanged: boolean;
configChanged: boolean;
packageChanged: boolean;
nativeChanged: boolean;
bundleChanged: boolean;
signingChanged: boolean;
readonly hasChanges: boolean;
readonly changesRequireBuild: boolean;
readonly changesRequirePrepare: boolean;
}
/**
* Describes interface for controlling checking node_modules for native changes.
*/
interface ISkipNativeCheckOptional {
/**
* Designates node_modules should not be checked for native changes.
*/
skipModulesNativeCheck?: boolean;
}
interface IProjectChangesOptions extends IAppFilesUpdaterOptions, IProvision, ITeamIdentifier, ISkipNativeCheckOptional {
nativePlatformStatus?: "1" | "2" | "3";
}
interface ICheckForChangesOptions extends IPlatform, IProjectDataComposition {
projectChangesOptions: IProjectChangesOptions;
}
interface IProjectChangesService {
checkForChanges(checkForChangesOpts: ICheckForChangesOptions): Promise<IProjectChangesInfo>;
getPrepareInfo(platform: string, projectData: IProjectData): IPrepareInfo;
savePrepareInfo(platform: string, projectData: IProjectData): void;
getPrepareInfoFilePath(platform: string, projectData: IProjectData): string;
setNativePlatformStatus(platform: string, projectData: IProjectData, nativePlatformStatus: IAddedNativePlatform): void;
currentChanges: IProjectChangesInfo;
}
/**
* NativePlatformStatus.requiresPlatformAdd | NativePlatformStatus.requiresPrepare | NativePlatformStatus.alreadyPrepared
*/
interface IAddedNativePlatform {
nativePlatformStatus: "1" | "2" | "3";
}