Commit Graph

704 Commits

Author SHA1 Message Date
Benoit Marty
616dfb443c Remove unused entries from the catalog. 2023-11-10 16:59:36 +01:00
Benoit Marty
67f78df77c Short notation 2023-11-10 16:56:35 +01:00
Benoit Marty
a9995886c0 Move remaining hard-coded dependency to Gradle catalog. We had 2 different version of material3 library. 2023-11-10 16:56:04 +01:00
Benoit Marty
33fe608459 Move appdistribution declarations to Gradle catalog 2023-11-10 16:39:05 +01:00
Benoit Marty
607703217f Gradle catalog: do not use version.ref if there is only one module which use it. 2023-11-10 16:23:23 +01:00
Benoit Marty
3598dbdede Use gradle catalog. 2023-11-10 15:52:28 +01:00
renovate[bot]
91cdc7a253 Update wysiwyg to v2.16.0 (#1779)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 12:43:59 +00:00
renovate[bot]
dd57197f32 Update kotlin (#1697)
* Update kotlin

* Lower Sonar RAM usage, remove redundant `Dkotlin.daemon.jvm.options`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-08 12:58:14 +00:00
renovate[bot]
447ce5a913 Update android.gradle.plugin to v8.1.3 (#1762)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-08 12:37:52 +01:00
renovate[bot]
e351916e35 Update dependency org.maplibre.gl:android-plugin-annotation-v9 to v2.0.2 2023-11-07 20:13:58 +00:00
renovate[bot]
acd95adc35 Update dependency org.maplibre.gl:android-sdk-ktx-v7 to v2.0.2 2023-11-07 18:06:41 +00:00
renovate[bot]
4f528d8a51 Update dependency io.sentry:sentry-android to v6.33.1 (#1752)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-07 13:31:28 +01:00
renovate[bot]
8b5e8bf6da Update dependency org.matrix.rustcomponents:sdk-android to v0.1.67 (#1747)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.67

* Fix breaking change in `RustMediaLoader`.

* Fix breaking change in `DefaultCallWidgetSettingsProvider`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-11-07 07:53:24 +00:00
Benoit Marty
95f04eb2ee Remove dependency on material library. 2023-11-06 16:03:10 +01:00
renovate[bot]
14c2b05038 Update showkase to v1.0.2 (#1383)
* Update showkase to v1.0.2

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-11-03 16:04:29 +01:00
renovate[bot]
477067c500 Update dependency androidx.compose.material3:material3 to v1.2.0-alpha10 2023-11-02 13:41:40 +00:00
Benoit Marty
f5e7d97ca8 Merge pull request #1724 from vector-im/renovate/io.sentry-sentry-android-6.x
Update dependency io.sentry:sentry-android to v6.33.0
2023-11-02 14:40:00 +01:00
renovate[bot]
928633b3f2 Update dependency com.android.tools:desugar_jdk_libs to v2.0.4 (#1723)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-02 14:01:33 +01:00
renovate[bot]
e0a3e159c4 Update dependency io.sentry:sentry-android to v6.33.0 2023-11-02 12:54:52 +00:00
renovate[bot]
6b539895bb Update dependency io.gitlab.arturbosch.detekt to v1.23.3 (#1712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-02 12:54:22 +00:00
renovate[bot]
b7e6375ac3 Update lifecycle to v2.7.0-beta01 (#1721)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-02 12:16:55 +01:00
Benoit Marty
39b9bbd38f Merge pull request #1715 from vector-im/renovate/org.robolectric-robolectric-4.x
Update dependency org.robolectric:robolectric to v4.11.1
2023-11-02 10:32:56 +01:00
jonnyandrew
e376feba22 Add analytics for voice messages (#1706) 2023-11-02 09:32:22 +00:00
renovate[bot]
75f8b38e4f Update dependency app.cash.molecule:molecule-runtime to v1.3.0 (#1717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-02 07:19:42 +00:00
renovate[bot]
442ee5a1e3 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.66 2023-10-31 21:03:43 +01:00
renovate[bot]
b1a4ea6c8d Update dependency org.robolectric:robolectric to v4.11.1 2023-10-31 19:53:59 +00:00
ganfra
8d903362c8 Feature/fga/biometric unlock (#1702)
* Biometric unlock : refactor a bit existing classes

* Biometric unlock : first implementation

* Biometric: add ui for biometric setup

* Biometric unlock : use localazy strings

* Biometric unlock setup : branch skip/allow events

* Biometric : fix tests

* Biometrics: add small test

* Biometric : clean up

* Update screenshots

* Biometric unlock : address some PR review

* Biometric : improve a bit edge cases

* Fix lint issues

---------

Co-authored-by: ganfra <francoisg@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-10-31 19:22:43 +01:00
ganfra
7243f4c0f8 Merge pull request #1698 from vector-im/renovate/coil
Update coil to v2.5.0
2023-10-31 10:59:42 +01:00
renovate[bot]
255dadba50 Update dependency io.gitlab.arturbosch.detekt to v1.23.2 (#1699)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-31 08:19:33 +01:00
renovate[bot]
f2edbaa6d7 Update coil to v2.5.0 2023-10-30 22:55:11 +00:00
renovate[bot]
c952b49ee6 Update dependency com.google.firebase:firebase-bom to v32.5.0 2023-10-30 19:16:00 +00:00
Benoit Marty
42029d6cd2 Merge pull request #1598 from vector-im/renovate/compose.bom
Update dependency androidx.compose:compose-bom to v2023.10.01
2023-10-30 14:38:16 +01:00
renovate[bot]
f6c442e32b Update dependency org.robolectric:robolectric to v4.11 2023-10-29 01:52:03 +00:00
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