11declare module "nativescript-dev-xcode" {
2- interface Options {
3- [ key : string ] : any ;
4-
5- customFramework ?: boolean ;
6- embed ?: boolean ;
7- relativePath ?: string ;
8- }
9-
10- class project {
11- constructor ( filename : string ) ;
12-
13- parse ( callback : ( ) => void ) : void ;
14- parseSync ( ) : void ;
15-
16- writeSync ( options : any ) : string ;
17-
18- addFramework ( filepath : string , options ?: Options ) : void ;
19- removeFramework ( filePath : string , options ?: Options ) : void ;
20-
21- addPbxGroup ( filePathsArray : any [ ] , name : string , path : string , sourceTree : string ) : void ;
22-
23- removePbxGroup ( groupName : string , path : string ) : void ;
24-
25- addToHeaderSearchPaths ( options ?: Options ) : void ;
26- removeFromHeaderSearchPaths ( options ?: Options ) : void ;
27- updateBuildProperty ( key : string , value : any ) : void ;
28-
29- pbxXCBuildConfigurationSection ( ) : any ;
30-
31- addTarget ( targetName : string , targetType : string , targetPath ?: string ) : target ;
32- addBuildPhase ( filePathsArray : string [ ] ,
33- buildPhaseType : string ,
34- comment : string ,
35- target ?: string ,
36- optionsOrFolderType ?: Object | string ,
37- subfolderPath ?: string
38- ) : any ;
39- addToBuildSettings ( buildSetting : string , value : any , targetUuid ?: string ) : void ;
40- addPbxGroup (
41- filePathsArray : string [ ] ,
42- name : string ,
43- path : string ,
44- sourceTree : string ,
45- opt : { filesRelativeToProject ?: boolean , target ?: string , uuid ?: string , isMain ?: boolean }
46- ) : group ;
47- addBuildProperty ( prop : string , value : any , build_name ?: string , productName ?: string ) : void ;
48- addToHeaderSearchPaths ( file : string | Object , productName ?: string ) : void ;
49- removeTargetsByProductType ( targetType : string ) : void
50- }
51-
52- class target {
53- uuid : string ;
54- pbxNativeTarget : { productName : string }
55- }
56-
57- class group {
58- uuid : string ;
59- pbxGroup : Object ;
60- }
2+ interface Options {
3+ [ key : string ] : any ;
4+
5+ customFramework ?: boolean ;
6+ embed ?: boolean ;
7+ relativePath ?: string ;
8+ }
9+
10+ class project {
11+ constructor ( filename : string ) ;
12+
13+ parse ( callback : ( ) => void ) : void ;
14+ parseSync ( ) : void ;
15+
16+ writeSync ( options : any ) : string ;
17+
18+ addFramework ( filepath : string , options ?: Options ) : void ;
19+ removeFramework ( filePath : string , options ?: Options ) : void ;
20+
21+ addPbxGroup ( filePathsArray : any [ ] , name : string , path : string , sourceTree : string ) : void ;
22+
23+ removePbxGroup ( groupName : string , path : string ) : void ;
24+
25+ addToHeaderSearchPaths ( options ?: Options ) : void ;
26+ removeFromHeaderSearchPaths ( options ?: Options ) : void ;
27+ updateBuildProperty ( key : string , value : any ) : void ;
28+
29+ pbxXCBuildConfigurationSection ( ) : any ;
30+
31+ addTarget ( targetName : string , targetType : string , targetPath ?: string ) : target ;
32+ addBuildPhase ( filePathsArray : string [ ] ,
33+ buildPhaseType : string ,
34+ comment : string ,
35+ target ?: string ,
36+ optionsOrFolderType ?: Object | string ,
37+ subfolderPath ?: string
38+ ) : any ;
39+ addToBuildSettings ( buildSetting : string , value : any , targetUuid ?: string ) : void ;
40+ addPbxGroup (
41+ filePathsArray : string [ ] ,
42+ name : string ,
43+ path : string ,
44+ sourceTree : string ,
45+ opt : { filesRelativeToProject ?: boolean , target ?: string , uuid ?: string , isMain ?: boolean }
46+ ) : group ;
47+ addBuildProperty ( prop : string , value : any , build_name ?: string , productName ?: string ) : void ;
48+ addToHeaderSearchPaths ( file : string | Object , productName ?: string ) : void ;
49+ removeTargetsByProductType ( targetType : string ) : void
50+ }
51+
52+ class target {
53+ uuid : string ;
54+ pbxNativeTarget : { productName : string }
55+ }
56+
57+ class group {
58+ uuid : string ;
59+ pbxGroup : Object ;
60+ }
61+ }
62+
63+ interface IiOSSigningService {
64+ setupSigningForDevice ( projectRoot : string , projectData : IProjectData , buildConfig : IiOSBuildConfig ) : Promise < void > ;
65+ setupSigningFromTeam ( projectRoot : string , projectData : IProjectData , teamId : string ) : Promise < void > ;
66+ setupSigningFromProvision ( projectRoot : string , projectData : IProjectData , provision ?: string , mobileProvisionData ?: any ) : Promise < void > ;
67+ }
68+
69+ interface IXcodebuildService {
70+ buildForSimulator ( platformData : IPlatformData , projectData : IProjectData , buildConfig : IBuildConfig ) : Promise < void > ;
71+ buildForDevice ( platformData : IPlatformData , projectData : IProjectData , buildConfig : IBuildConfig ) : Promise < string > ;
72+ buildForAppStore ( platformData : IPlatformData , projectData : IProjectData , buildConfig : IBuildConfig ) : Promise < string > ;
73+ }
74+
75+ interface IXcodebuildArgsService {
76+ getBuildForSimulatorArgs ( platformData : IPlatformData , projectData : IProjectData , buildConfig : IBuildConfig ) : Promise < string [ ] > ;
77+ getBuildForDeviceArgs ( platformData : IPlatformData , projectData : IProjectData , buildConfig : IBuildConfig ) : Promise < string [ ] > ;
78+ }
79+
80+ interface IXcodebuildCommandService {
81+ executeCommand ( args : string [ ] , options : IXcodebuildCommandOptions ) : Promise < ISpawnResult > ;
82+ }
83+
84+ interface IXcodebuildCommandOptions {
85+ message ?: string ;
86+ cwd : string ;
87+ stdio ?: string ;
88+ spawnOptions ?: any ;
89+ }
90+
91+ interface IExportOptionsPlistService {
92+ createDevelopmentExportOptionsPlist ( archivePath : string , projectData : IProjectData , buildConfig : IBuildConfig ) : IExportOptionsPlistOutput ;
93+ createDistributionExportOptionsPlist ( projectRoot : string , projectData : IProjectData , buildConfig : IBuildConfig ) : IExportOptionsPlistOutput ;
94+ }
95+
96+ interface IExportOptionsPlistOutput {
97+ exportFileDir : string ;
98+ exportFilePath : string ;
99+ exportOptionsPlistFilePath : string ;
61100}
0 commit comments