Commit graph

8578 commits

Author SHA1 Message Date
Benoit Marty
74aa1ce695 Remove supportSlidingSync boolean.
Note that this field was not used (read) anymore, so this is just cleaning up the code.
2024-10-04 16:56:16 +02:00
Benoit Marty
39d7084554
Merge pull request #3559 from element-hq/renovate/dependencyanalysis
chore(deps): update dependencyanalysis to v2.1.3
2024-10-04 16:09:31 +02:00
Benoit Marty
05a6a3b3ce
Merge pull request #3604 from element-hq/feature/bma/fixBuildWithLocalSdk
Fix building the app using a local SDK.
2024-10-04 15:02:25 +02:00
Valere
802126186c
Merge pull request #3602 from element-hq/feature/valere/bump_rust_sdk_0.2.51
dependency: Bump rust sdk to 0.2.51
2024-10-04 14:19:58 +02:00
Jorge Martin Espinosa
f9cdb5af70
Disable configuration cache in the CI by default (#3601) 2024-10-04 13:57:46 +02:00
Valere
2230163bbe dep | Adapt rust-sdk, rename PreviouslyVerified to VerificationViolation 2024-10-04 12:37:33 +02:00
Benoit Marty
1e91e8b356 Fix building the app using a local SDK.
Inject `AnalyticsService` instead of `UtdTracker` since `UtdTracker` requires access to `org.matrix.rustcomponents.sdk.UnableToDecryptDelegate`
2024-10-04 12:01:30 +02:00
Valere
cafc04b740 dependency: Bump rust sdk to 0.2.51 2024-10-04 11:50:01 +02:00
renovate[bot]
a91eaba153
Update dependencyAnalysis to v2.1.3 2024-10-04 07:25:39 +00:00
Benoit Marty
89891bf50f
Merge pull request #3591 from element-hq/renovate/com.posthog-posthog-android-3.x
Update dependency com.posthog:posthog-android to v3.8.0
2024-10-03 21:22:48 +02:00
ganfra
c1337dea75
Merge pull request #3597 from element-hq/feature/fga/timeline_better_jump_to_behaviours
Timeline better jump to behaviours
2024-10-03 17:16:16 +02:00
Jorge Martin Espinosa
4d6b37f157
Merge unit, screenshot tests and coverage in a single CI call (#3593)
* Merge unit, screenshot tests and coverage tasks in a single CI call

* Disable gradle daemon too since it's all in a single gradle call now

* Make Kover upload the HTML reports on failure too
2024-10-03 15:38:08 +02:00
ganfra
adc03c9676 timeline : improve jumpTo precision (introducing animateScrollToItemCenter) 2024-10-03 15:33:03 +02:00
ganfra
88e01e7c2e timeline : fix jumpToBottom for not live timeline. 2024-10-03 13:14:14 +02:00
ganfra
8b6fba8512 timeline : add synchronisation around timelineItemIndexer 2024-10-03 13:14:14 +02:00
ganfra
b88e65a3ed timeline : fix lastOutgoingMessage after last changes 2024-10-03 13:14:14 +02:00
ganfra
1e4c30c569 timeline : makes typingNotification item part of the timelineItems. 2024-10-03 13:14:14 +02:00
renovate[bot]
e5a3b112eb
Update dependency com.posthog:posthog-android to v3.8.0 2024-10-03 09:38:53 +00:00
Jorge Martin Espinosa
f8fa218146
Upgrade the used JDK in the project to v21 (#3582)
* Upgrade the used JDK in the project to v21

* Use it for CI too

* Centralise java language version

* Fix deprecations, tests and lint issues

* Fix coverage taking into account `@Preview` annotated code.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-03 09:38:03 +00:00
Benoit Marty
9f7e4d5022
Merge pull request #3585 from element-hq/feature/bma/fixTests
Fix tests on develop
2024-10-02 22:01:52 +02:00
Benoit Marty
55c11e966e Fix a naming issue. 2024-10-02 21:28:35 +02:00
Benoit Marty
ed1cb24c28 Fix tests, replace outdated SDK fixtures 2024-10-02 21:27:10 +02:00
Benoit Marty
29356b96c1
Merge pull request #3554 from element-hq/feature/bma/testEmptyTimeline
Add unit tests on TimelineItemsSubscriber
2024-10-02 14:04:48 +02:00
Benoit Marty
ee7e5b8a46
Merge pull request #3576 from frebib/frebib/dupe-room-crash
Prevent crash with duplicate room suggestion
2024-10-02 13:54:19 +02:00
renovate[bot]
1c4ac316c9
Update android.gradle.plugin to v8.7.0 (#3577)
* Update android.gradle.plugin to v8.7.0

* Bump Android lint version to `8.8.0-alpha04`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-10-02 13:53:25 +02:00
Jorge Martin Espinosa
79c17f714f
Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
Joe Groocock
7f3ebbb85d
Prevent crash with duplicate room suggestion
If two rooms have the same canonical alias, e.g. the recently tombstoned
and upgraded #foundation-office:matrix.org, typing `#foun` into the
composer could cause the app to crash. This avoids that by using the
(hopefully) globally unique room id as the key instead.

Signed-off-by: Joe Groocock <me@frebib.net>
2024-10-02 09:47:29 +00:00
Jorge Martin Espinosa
f344a1282c
Don't display security banner for unknown RecoveryState (#3579)
* Don't display security banner for unknown `RecoveryState`

* Don't display 'set up recovery' if its status is unknown.

Add more screenshot tests.

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 09:28:33 +00:00
Benoit Marty
729334ba4d Git ignore .idea/runConfigurations.xml 2024-10-02 11:05:00 +02:00
Benoit Marty
63d54a4373
Merge pull request #3578 from element-hq/renovate/com.google.firebase-firebase-bom-33.x
Update dependency com.google.firebase:firebase-bom to v33.4.0
2024-10-02 10:05:31 +02:00
renovate[bot]
305c4d5a96
Update dependency com.google.firebase:firebase-bom to v33.4.0 2024-10-01 22:38:27 +00:00
Jorge Martin Espinosa
1d5509e2eb
Don't delete uploaded logs (#3540) 2024-10-01 13:31:34 +02:00
renovate[bot]
3001efb525
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.50 (#3565)
* Adapt to changes in the SDK

* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.50

* Use lambda instead of overriding the `EventDebugInfoProvider` interface

* Fix test proposal.
We may find a better way to compare data class instance if we need to do more comparison in the future...

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-01 09:44:52 +02:00
Benoit Marty
249104bf38
Merge pull request #3567 from frebib/frebib/captioned-filename
Use MSC2530 filename when loading media
2024-09-30 23:06:31 +02:00
Joe Groocock
555f73dfa8
Use MSC2530 filename when loading media
In the case of captioned images, the `body` of the event is the caption,
and is ill suited to be a filename. Often the caption can be
prohibitively long, causing the media to fail to load in some cases.

Fixes: https://github.com/element-hq/element-x-android/issues/2882
Signed-off-by: Joe Groocock <me@frebib.net>
2024-09-30 20:05:58 +00:00
Jorge Martin Espinosa
48a4a9d69b
Update Gradle impl module template with setupAnvil() call (#3563) 2024-09-30 14:28:06 +02:00
Jorge Martin Espinosa
eeec7cc785
Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty
a9b45a2f57
Merge pull request #3349 from frebib/fix/warnings
Fix a couple of build-time warnings in Gradle output
2024-09-30 11:47:21 +02:00
Benoit Marty
96fae1b6d8
Merge pull request #3561 from element-hq/feature/bma/fixAspectRatioIssue
Fix crash when aspectRatio is null.
2024-09-30 11:08:55 +02:00
ElementBot
6a8086c9c1 Update screenshots 2024-09-30 08:02:28 +00:00
Benoit Marty
78da5a91b5 Fix crash when aspectRatio is null. 2024-09-30 09:48:59 +02:00
Benoit Marty
148da7bb71
Merge pull request #3400 from element-hq/renovate/accompanist
Update dependency com.google.accompanist:accompanist-permissions to v0.36.0
2024-09-30 09:12:59 +02:00
Benoit Marty
debb247329
Merge pull request #3560 from element-hq/sync-localazy
Sync Strings
2024-09-30 09:09:56 +02:00
bmarty
86373ad1f7 Sync Strings from Localazy 2024-09-30 00:26:52 +00:00
Benoit Marty
f89463c3a1 Remove runCancellableScopeTest and runCancellableScopeTestWithTestScope, we can use TestScope.backgroundScope instead. 2024-09-27 18:37:16 +02:00
Benoit Marty
b9c9706c48 Use backgroundScope for TimelineItemsSubscriberTest 2024-09-27 18:30:05 +02:00
Benoit Marty
7628d480a8 Fix quality issues. 2024-09-27 17:40:30 +02:00
Benoit Marty
953bec400c
Merge pull request #3398 from element-hq/renovate/lifecycle
Update lifecycle to v2.8.5
2024-09-27 17:32:20 +02:00
Benoit Marty
b7c6369ebf Add test on TimelineItemsSubscriber. 2024-09-27 17:06:48 +02:00
Benoit Marty
738ac54be5 Extract createMatrixTimelineDiffProcessor from class. 2024-09-27 14:13:52 +02:00