Commit Graph

1618 Commits

Author SHA1 Message Date
jonnyandrew f1b142f002 Add voice message recording duration indicator and limit (#1628)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-24 11:44:53 +00:00
jonnyandrew 8c0d9cc6a0 Add progress indicator for sending voice messages (#1618)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-24 08:36:42 +00:00
Jorge Martin Espinosa fc8d16693b Set tracing of matrix_sdk_ui::timeline to trace (#1630) 2023-10-24 09:37:41 +02:00
jonnyandrew b476654489 Record and send voice messages (#1596)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-23 17:28:00 +00:00
ganfra 005e5cc1a1 Merge pull request #1624 from vector-im/feature/fga/pin_auth_ui
PIN : unlock screen ui
2023-10-23 16:35:22 +02:00
Benoit Marty 8ca42d4cfc Konsist: add test to ensure that functions with @PreviewsDayNight contain ElementTheme composable, and fix existing issues. 2023-10-23 12:23:27 +02:00
jonnyandrew 7048da2e20 Fix issue where text is cleared when cancelling a reply (#1617) 2023-10-23 08:31:32 +00:00
ElementBot c8dc364147 Sync Strings (#1623)
* Sync Strings from Localazy

* Fix strings

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-10-23 08:20:49 +00:00
renovate[bot] 244c45797f 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
ganfra fd63220ee0 Fix compilation 2023-10-20 20:26:04 +02:00
ganfra 67d4271f4d Pin unlock : add signout prompt 2023-10-20 18:52:56 +02:00
Benoit Marty 8aa706e97d Merge pull request #1614 from vector-im/feature/bma/removeAppNameProvider
Remove AppNameProvider, we have buildMeta now.
2023-10-20 14:28:05 +02:00
Marco Romano f787867e87 Document the nuances in UserId and SessionId types. (#1616) 2023-10-20 12:25:20 +00:00
Benoit Marty 510bdd47af Remove AppNameProvider, we have buildMeta now. 2023-10-20 10:41:39 +02:00
ganfra 20c2ee9e3a Merge branch 'develop' into feature/fga/pin_create_ui 2023-10-19 22:26:21 +02:00
Jorge Martin Espinosa 46f78ef700 Integrate Element Call with widget API (#1581)
* Integrate Element Call with widget API.

- Add `appconfig` module and extract constants that can be overridden in forks there.
- Add an Element Call feature flag, disabled by default.
- Refactor the whole `ElementCallActivity`, move most logic out of it.
- Integrate with the Rust Widget Driver API (note the Rust SDK version used in this PR lacks some needed changes to make the calls actually work).
- Handle calls differently based on `CallType`.
- Add UI to create/join a call.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-19 15:38:43 +00:00
ganfra 7ebe6719da Pin create: use localazy strings 2023-10-19 16:28:20 +02:00
Marco Romano 33f5c8efb8 Add global context.cacheDir provider. (#1606)
## Type of change

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

## Content

Dagger now provides the app's `cacheDir` when requesting a `@CacheDirectory File`  type.

## Motivation and context

To support some upcoming code that needs the `cacheDir` to be changed during tests.
2023-10-19 14:07:45 +02:00
Marco Romano 5a7f77bc92 Extract more content from audio messages. (#1607)
`TimelineItemAudioContent`:
- Use `java.time.Duration` instead of milliseconds. This will ease up things in the future because currently milliseconds are sent over the wire but in the future seconds will be sent (as per the stable MSC). Using `Duration` will allow our downstream code to be independent of what's passed over the wire.
- Rename `audioSource` property to `mediaSource` to better match its type.

`AudioMessageType`:
- Add and populate new fields `details` and `isVoiceMessage` to be used by voice messages.
2023-10-19 13:32:43 +02:00
Marco Romano 79d2941fe4 Include desugaring lib also in library modules (#1604)
## Type of change

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

## Content

Includes the `coreLibraryDesugaring(libs.android.desugar)` dependency in all modules which use one of our gradle plugins.

## Motivation and context

Right now desugaring is enabled also in library modules but the desugar dependency is not included in those.
This causes some unwanted side effects such as being unable to run compose previews in an emu.

This change will also include the desugar dependency in those libraries.
2023-10-19 09:00:32 +00:00
ganfra 4416c0133a Create pin : start handling the text field 2023-10-18 21:20:47 +02:00
ganfra 00e885fa9f 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 a896b42fa2 Pin : some clean up and fixes 2023-10-18 15:55:52 +02:00
ganfra d6d553e8e0 Pin code: add some tests 2023-10-18 11:26:02 +02:00
Benoit Marty c4bbc4ef3d Merge pull request #1582 from vector-im/feature/bma/buildSdk
Add script to build the rust sdk locally and from different repo / branch
2023-10-18 11:03:36 +02:00
ganfra 493d67c8ca Introduce CryptoService for simple cryptographic operations 2023-10-17 18:28:07 +02:00
ganfra 85102e3793 Crypto: add a small cryptography library module with CipherFactory 2023-10-17 14:18:28 +02:00
Benoit Marty 21e24990c4 Improve and fix build_rust_sdk.sh after PR review 2023-10-16 18:29:25 +02:00
Benoit Marty c4373015a5 Merge pull request #1573 from vector-im/sync-localazy
Sync Strings
2023-10-16 15:28:22 +02:00
Benoit Marty cc2664c519 Use local SDK if the file exist 2023-10-16 13:31:26 +02:00
Benoit Marty 819576867d Always register the pusher when application starts 2023-10-16 10:50:16 +02:00
bmarty 586a53653d Sync Strings from Localazy 2023-10-16 00:09:47 +00:00
Marco Romano 57ccafca42 Other fixes as per https://cashapp.github.io/sqldelight/2.0.0/upgrading-2.0/ 2023-10-13 15:17:12 +02:00
Marco Romano 2d3d007e60 Find and replace 2023-10-13 14:55:12 +02:00
Benoit Marty fee54efb4f Merge pull request #1556 from vector-im/feature/bma/videoLock
Ensure screen does not turn off when playing a video (#1519)
2023-10-13 14:05:30 +02:00
ganfra 5d0eb3d693 Merge pull request #1554 from vector-im/feature/fga/init_pin_unlock
[Pin code] : setup the feature
2023-10-13 12:38:41 +02:00
ganfra 76bbe4dbeb Misc: remove usage of blocking methods #1563 2023-10-13 12:16:31 +02:00
renovate[bot] 054d0a7145 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
jonnyandrew 12404fab78 [Voice messages] Add voice recording UI (#1546)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-12 15:17:18 +00:00
Benoit Marty 7f65c137af Merge pull request #1555 from vector-im/feature/bma/fixDbMigrationTest
Feature/bma/fix db migration test
2023-10-12 16:23:01 +02:00
Benoit Marty c3bc44bfec Ensure screen does not turn off when playing a video (#1519) 2023-10-12 15:53:05 +02:00
Benoit Marty 12996e8253 Improve comment. 2023-10-12 15:48:13 +02:00
Benoit Marty 7389748f3e Konsist: add rule obout test class name, and fix existing issue 2023-10-12 15:03:50 +02:00
Benoit Marty 8f8a5746e5 Konsist: add test about PreviewParameterProvider class name and fix existing issues. 2023-10-12 15:03:50 +02:00
Benoit Marty 3c41158558 Use existing BooleanProvider 2023-10-12 15:03:50 +02:00
Benoit Marty 30b509456c Add some comment in the files manipulating the session DB 2023-10-12 14:59:06 +02:00
Benoit Marty 9bacf9df8e Add DB versions to test all migrations 2023-10-12 14:53:14 +02:00
Benoit Marty 1938525201 Fix DB migration test. Does not require a migration apparently. 2023-10-12 14:53:00 +02:00
Benoit Marty 7d985d4588 Merge pull request #1549 from vector-im/feature/bma/unknownMsgtype
Render unknown msgtype
2023-10-12 10:56:35 +02:00
ganfra 304ec0b740 Pin unlock : hides behind feature flag (disabled by default) 2023-10-11 20:36:30 +02:00