-
Notifications
You must be signed in to change notification settings - Fork 162
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
Conversation
- 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.
There was a problem hiding this 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.
src/cli/cmds/build.ts
Outdated
* @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]> { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/cli/cmds/build.ts
Outdated
console.log('Installing Android Build Tools. Please, read and accept the license agreement'); | ||
await androidSdkTools.installBuildTools(); | ||
if (envKeyPass !== undefined && envKeystorePass !== undefined) { | ||
return [envKeystorePass, envKeyPass]; |
There was a problem hiding this comment.
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."?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
LLAMA_PACK_KEYSTORE_PASSWORD
andLLAMA_PACK_KEY_PASSWORD
enviroment variables to set thekeystore and key passwords.
prompting the users for the passwords.
Closes #30