From 71b1220d911793b64f1d9628f73c0e29eebefe53 Mon Sep 17 00:00:00 2001 From: Estelle Comment Date: Thu, 5 Oct 2023 11:45:11 +0200 Subject: [PATCH] Add mobile builds (#755) * Add mobile_builds in config * Add patch to hide fdroid --- config.dev.json | 5 +++++ config.preprod.json | 5 +++++ config.prod.json | 5 +++++ config.prod.lab.json | 5 +++++ patches/patches.json | 7 +++++++ .../matrix-react-sdk+3.79.0.patch | 21 +++++++++++++++++++ 6 files changed, 48 insertions(+) create mode 100644 patches/remove-fdroid/matrix-react-sdk+3.79.0.patch diff --git a/config.dev.json b/config.dev.json index d51d4c080f..91c2811d29 100644 --- a/config.dev.json +++ b/config.dev.json @@ -85,6 +85,11 @@ "desktopBuilds": { "available": false }, + "mobile_builds": { + "ios": "https://apps.apple.com/us/app/tchap/id1446253779", + "android": "https://play.google.com/store/apps/details?id=fr.gouv.tchap.a", + "fdroid": null + }, "permalink_prefix": "https://www.tchap.incubateur.net", "custom_translations_url_comments": "To add translations, edit /src/i18n/strings/tchap_translations.json. It gets copied over to webapp/i18n for serving.", "custom_translations_url": "/i18n/tchap_translations.json", diff --git a/config.preprod.json b/config.preprod.json index 39d7a6068f..1a692da8cf 100644 --- a/config.preprod.json +++ b/config.preprod.json @@ -79,6 +79,11 @@ "desktop_builds": { "available": false }, + "mobile_builds": { + "ios": "https://apps.apple.com/us/app/tchap/id1446253779", + "android": "https://play.google.com/store/apps/details?id=fr.gouv.tchap.a", + "fdroid": null + }, "permalink_prefix": "https://www.beta.tchap.gouv.fr", "custom_translations_url_comments": "To add translations, edit /src/i18n/strings/tchap_translations.json. It gets copied over to webapp/i18n for serving.", "custom_translations_url": "/i18n/tchap_translations.json", diff --git a/config.prod.json b/config.prod.json index bd278ef79f..084a6b280c 100644 --- a/config.prod.json +++ b/config.prod.json @@ -187,6 +187,11 @@ "desktop_builds": { "available": false }, + "mobile_builds": { + "ios": "https://apps.apple.com/us/app/tchap/id1446253779", + "android": "https://play.google.com/store/apps/details?id=fr.gouv.tchap.a", + "fdroid": null + }, "permalink_prefix": "https://tchap.gouv.fr", "custom_translations_url_comments": "To add translations, edit /src/i18n/strings/tchap_translations.json. It gets copied over to webapp/i18n for serving.", "custom_translations_url": "/i18n/tchap_translations.json", diff --git a/config.prod.lab.json b/config.prod.lab.json index 4936651331..90f5e79a7a 100644 --- a/config.prod.lab.json +++ b/config.prod.lab.json @@ -187,6 +187,11 @@ "desktop_builds": { "available": false }, + "mobile_builds": { + "ios": "https://apps.apple.com/us/app/tchap/id1446253779", + "android": "https://play.google.com/store/apps/details?id=fr.gouv.tchap.a", + "fdroid": null + }, "permalink_prefix": "https://tchap.gouv.fr", "custom_translations_url_comments": "To add translations, edit /src/i18n/strings/tchap_translations.json. It gets copied over to webapp/i18n for serving.", "custom_translations_url": "/i18n/tchap_translations.json", diff --git a/patches/patches.json b/patches/patches.json index f7c7567607..5add8ec223 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -208,5 +208,12 @@ "src/IConfigOptions.ts", "src/components/views/settings/Notifications.tsx" ] + }, + "remove-fdroid": { + "comments" : "remove when issue is fixed in element-web : https://github.com/vector-im/element-web/issues/26309", + "package": "matrix-react-sdk", + "files": [ + "src/components/views/dialogs/AppDownloadDialog.tsx" + ] } } \ No newline at end of file diff --git a/patches/remove-fdroid/matrix-react-sdk+3.79.0.patch b/patches/remove-fdroid/matrix-react-sdk+3.79.0.patch new file mode 100644 index 0000000000..c3a03eb596 --- /dev/null +++ b/patches/remove-fdroid/matrix-react-sdk+3.79.0.patch @@ -0,0 +1,21 @@ +diff --git a/node_modules/matrix-react-sdk/src/components/views/dialogs/AppDownloadDialog.tsx b/node_modules/matrix-react-sdk/src/components/views/dialogs/AppDownloadDialog.tsx +index 586a10c..eed46b5 100644 +--- a/node_modules/matrix-react-sdk/src/components/views/dialogs/AppDownloadDialog.tsx ++++ b/node_modules/matrix-react-sdk/src/components/views/dialogs/AppDownloadDialog.tsx +@@ -107,6 +107,8 @@ export const AppDownloadDialog: FC = ({ onFinished }) => { + > + + ++ { /** :TCHAP: remove fdroid button. ++ * Issue filed to element-web : https://github.com/vector-im/element-web/issues/26309 + = ({ onFinished }) => { + > + + ++ */} + + +