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

Add a warning for the play family policy. #562

Merged
merged 3 commits into from Jul 19, 2021

Conversation

nohe427
Copy link
Collaborator

@nohe427 nohe427 commented Jul 16, 2021

This adds a warning for the Google Play Family Policy to let developers
know about being in compliance and also provides a link for them to
visit to find out more information.
Fixes #545

This adds a warning for the Google Play Family Policy to let developers
know about being in compliance and also provides a link for them to
visit to find out more information.
Fixes GoogleChromeLabs#545
@nohe427
Copy link
Collaborator Author

nohe427 commented Jul 16, 2021

@andreban I took a shot at addressing #545 with this Cl. The only challenge is that when I run the tool from VSCode, it looks like the warning may get cropped off. See this screenshot which shows the warning:

Screenshot 2021-07-16 2 20 38 PM

and this is the screenshot of what it looks like in my terminal after running the tool:
Screenshot 2021-07-16 2 20 45 PM

I am wondering if its better to have some sort of acknowledge the message or something rather than just posting a warning that may get cropped by the terminal.

Is this similar to what you had in mind? Do you have a preferred link to use?

@nohe427
Copy link
Collaborator Author

nohe427 commented Jul 16, 2021

Penny was able to provide this link : https://support.google.com/googleplay/android-developer/answer/9893335 and with a little guidance the policy can be found under family policy requirements - app functionality regarding web views. What do you think of picking one link over the other?

@@ -368,6 +369,11 @@ the PWA:
promptVersionCode: 'Starting version code for the new app version:',
promptUpdateProject: 'There are changes in twa-manifest.json. ' +
'Would you like to apply them to the project before building?',
warnFamilyPolicy: bold(red('WARNING: ')) + 'Trusted Web Activities are currently incompatible' +
Copy link
Member

Choose a reason for hiding this comment

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

Looks good. I wonder if yellow is better for warning, as red can lead developers to think its an error/

@nohe427
Copy link
Collaborator Author

nohe427 commented Jul 17, 2021

Yellow WARNING text

What do you think of the yellow @andreban ?

Copy link
Member

@andreban andreban left a comment

Choose a reason for hiding this comment

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

LGTM

@andreban andreban merged commit 4e0d734 into GoogleChromeLabs:main Jul 19, 2021
@andreban andreban added the enhancement New feature or request label Jul 29, 2021
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.

Add a warning for the Play Family policy when building the application
3 participants