@@ -5,21 +5,21 @@ export class GradleBuildArgsService implements IGradleBuildArgsService {
55 constructor ( private $androidToolsInfo : IAndroidToolsInfo ,
66 private $logger : ILogger ) { }
77
8- public getBuildTaskArgs ( buildConfig : IAndroidBuildConfig ) : string [ ] {
9- const args = this . getBaseTaskArgs ( buildConfig ) ;
10- args . unshift ( this . getBuildTaskName ( buildConfig ) ) ;
8+ public getBuildTaskArgs ( buildData : IAndroidBuildData ) : string [ ] {
9+ const args = this . getBaseTaskArgs ( buildData ) ;
10+ args . unshift ( this . getBuildTaskName ( buildData ) ) ;
1111
1212 return args ;
1313 }
1414
15- public getCleanTaskArgs ( buildConfig : IAndroidBuildConfig ) : string [ ] {
16- const args = this . getBaseTaskArgs ( buildConfig ) ;
15+ public getCleanTaskArgs ( buildData : IAndroidBuildData ) : string [ ] {
16+ const args = this . getBaseTaskArgs ( buildData ) ;
1717 args . unshift ( "clean" ) ;
1818
1919 return args ;
2020 }
2121
22- private getBaseTaskArgs ( buildConfig : IAndroidBuildConfig ) : string [ ] {
22+ private getBaseTaskArgs ( buildData : IAndroidBuildData ) : string [ ] {
2323 const args = this . getBuildLoggingArgs ( ) ;
2424
2525 const toolsInfo = this . $androidToolsInfo . getToolsInfo ( ) ;
@@ -30,13 +30,13 @@ export class GradleBuildArgsService implements IGradleBuildArgsService {
3030 `-PgenerateTypings=${ toolsInfo . generateTypings } `
3131 ) ;
3232
33- if ( buildConfig . release ) {
33+ if ( buildData . release ) {
3434 args . push (
3535 "-Prelease" ,
36- `-PksPath=${ path . resolve ( buildConfig . keyStorePath ) } ` ,
37- `-Palias=${ buildConfig . keyStoreAlias } ` ,
38- `-Ppassword=${ buildConfig . keyStoreAliasPassword } ` ,
39- `-PksPassword=${ buildConfig . keyStorePassword } `
36+ `-PksPath=${ path . resolve ( buildData . keyStorePath ) } ` ,
37+ `-Palias=${ buildData . keyStoreAlias } ` ,
38+ `-Ppassword=${ buildData . keyStoreAliasPassword } ` ,
39+ `-PksPassword=${ buildData . keyStorePassword } `
4040 ) ;
4141 }
4242
@@ -56,9 +56,9 @@ export class GradleBuildArgsService implements IGradleBuildArgsService {
5656 return args ;
5757 }
5858
59- private getBuildTaskName ( buildConfig : IAndroidBuildConfig ) : string {
60- const baseTaskName = buildConfig . androidBundle ? "bundle" : "assemble" ;
61- const buildTaskName = buildConfig . release ? `${ baseTaskName } ${ Configurations . Release } ` : `${ baseTaskName } ${ Configurations . Debug } ` ;
59+ private getBuildTaskName ( buildData : IAndroidBuildData ) : string {
60+ const baseTaskName = buildData . androidBundle ? "bundle" : "assemble" ;
61+ const buildTaskName = buildData . release ? `${ baseTaskName } ${ Configurations . Release } ` : `${ baseTaskName } ${ Configurations . Debug } ` ;
6262
6363 return buildTaskName ;
6464 }
0 commit comments