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 static file .well-known/assetlinks.json #27439

Merged
merged 4 commits into from
May 14, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented May 7, 2024

Add static file .well-known/assetlinks.json to allow Android applications Element and Element X running on Android 12 and higher to open external links with the domains app.element.io, develop.element.io and staging.element.io.

This is the Android equivalent of the file https://github.com/element-hq/element-web/blob/develop/res/apple-app-site-association

Epic: https://github.com/element-hq/element-internal/issues/534

Note: I understand that once merged and deployed, the following URLs will return the file which is added by this PR (currently returning 404):

Please let me know if this is not the case!

Thanks.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

…tions Element and Element X running on Android 12 and higher to open external links.
@bmarty bmarty requested a review from a team as a code owner May 7, 2024 10:19
@bmarty bmarty requested review from florianduros and robintown May 7, 2024 10:19
@t3chguy
Copy link
Member

t3chguy commented May 7, 2024

You'll need to update other files which reference apple-app-site-association similarly e.g. cfp_headers and the webpack config

@@ -736,6 +736,7 @@ module.exports = (env, argv) => {
new CopyWebpackPlugin({
patterns: [
"res/apple-app-site-association",
"res/.well-known/assetlinks.json",
Copy link
Member Author

Choose a reason for hiding this comment

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

No sure that the file will be copied to the correct destination. Can you confirm @t3chguy ?

Sorry I am a newbie here :)

Copy link
Member

Choose a reason for hiding this comment

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

It probably won't. I suggest testing it locally.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it was not working as expected.
After 095c613 it's fine.

Tested OK using ./scripts/ci_package.sh

@bmarty bmarty added the T-Task Tasks for the team like planning label May 14, 2024
@bmarty
Copy link
Member Author

bmarty commented May 14, 2024

@florianduros @robintown is there anything else I need to do to make this PR "mergeable"? Thanks!

Copy link
Member

@robintown robintown left a comment

Choose a reason for hiding this comment

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

Seems to be working now

@robintown robintown removed the request for review from florianduros May 14, 2024 16:00
@robintown robintown added this pull request to the merge queue May 14, 2024
@robintown
Copy link
Member

(merging myself since @bmarty isn't on the contributors team)

Merged via the queue into element-hq:develop with commit 482b81b May 14, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants