From 30834ad97728bf1989f79b60ccbeb86a1ef77a64 Mon Sep 17 00:00:00 2001 From: Chen Levy Date: Tue, 27 Oct 2020 09:14:32 +0000 Subject: [PATCH] Added saving the share target data as a string resource --- packages/core/template_project/app/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/core/template_project/app/build.gradle b/packages/core/template_project/app/build.gradle index 37574a60..ea9a0bf2 100644 --- a/packages/core/template_project/app/build.gradle +++ b/packages/core/template_project/app/build.gradle @@ -72,6 +72,11 @@ android { resValue "string", "webManifestUrl", '<%= webManifestUrl %>' <% } %> + <% if (twaManifest.webShare) { %> + // The data for the app to support web share target. + resValue "string", "webShare", twaManifest.webShare + <% } %> + // The hostname is used when building the intent-filter, so the TWA is able to // handle Intents to open https://svgomg.firebaseapp.com. resValue "string", "hostName", twaManifest.hostName