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

Allows automated builds #91

Merged
merged 3 commits into from
Jan 31, 2020
Merged

Conversation

andreban
Copy link
Member

  • Developers can use the LLAMA_PACK_KEYSTORE_PASSWORD and
    LLAMA_PACK_KEY_PASSWORD enviroment variables to set the
    keystore and key passwords.
  • When both passwords are set, they will be used instead of
    prompting the users for the passwords.

Closes #30

- Developers can use the `LLAMA_PACK_KEYSTORE_PASSWORD` and
  `LLAMA_PACK_KEY_PASSWORD` enviroment variables to set the
  keystore and key passwords.
- When both passwords are set, they will be used instead of
  prompting the users for the passwords.
@andreban andreban requested a review from PEConn January 31, 2020 11:11
Copy link
Collaborator

@PEConn PEConn left a comment

Choose a reason for hiding this comment

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

Structure/functionality looks good, just a code tidiness and a UX issue.

* @returns {Promise<[string, string]>} A promise with a tuple where the first item is they
* keystore password and the second is the key password.
*/
async function getPasswords(): Promise<[string, string]> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you create a class/interface for this with keystorePassword and keyPassword as members?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

console.log('Installing Android Build Tools. Please, read and accept the license agreement');
await androidSdkTools.installBuildTools();
if (envKeyPass !== undefined && envKeystorePass !== undefined) {
return [envKeystorePass, envKeyPass];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a log line here saying something like "Using passwords set in the LLAMA_PACK_KEYSTORE_PASSWORD and LLAMA_PACK_KEY_PASSWORD environmental variables."?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@andreban andreban requested a review from PEConn January 31, 2020 13:02
@andreban andreban merged commit 3d221cb into GoogleChromeLabs:master Jan 31, 2020
@andreban andreban added this to the 1.0.0 milestone Feb 3, 2020
@andreban andreban deleted the automated-builds branch February 13, 2020 08:14
@andreban andreban added the enhancement New feature or request label Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow automating the build command.
2 participants