Commit graph

47 commits

Author SHA1 Message Date
Benoit Marty
5a2aeac6b6
Add support for login link (#4752)
* Add support for login link

https://mobile.element.io/element?account_provider=example.org&login_hint=mxid:@alice:example.org

* Update screenshots

* Reduce code duplication

* Add test on OnBoardingPresenter

* Fix tool

* Ignore login parameter if user is not allowed to connect to the provided server.

* Improve tests.

* Cleanup

* Revert change on Project.xml.

* Add documentation

* Improve LoginHelper

* Rename LoginFlow to LoginMode

Move LoginFlow to package io.element.android.features.login.impl.login
Rename some implementation of LoginMode
Rename LoginFlowView to LoginModeView

* Change launchMode of MainActivity from `singleTop` to `singleTask`

Using launchMode singleTask to avoid multiple instances of the Activity when the app is already open. This is important for incoming share and for opening the application from a mobile.element.io link.

Closes #4074

---------

Co-authored-by: ElementBot <android@element.io>
2025-05-21 18:19:42 +02:00
Benoit Marty
c61ee59528
Improve the callback uri format and customization. (#4664)
* Remove unused SUPPORT_EMAIL_ADDRESS

* Improve the callback uri format and customization.

Use io.element.android for the scheme of Oidc redirection for Element X.
For nightly the scheme will be io.element.android.nightly
For debug the scheme will be  io.element.android.debug

Element Pro is using `io.element`
2025-05-05 17:46:17 +02:00
Benoit Marty
b068597a25
OIDC configuration (#4623)
* Login: more logs.

* Login: map Oidc error to provide more information in the error dialog.

* Oidc: use the application name.

* Oidc: move configuration from OidcConfigurationProvider to OidcConfig and add some comments.

* Oidc: limit to only 1 contact in the configuration.

* Oidc: Move configuration to BuildConfig file.

* Remove unused const.

* Add missing test on Exception mapping

* Remove contacts from OidcConfiguration.

https://github.com/matrix-org/matrix-rust-sdk/pull/4958
2025-04-23 11:58:38 +02:00
Benoit Marty
97f3be3dc5 Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Joe Groocock
17ea2aa5dc
Enable predictive back gesture (#3797)
This only animates closing the app, but it's better than nothing.

Signed-off-by: Joe Groocock <me@frebib.net>
2024-11-04 13:44:35 +01:00
Benoit Marty
375ac25d8d Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
Benoit Marty
85c55150b5 Remove removal of androidx.startup.InitializationProvider. This provider is declared at line 39 in this file.
Fix the warning: `provider#androidx.startup.InitializationProvider was tagged at AndroidManifest.xml:149 to remove other declarations but no other declaration present`
2024-07-02 14:52:13 +02:00
Benoit Marty
e619fefb7f Add a flag to enable or disable incoming share 2024-06-06 12:34:05 +02:00
Benoit Marty
9ae0107172 Incoming share 2024-06-05 18:08:14 +02:00
Benoit Marty
c058c265f1
Merge pull request #2799 from element-hq/feature/bma/explicitLanguageListSupport
Add Explicit list of supported languages, generated from Localazy data.
2024-05-06 17:10:30 +02:00
Benoit Marty
6ff1af3276 Add Explicit list of supported languages, generated from Localazy data. 2024-05-06 14:51:19 +02:00
Benoit Marty
19a97c62a8 Add warning about *.element.io 2024-05-06 11:40:16 +02:00
Benoit Marty
227611cfba Add links to the matching assetlinks.json files. 2024-05-06 11:34:23 +02:00
Benoit Marty
6e7bbd6972 Explicitly set domain for external link handling.
And revert change: let ElementCallActivity handle again `call.element.io` links.
2024-05-06 11:12:09 +02:00
Benoit Marty
baf3877bf7 Fix link from matrix.to websote not working. 2024-05-03 12:39:52 +02:00
Benoit Marty
1bcfa6034c Add support for link generated by matrix.to website. 2024-05-03 11:57:22 +02:00
Benoit Marty
0fb89bd4b2 Let MainActivity manage Element Call https links. 2024-05-02 15:37:57 +02:00
Benoit Marty
0476bd95c8 Open user profile and room with event from permalink 2024-05-02 12:25:21 +02:00
Marco Romano
794ad4ab95
Switch off enableOnBackInvokedCallback due to androidx bug (#1517)
Switch off `enableOnBackInvokedCallback` until https://issuetracker.google.com/issues/271303558 is fixed.


Fixes https://github.com/vector-im/element-x-android/issues/1461
2023-10-09 08:39:56 +00:00
Benoit Marty
55a9d30b99 Format file. 2023-09-28 10:54:42 +02:00
Benoit Marty
949a24560f Import network-security-config.xml file from EA. 2023-09-28 10:54:26 +02:00
Marco Romano
5d15b1ab91 Enable Android 13/14 predictive back gesture
https://developer.android.com/guide/navigation/custom-back/predictive-back-gesture
2023-09-18 12:07:26 +02:00
Jorge Martin Espinosa
e19b27badf
De-duplicate sonar job in the CI (#1238)
* De-duplicate sonar job in the CI

* Remove workaround for `src/*/kotlin` folders

* Downgrade the sonarqube plugin version

* Try increasing workers for this job, since it's quite slow

* Warn about regression in latest sonarqube release

* Forbid backups to prevent cryptographic issues
2023-09-07 11:19:13 +00:00
Jorge Martín
4e3bea08e6 Fix tests and warnings 2023-07-26 10:42:28 +02:00
Jorge Martin Espinosa
9247cd765a
Fix: make sure we ignore notifications for open rooms (#867)
* Make sure we ignore notifications for open rooms
- Listen to process lifecycle changes in `AppForegroundStateService`. Use initializers to reliable create it.
- Merge `AppNavigationState` with `AppForegroundState`. Renamed the previous `AppNavigationState` to `NavigationState`, created a new `AppNavigationState` which contains both the navigation state and the foreground state.
2023-07-17 17:02:06 +02:00
Jorge Martin Espinosa
a0c1f2c18a
Display room invitation notification (#735)
* Notifications: Add some extra mappings so we keep the original contents and can pass it later to an UI layer

* Fix notifications not appearing for a room if the app was on that room when it went to background.

* Modernize how we create spannable strings for notifications, remove unneeded dependency

* Remove actions from invite notifications temporarily

* Add `NotificationDrawerManager` interface to be able to clear membership notifications when accepting or rejecting a room invite

* Fix tests

* Add comment to clarify some weird behaviours

* Address review comments

* Set circle shape for `largeBitmap` in message notifications

* Fix no avatar in DM rooms

* Fix rebase issues

* Add invite list pending intent:

- Refactor pending intents.
- Make `DeepLinkData` a sealed interface.
- Fix and add tests.

* Rename `navigate__` functions to `attach__`

* Add an extra test case for the `InviteList` deep link

* Address most review comments.

* Fix rebase issue

* Add fallback notification type, allow dismissing invite notifications.

Fallback notifications have a different underlying type and can be dismissed at will.

* Fix tests
2023-07-10 14:34:58 +02:00
ganfra
fa63ed1faf MediaViewer: improve actions (save on disk and share) 2023-06-02 20:13:17 +02:00
Benoit Marty
47af53049e Avoid Custom Chrome tab to appear as recent activity. 2023-05-30 15:59:58 +02:00
Benoit Marty
d2f969252d Oidc with CustomTab 2023-05-30 15:59:58 +02:00
Jorge Martin Espinosa
5eaa40a14b [Media upload] Media pre-processing (#403)
* Create `mediaupload` module for media pre-processing.

* Split `mediapicker` and `mediaupload` modules.
2023-05-10 10:06:56 +02:00
Jorge Martin Espinosa
eeca1c9ee3 Add PickerLauncher wrapper for media/file pickers. (#361)
* Add `PickerLauncher` wrapper for media/file pickers.

* Add FileProvider path, handle Camera picker and add NoOp implementation to fix tests.

* Move media pickers to their own module.

* Add missing media pickers

* Add feature flag and some extra tests
2023-04-28 10:52:34 +02:00
Benoit Marty
b0f14bfb15 Deeplink: handle notification click to open a room. 2023-04-13 15:35:01 +02:00
Benoit Marty
8d5ecfd358 Fix multi Activity wen opening app from notification. 2023-04-05 16:59:17 +02:00
ganfra
6989994b50 Create sample app for checking stuff quickly 2023-02-14 20:57:11 +01:00
ganfra
d43d433d38 Add uiMode to configChanges as it's handled by compose 2023-02-01 15:56:30 +01:00
ganfra
4b010e01df Add splash for android < 12 so app is not completely blank during process creation 2023-01-31 20:49:47 +01:00
ganfra
9e211b5e04 Merge branch 'develop' into feature/fga/navigation First step: makes it compile by disabling the new screens (need to migrate to nodes) 2023-01-06 19:22:52 +01:00
ganfra
13bf2765e4 Let compose handle some config changes 2023-01-03 19:49:47 +01:00
Benoit Marty
19301756e3 Add missing Copyright 2022-12-22 13:51:56 +01:00
Benoit Marty
0644a5822f Code quality
Code quality
2022-12-21 15:32:53 +01:00
ganfra
05dc3b636c Continue setting up dagger 2022-12-14 20:15:51 +01:00
Benoit Marty
dd4d2bcd74 Temporary block orientation to sensorPortrait because the RichTextEditor library is crashing on configuration change.
No quick fix found so far.
2022-11-22 16:13:16 +01:00
Benoit Marty
04d2e206ee Composer compiling and running 2022-11-08 15:59:07 +01:00
Benoit Marty
1238047b08 Add a module for the Matrix SDK with the aar of the Rust SDK 2022-10-11 14:05:39 +02:00
Benoit Marty
383be4802c Create login module 2022-10-10 11:53:22 +02:00
Benoit Marty
6a6cab33fd Use latest libraries and SDK 2022-10-07 15:40:50 +02:00
Benoit Marty
4dc26a4ffa Create project from AS wizard "Empty Compose Activity (Material 3)" 2022-10-07 15:05:13 +02:00