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

Adds web-manifest-url meta-tag and web-app-manifest.json #98

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

andreban
Copy link
Member

@andreban andreban commented Feb 5, 2020

  • When webManifestUrl is set on twa-manifest.json, it includes a
    web-manifest-url meta-tag on AndroidManifest.xml with the
    correct value and creates a web-app-manifest.json at /res/raw
  • When webManifestUrl ist not set, it doesn't add any meta tag

Closes #88

- When webManifestUrl is set on twa-manifest.json, it includes a
 `web-manifest-url` meta-tag on AndroidManifest.xml with the
  correct value and creates a web-app-manifest.json at /res/raw
- When webManifestUrl ist not set, it doesn't add any meta tag
<meta-data
android:name="cros_web_alternative"
android:value="@string/crosLaunchUrl" />
<% if (webManifestUrl) { %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Huh, I did not know we could use substitutions in the AndroidManifest.xml

Copy link
Member Author

Choose a reason for hiding this comment

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

That's lodash, the template engine we're using in llama-pack.

@andreban
Copy link
Member Author

andreban commented Feb 5, 2020

@dominickng FYI

@andreban andreban marked this pull request as ready for review February 6, 2020 17:45
@andreban andreban merged commit 7bbed5b into GoogleChromeLabs:master Feb 6, 2020
@andreban andreban deleted the cros-compat 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.

Add web_alternative flag and include web manifest for Chrome OS
2 participants