-
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
Adds a generator_app
metatag to AndroidManifest.xml
#90
Conversation
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.
LGTM with one nit and two questions
src/cli/cmds/init.ts
Outdated
@@ -25,6 +25,7 @@ import {TwaGenerator} from '../../lib/TwaGenerator'; | |||
import {TwaManifest} from '../../lib/TwaManifest'; | |||
import {validateColor, validatePassword, validateUrl, notEmpty} from '../inputHelpers'; | |||
import {ParsedArgs} from 'minimist'; | |||
import {APP_NAME} from '../consts'; |
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 please renaming this file to "constants"?
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
@@ -120,6 +120,7 @@ export class TwaManifest { | |||
signingKey: SigningKeyInfo; | |||
appVersion: string; | |||
shortcuts: string; | |||
generatorApp: 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.
On the subject of constants, can any of these members be constant?
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.
Not the members. But moving sone of the "magic values" throughout the code to consts sound like a good idea.
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.
Moved the default values to consts. Not sure what the best practice for JSON field names is.
src/cli/consts.ts
Outdated
* limitations under the License. | ||
*/ | ||
|
||
export const APP_NAME = 'llama-pack-cli'; |
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.
What are our current thoughts about including the llama-pack version as well?
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.
I think we want to add it at some point. Not sure what's the best approach right now though (Do we want the llama-pack version, the template version or most likely both?). So punting this bit until we have more clarity
- Renames `consts.ts` to `constants.ts` - Moves magic values to consts in `TwaManifest.js`
@JudahGabriel FYI