Commit graph

10597 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
renovate[bot]
60c4155108
fix(deps): update datastore to v1.1.7 (#4754)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-21 18:19:24 +02:00
Benoit Marty
538a8441cd Changelog for version 25.05.4 2025-05-21 18:18:42 +02:00
Benoit Marty
25274ae38f Merge tag 'v25.05.4' into develop
tag
2025-05-21 17:45:19 +02:00
Benoit Marty
0fab33ae06 Merge branch 'release/25.05.4' into main 2025-05-21 17:45:01 +02:00
Benoit Marty
20008625c6 Adding fastlane file for version 25.05.4 2025-05-21 17:44:55 +02:00
Benoit Marty
bb87e7a7b8 Setting version for the release 25.05.4 2025-05-21 17:43:25 +02:00
renovate[bot]
b4de7b101f
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.5.21 (#4759)
* fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.5.21

* Fix API breaks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-05-21 17:39:58 +02:00
Jorge Martin Espinosa
8e87bf2538
Use the right live timeline instance in RustRoomFactory (#4745) 2025-05-20 17:33:25 +02:00
Benoit Marty
e50dfa944a
Fix compilation issues. (#4750)
* Fix compilation issues.

* Fix compilation issues.
2025-05-20 13:12:01 +02:00
Benoit Marty
0e90704603 Kotlin 2.1.21 2025-05-20 09:10:20 +02:00
Benoit Marty
8d115213cc
Reduce API of JoinedRoom, caller must use the Timeline API from liveTimeline instead. (#4731)
This removes lots of boilerplate code.
2025-05-20 09:07:43 +02:00
Benoit Marty
3cf8237d29
Allow configuration to provide multiple account providers. (#4742)
* Allow several account provider in configuration

* Target latest private modules.

* Fix tests

* Target latest private modules.

* Trigger CI

* Fix formatting issue
2025-05-20 08:57:01 +02:00
Benoit Marty
150239bcd8
Merge on boarding module to login module (#4746)
* Move onboarding code to the login module.

* Remove OnBoardingEntryPoint, move the flow to LoginFlowNode

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-05-20 08:54:23 +02:00
Benoit Marty
fd4774d380
Trigger pipeline build when a release tag is pushed (#4741) 2025-05-19 22:44:23 +02:00
ElementBot
34e88f30ae
Sync Strings (#4739)
* Sync Strings from Localazy

* Sync strings again

---------

Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-05-19 08:17:02 +00:00
renovate[bot]
f61be3af6f
fix(deps): update kotlinpoet to v2.2.0 (#4732)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 16:22:32 +00:00
renovate[bot]
a121d71063
fix(deps): update dependency com.squareup.retrofit2:retrofit-bom to v3 (#4729)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 17:56:33 +02:00
renovate[bot]
789da55256
fix(deps): update kotlin (#4713)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 17:49:21 +02:00
renovate[bot]
b2c93441df
chore(deps): update codecov/codecov-action action to v5.4.3 (#4730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-16 16:15:37 +02:00
renovate[bot]
11ac725c2f
fix(deps): update dependency com.squareup.retrofit2:retrofit-bom to v2.12.0 (#4727)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-15 21:39:39 +02:00
Richard van der Hoff
fa4c2ec670
README.md: fix broken linnk (#4728) 2025-05-15 21:38:59 +02:00
Benoit Marty
0817da9691
Fix issues on JoinedRoom / BaseRoom (#4724)
* Import type

* Add test to cover an existing issue. roomCoroutineScope is not cancelled when the class is destroyed

* Cancel roomCoroutineScope when the class is destroyed

* Move `isOneToOne` to BaseRoom, we do not need a JoinedRoom for it.

* Let `roomInfoFlow` be implemented by RustBaseRoom.

It should fix a few issues where we rely on the room info to be live, and it was not the case on RustBaseRoom.

* Add more assertions.
The test would fail anyway if roomCoroutineScope was still active, but it's more explicit with these assertions.
2025-05-15 16:08:58 +00:00
renovate[bot]
882a690a6c
fix(deps): update dependency com.posthog:posthog-android to v3.15.0 (#4723)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-15 17:42:48 +02:00
Benoit Marty
38ad415ab5
Ensure the CI is marked as failed when Maestro test is failing (#4700)
* Ensure the CI is marked as failed when Maestro test is failing

* Fix typo in String to disable bookmark in ChromeCustomTab

* Fix Maestro test now that matrix.org is using MAS to authenticate.

* Fix Maestro test - other issues due to recent changes.

* Maestro: add test on Element Call

* Run through Chrome on boarding step.

* Try suggestion from https://github.com/mobile-dev-inc/Maestro/issues/1126#issuecomment-2842220361

* Revert "Try suggestion from https://github.com/mobile-dev-inc/Maestro/issues/1126#issuecomment-2842220361"

This reverts commit d400644622c1a240deb61040f9095e3221e07f21.

* Add comment on Maestro flow.
2025-05-15 17:14:41 +02:00
Benoit Marty
f1ca70fb9a
Check homeserver when login using qr code (#4708)
* Login with Qr code: check homeserver validity

* QrCode login, unauthorized homeserver: update copy.

* Update screenshots

* Add unit test on SdkQrCodeLoginData

* Remove default param value.

* Remember imageAnalysis

---------

Co-authored-by: ElementBot <android@element.io>
2025-05-15 14:08:05 +02:00
renovate[bot]
9825469912
chore(deps): update plugin sonarqube to v6.2.0.5505 (#4725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-15 11:29:45 +02:00
Jorge Martin Espinosa
9f39ad885b
Remove event cache feature flag (#4719) 2025-05-15 09:42:18 +02:00
ganfra
49b885579f
Merge pull request #4718 from element-hq/feature/fga/report_room_enabled_flow
Change (report room) : check if server supports the report room api
2025-05-14 17:25:17 +02:00
ganfra
9c69718026
Merge pull request #4717 from element-hq/renovate/io.sentry-sentry-android-8.x
fix(deps): update dependency io.sentry:sentry-android to v8.12.0
2025-05-14 15:14:19 +02:00
ganfra
21f75db4bb change (report room) : use client.isReportRoomApiSupported instead of hardcoded value 2025-05-14 11:07:17 +02:00
renovate[bot]
4eca668f35
fix(deps): update dependency io.sentry:sentry-android to v8.12.0 2025-05-13 23:03:34 +00:00
renovate[bot]
9234de6b8e
fix(deps): update dependency org.matrix.rustcomponents:sdk-android to v25.5.13 (#4716)
Adapt to SDK changes:
- Replace `RoomInfo.isTombstoned: Boolean` with `RoomInfo.tombstone: RoomTombstone?`.
- Add `loginHint` parameter to `Client.urlForOidc`.
- Remove `ClientBuilder.useEventCachePersistentStorage`, as it's not longer optional.
2025-05-13 16:29:34 +00:00
Jorge Martin Espinosa
4f39e09f91
Fix generic mime type being uploaded when several files are externally shared with the app. (#4715)
i.e. `image/*` when sharing a png and jpg file.
2025-05-13 15:26:47 +00:00
Benoit Marty
f6cbca4a82
Disable mutliple click (parallel or serial) on a room (#4683)
* Disable mutliple click (parallel or serial) on a room (Fixes #4619)

* Rename method from FirstThrottler

* Move check to the Compose and add unit test on it.
2025-05-13 14:12:19 +02:00
Jorge Martin Espinosa
c9ec26f87c
When transcoding a video fails, send it as a file (#4257)
- If the video can't be transcoded it will be uploaded as a file instead.
- If the video already has the right format and dimensions, don't transcode it.
- Update the dimensions to 720p max when enabling media compression and 1080p otherwise, matching Element X iOS.
2025-05-13 11:04:51 +00:00
ganfra
4a702ba4a6
Merge pull request #4688 from element-hq/renovate/migrate-config
chore(config): migrate renovate config
2025-05-13 12:00:14 +02:00
Benoit Marty
0255111528
Improve audio focus management (#4707)
* Extract Audio focus management to its own modules.

* Request Audio focus when playing a voice message.

* Add missing dependency.
(and remove a duplicated one)

* Request Audio focus when playing a video/audio in the media viewer.

* Pause audio when audio focus is lost.

* Rename class

* Fix tests

* Fix detekt issue.

* Audio focus: let the system handle automatic ducking when playing media.

* Document and update API

* Remove useless space.
2025-05-13 09:54:58 +00:00
Jorge Martín
e6b1c196d6 Changelog for version 25.05.3 2025-05-12 17:52:42 +02:00
Jorge Martín
e65a8d5b65 Merge tag 'v25.05.3' into develop
v25.05.3
2025-05-12 17:11:06 +02:00
Jorge Martín
c78d0fcdd2 Merge branch 'release/25.05.3' 2025-05-12 17:10:59 +02:00
Jorge Martín
2915f0c4d6 Adding fastlane file for version 25.05.3 2025-05-12 17:10:58 +02:00
Jorge Martín
b396ca3159 Setting version for the release 25.05.3 2025-05-12 17:10:08 +02:00
Jorge Martín
06e8f740d4 Merge tag 'v25.05.2' into develop
v25.05.2
2025-05-12 16:43:42 +02:00
Jorge Martín
30a49216f7 Merge branch 'release/25.05.2' 2025-05-12 16:43:35 +02:00
Jorge Martín
6b90a5e4da Adding fastlane file for version 25.05.2 2025-05-12 16:43:34 +02:00
Jorge Martín
e9f87e35fe Setting version for the release 25.05.2 2025-05-12 16:43:34 +02:00
Benoit Marty
fe91895c9a
Disable Continue button when the login field is cleared. (#4699)
* Disable Continue button when the login field is cleared.
Fixes #4691

* Add tests on LoginPasswordView
2025-05-12 14:45:07 +02:00
Jorge Martin Espinosa
525d72d85b
Revert "fix(deps): update dependency io.element.android:element-call-embedded…" (#4706) 2025-05-12 14:07:50 +02:00
ElementBot
019327ef9b
Sync Strings from Localazy (#4703)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-05-12 09:56:19 +02:00