Skip to content

Commit

Permalink
Add mobile builds (#755)
Browse files Browse the repository at this point in the history
* Add mobile_builds in config

* Add patch to hide fdroid
  • Loading branch information
estellecomment authored Oct 5, 2023
1 parent cf52067 commit 71b1220
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions config.preprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions config.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions config.prod.lab.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions patches/patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
21 changes: 21 additions & 0 deletions patches/remove-fdroid/matrix-react-sdk+3.79.0.patch
Original file line number Diff line number Diff line change
@@ -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<Props> = ({ onFinished }) => {
>
<GooglePlayBadge />
</AccessibleButton>
+ { /** :TCHAP: remove fdroid button.
+ * Issue filed to element-web : https://github.com/vector-im/element-web/issues/26309
<AccessibleButton
element="a"
href={urlFDroid}
@@ -116,6 +118,7 @@ export const AppDownloadDialog: FC<Props> = ({ onFinished }) => {
>
<FDroidBadge />
</AccessibleButton>
+ */}
</div>
</div>
</div>

0 comments on commit 71b1220

Please sign in to comment.