11export type AddPlatformData = Pick < any , 'platformParam' > & Partial < Pick < IOptions , 'frameworkPath' > > & Partial < Pick < any , 'nativePrepare' > > ;
2+ export type PreparePlatformData = Pick < any , 'nativePrepare' > & Pick < IOptions , 'env' | 'release' > ;
3+ export type IOSPrepareData = PreparePlatformData & Pick < IOptions , 'teamId' | 'provision' > & Pick < any , 'mobileProvisionData' > ;
24
35export class WorkflowDataService {
46 constructor (
@@ -15,7 +17,7 @@ export class WorkflowDataService {
1517 projectData,
1618 nativePlatformData,
1719 addPlatformData : this . getAddPlatformData ( "ios" , options ) ,
18- preparePlatformData : new PreparePlatformData ( options ) ,
20+ preparePlatformData : this . getIOSPrepareData ( options ) ,
1921 buildPlatformData : new IOSBuildData ( options ) ,
2022 deployPlatformData : new DeployPlatformData ( options ) ,
2123 liveSyncData : { } ,
@@ -25,7 +27,7 @@ export class WorkflowDataService {
2527 projectData,
2628 nativePlatformData,
2729 addPlatformData : this . getAddPlatformData ( "android" , options ) ,
28- preparePlatformData : new PreparePlatformData ( options ) ,
30+ preparePlatformData : this . getPreparePlatformData ( options ) ,
2931 buildPlatformData : new AndroidBuildData ( options ) ,
3032 deployPlatformData : new DeployPlatformData ( options ) ,
3133 liveSyncData : { } ,
@@ -43,6 +45,23 @@ export class WorkflowDataService {
4345 platformParam : options . platformParam || platform ,
4446 } ;
4547 }
48+
49+ private getPreparePlatformData ( options : IOptions | any ) {
50+ return {
51+ env : options . env ,
52+ release : options . release ,
53+ nativePrepare : options . nativePrepare
54+ } ;
55+ }
56+
57+ private getIOSPrepareData ( options : IOptions | any ) {
58+ return {
59+ ...this . getPreparePlatformData ( options ) ,
60+ teamId : options . teamId ,
61+ provision : options . provision ,
62+ mobileProvisionData : options . mobileProvisionData
63+ } ;
64+ }
4665}
4766$injector . register ( "workflowDataService" , WorkflowDataService ) ;
4867
@@ -65,21 +84,21 @@ export class WorkflowData {
6584// public nativePrepare = this.options.nativePrepare;
6685// }
6786
68- export class PreparePlatformData {
69- constructor ( protected options : IOptions | any ) { }
87+ // export class PreparePlatformData {
88+ // constructor(protected options: IOptions | any) { }
7089
71- public env = this . options . env ;
72- public release = this . options . release ;
73- public nativePrepare = this . options . nativePrepare ;
74- }
90+ // public env = this.options.env;
91+ // public release = this.options.release;
92+ // public nativePrepare = this.options.nativePrepare;
93+ // }
7594
76- export class IOSPrepareData extends PreparePlatformData {
77- constructor ( options : IOptions | any ) { super ( options ) ; }
95+ // export class IOSPrepareData extends PreparePlatformData {
96+ // constructor(options: IOptions | any) { super(options); }
7897
79- public teamId = this . options . teamId ;
80- public provision = this . options . provision ;
81- public mobileProvisionData = this . options . mobileProvisionData ;
82- }
98+ // public teamId = this.options.teamId;
99+ // public provision = this.options.provision;
100+ // public mobileProvisionData = this.options.mobileProvisionData;
101+ // }
83102
84103export class BuildPlatformDataBase {
85104 constructor ( protected options : IOptions | any ) { }
0 commit comments