Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-18441] Add --sigalg option on cli for overriding keystore signing algorithm. #9484

Merged
merged 7 commits into from Oct 9, 2017

Conversation

gimdongwoo
Copy link
Contributor

JIRA: https://jira.appcelerator.org/browse/TIMOB-18441

Optional Description:

ti build -p android -T dist-playstore --sigalg SHA1withRSA

This is a very simple changes.
But, sometimes this is necessary.
Therefore, this is no reason not to provide.

Thank you.

@cb1kenobi
Copy link
Contributor

I'm fine with this feature, but this CLI option needs to be explicitly declared so that it shows up in the help, must have validation, and must have a default value.

@gimdongwoo
Copy link
Contributor Author

@cb1kenobi Ok, I will update soon!

Copy link
Contributor

@cb1kenobi cb1kenobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking really good, just one small change.

@@ -878,6 +878,12 @@ AndroidBuilder.prototype.config = function config(logger, config, cli) {
order: 120,
required: true,
values: _t.targets
},
'sigalg': {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a default property with a value of 'MD5withRSA' so that it signifies the default value in the help screen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, good!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! Thank you :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh boy, I messed up. Specifying a default will properly show the correct default in the help screen, but then this.sigalg will always have a value and it never falls back to the auto-detected this.keystoreAlias.sigalg.

My apologies. Please remove the default value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! It's really easy thing. I have committed. Thank you for your kind review. 👍

@@ -878,6 +878,12 @@ AndroidBuilder.prototype.config = function config(logger, config, cli) {
order: 120,
required: true,
values: _t.targets
},
'sigalg': {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh boy, I messed up. Specifying a default will properly show the correct default in the help screen, but then this.sigalg will always have a value and it never falls back to the auto-detected this.keystoreAlias.sigalg.

My apologies. Please remove the default value.

@cb1kenobi
Copy link
Contributor

Looks great! Thank you very much!

@cb1kenobi cb1kenobi merged commit c692843 into tidev:master Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants