Commit Graph

470 Commits

Author SHA1 Message Date
renovate[bot]
f914de4486 Update dependency com.google.firebase:firebase-bom to v32.4.1 (#1657)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-27 07:37:33 +02:00
David Langley
fbce953527 Merge branch 'develop' of https://github.com/vector-im/element-x-android into langleyd/custom_waveform 2023-10-26 09:02:14 +01:00
David Langley
5a646a8362 Remove WaveformProgressIndicator and waveform library and lint.
-Remove WaveformProgressIndicator - Remove waveform library
- lint.
2023-10-26 08:58:03 +01:00
renovate[bot]
cabd7ac388 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.65 (#1639)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.65

* Fix broken verification flow

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-10-26 08:59:06 +02:00
Marco Romano
3b20120705 Receive and play a voice message (#1503)
## Type of change

- [x] Feature
- [ ] Bugfix
- [ ] Technical
- [ ] Other :

## Content

This PR consists of several macro-blocks separated by path/package:
- `messages.impl.mediaplayer` : Global (room-wide) media player, now used only for voice messages but could be used for all media within EX in the future. It is backed by media3's exoplayer. Currently not unit-tested because mocking exoplayer is not trivial.
- `messages.impl.voicemessages.play` : Business logic of a timeline voice message. This is all the logic that manages the voice message bubble.
- `messages.impl.timeline.model` & `messages.impl.timeline.factories`: Timeline code that takes care of creating the `content` object for voice messages.
-  `messages.impl.timeline.components` : The actual View composable that shows the UI inside a voice message bubble.

All the rest is just small related changes that must be done here and there in existing code.

From a high level perspective this is how it works:
- Voice messages are unlike other message bubbles because they carry state (i.e. playing, downloading...) so they have a Presenter managing this state.
- Media content (i.e. the ogg file) of a voice message is downloaded from the rust SDK on first play then stored in a voice messages cache (see the `VoiceMessageCache` class, it is just a subdirectory in the app's cacheDir which is indexed by the matrix content uri). All further play attempts are done from the cache without hitting the rust SDK anymore.
- Playback of the ogg file is handled with the `VoiceMessagePlayer` class which is basically a "view" of the global `MediaPlayer` that allow the voice message to only see the media player state belonging to its media content. 
- Drawing of the waveform is done with an OSS library wrapped in the `WaveformProgressIndicator` composable.

Known issues:
 - The waveform has no position slider.
 - The waveform (and together with it the whole message bubble) is taller than the actual Figma design.
 - Swipe to reply for voice messages is disabled to avoid conflict with the audio scrubbing gesture (to reply to a voice message you have to use the long press menu).
 - The loading indicator is always shown (there is no delay).
 - Voice messages don't stop playing when redacted.

## Motivation and context

https://github.com/vector-im/element-meta/issues/2083

## Screenshots / GIFs

Provided by Screenshot tests in the PR itself.
2023-10-24 21:47:51 +00:00
renovate[bot]
d221fe5888 Update dependency com.google.testparameterinjector:test-parameter-injector to v1.14 (#1636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-24 20:50:31 +02:00
renovate[bot]
19e5f43102 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.64 (#1629)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-24 08:18:09 +02:00
jonnyandrew
5c582bba1b Record and send voice messages (#1596)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-23 17:28:00 +00:00
ganfra
4d667f4c63 Merge pull request #1600 from vector-im/renovate/androidx.sqlite-sqlite-ktx-2.x
Update dependency androidx.sqlite:sqlite-ktx to v2.4.0
2023-10-23 15:47:44 +02:00
renovate[bot]
45ea74bbfd Update dependency org.owasp.dependencycheck to v8.4.2 (#1622)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-23 09:36:15 +02:00
renovate[bot]
7c5fab732b Update dependency org.matrix.rustcomponents:sdk-android to v0.1.63 (#1619)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.63

* Update Element Call integrated APIs

* Take into account the new `MessageType.Other` from the SDK

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-10-20 22:32:59 +02:00
Benoit Marty
84cf3aa005 Merge pull request #1601 from vector-im/renovate/com.google.firebase-firebase-bom-32.x
Update dependency com.google.firebase:firebase-bom to v32.4.0
2023-10-20 14:27:08 +02:00
renovate[bot]
177a5bc78a Update dependency org.jsoup:jsoup to v1.16.2 (#1613)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-20 08:56:10 +02:00
renovate[bot]
7c04f27092 Update dependency io.sentry:sentry-android to v6.32.0 (#1602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 10:48:23 +02:00
renovate[bot]
564cd4e258 Update dependency androidx.recyclerview:recyclerview to v1.3.2 (#1599)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-19 08:51:21 +02:00
renovate[bot]
59c2728df3 Update dependency com.google.firebase:firebase-bom to v32.4.0 2023-10-19 01:04:02 +00:00
renovate[bot]
6b00d9693e Update dependency androidx.sqlite:sqlite-ktx to v2.4.0 2023-10-18 21:47:52 +00:00
ganfra
988b6243d1 Merge pull request #1592 from vector-im/feature/fga/setup_crypto_for_pin
Feature/fga/setup crypto for pin
2023-10-18 17:21:47 +02:00
ganfra
e5dd0330a7 Crypto: add a small cryptography library module with CipherFactory 2023-10-17 14:18:28 +02:00
renovate[bot]
64b171bd0c Update dependency com.squareup.okhttp3:okhttp-bom to v4.12.0 (#1587)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-17 08:42:33 +02:00
Benoit Marty
1895b7fc61 Merge pull request #1568 from vector-im/renovate/com.google.testparameterinjector-test-parameter-injector-1.x
Update dependency com.google.testparameterinjector:test-parameter-injector to v1.13
2023-10-13 18:35:05 +02:00
renovate[bot]
26c9fc2439 Update dependency com.google.testparameterinjector:test-parameter-injector to v1.13 2023-10-13 15:54:48 +00:00
Marco Romano
0e1a8d506d Find and replace 2023-10-13 14:55:12 +02:00
Benoit Marty
5c11e27f05 Merge pull request #1559 from vector-im/renovate/io.sentry-sentry-android-6.x
Update dependency io.sentry:sentry-android to v6.31.0
2023-10-13 14:05:08 +02:00
renovate[bot]
31d5e7395f Update dependency org.matrix.rustcomponents:sdk-android to v0.1.62 (#1562)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.62
* Add `sendVoiceMessage()` API from https://github.com/matrix-org/matrix-rust-sdk/pull/2697
* Fix other breaking changes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-10-13 08:19:30 +00:00
renovate[bot]
e06240b73a Update dependency io.sentry:sentry-android to v6.31.0 2023-10-12 19:07:57 +00:00
Benoit Marty
abea2617e1 Merge pull request #1550 from vector-im/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.61
2023-10-11 17:29:19 +02:00
Benoit Marty
305fb81b8a Merge pull request #1520 from vector-im/feature/bma/sessionDb
Improve session db and improve deleted session behavior
2023-10-11 16:56:54 +02:00
renovate[bot]
0a40dc659e Update dependency org.matrix.rustcomponents:sdk-android to v0.1.61 2023-10-11 14:40:53 +00:00
Benoit Marty
427aae9fc1 Merge pull request #1526 from vector-im/feature/bma/konsist
Konsist
2023-10-11 16:40:22 +02:00
Benoit Marty
c1e53d989c Merge pull request #1527 from vector-im/renovate/org.jlleitschuh.gradle.ktlint-11.x
Update plugin ktlint to v11.6.1
2023-10-10 21:21:15 +02:00
renovate[bot]
730c9467d2 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.60 2023-10-10 18:25:17 +00:00
renovate[bot]
96a1173805 Update plugin ktlint to v11.6.1 2023-10-10 15:58:31 +00:00
Benoit Marty
675f77bfa4 Add some Konsist test. 2023-10-10 14:21:36 +02:00
Benoit Marty
6f49e670fb Remove not used dependencies to some accompanist libraries. 2023-10-10 13:48:10 +02:00
Benoit Marty
fa361927e9 Remove obsolete comment. 2023-10-10 11:50:04 +02:00
Benoit Marty
7436580b96 Remove dependency on com.google.android.material:material 2023-10-10 11:49:41 +02:00
Benoit Marty
58ab1c049a Use the ktx version of androidx.sqlite:sqlite 2023-10-10 10:20:31 +02:00
renovate[bot]
20021345db Update dependency com.autonomousapps.dependency-analysis to v1.25.0 2023-10-08 01:20:48 +00:00
ganfra
8526922587 Merge pull request #1482 from vector-im/renovate/appyx
Update appyx to v1.4.0
2023-10-06 12:08:27 +02:00
renovate[bot]
e151e5351e Update wysiwyg to v2.14.1 (#1491)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 08:03:20 +00:00
renovate[bot]
42b2cea768 Update dependency gradle to v8.4 (#1496)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 08:38:36 +02:00
Benoit Marty
c116a44e0c Merge pull request #1495 from vector-im/renovate/compose.bom
Update dependency androidx.compose:compose-bom to v2023.10.00
2023-10-05 11:47:54 +02:00
renovate[bot]
cf4a86131a Update dependency androidx.compose.material3:material3 to v1.2.0-alpha09 (#1493)
* Update dependency androidx.compose.material3:material3 to v1.2.0-alpha09

* Fix deprecation issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-10-05 09:57:47 +02:00
Benoit Marty
46bb7ee6ce Merge pull request #1494 from vector-im/renovate/activity
Update activity to v1.8.0
2023-10-05 09:49:39 +02:00
renovate[bot]
e8980f171a Update dependency androidx.compose:compose-bom to v2023.10.00 2023-10-04 20:16:49 +00:00
renovate[bot]
589d0a592d Update activity to v1.8.0 2023-10-04 19:54:27 +00:00
renovate[bot]
8aba98de1d Update dependency org.matrix.rustcomponents:sdk-android to v0.1.59 2023-10-04 10:24:07 +02:00
renovate[bot]
9ea079f28a Update dagger to v2.48.1 (#1485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-04 08:45:00 +02:00
renovate[bot]
12ccfd6b9c Update appyx to v1.4.0 2023-10-03 11:51:31 +00:00