Commit graph

4098 commits

Author SHA1 Message Date
ElementBot
aa78255b4b Update screenshots 2023-10-19 15:47:25 +00:00
David Langley
e2adecbcf4
Merge branch 'develop' into dla/feature/custom_room_notification_settings_list 2023-10-19 16:36:30 +01:00
David Langley
7505ac8eda Fix tests and lint 2023-10-19 16:17:57 +01:00
Marco Romano
a814c4a95a
TimelineItemPresenterFactories (#1609)
DI infrastructure to allow injection of presenters into the timeline.
Add an `@AssistedFactory` of type `TimelineItemPresenterFactory` to a `Presenter` class and bind this factory into the TimelineItemPresenterFactory map multi binding using:

```
@Binds
@IntoMap
@TimelineItemEventContentKey(MyTimelineItemContent::class)
```

A map multibinding of such factories will be available in the `LocalTimelineItemPresenterFactories` composition local for further use down the UI tree.
2023-10-19 15:57:34 +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
Jorge Martin Espinosa
9aa4c59516
Hide keyboard when exiting the room screen (#1593) 2023-10-19 10:49:11 +02:00
renovate[bot]
6bec6235b4
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]
a73378b0ce
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
David Langley
b5ca65ed0f Fix enabled state and ClearError events. 2023-10-18 22:30:29 +01:00
David Langley
87b8bfe99d Merge branch 'develop' of https://github.com/vector-im/element-x-android into dla/feature/custom_room_notification_settings_list 2023-10-18 22:07:14 +01:00
David Langley
8d6ef153d9 Fix switch and radio buttons toggling to invalid intermediate states. 2023-10-18 21:44:37 +01: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
436c9e83f0 Fix kover... 2023-10-18 16:52:45 +02:00
ganfra
a896b42fa2 Pin : some clean up and fixes 2023-10-18 15:55:52 +02:00
ElementBot
c635281954 Update screenshots 2023-10-18 13:22:53 +00:00
ganfra
1d94b30b9f Revert settings.gradle.kts 2023-10-18 11:57:57 +02:00
Jorge Martin Espinosa
e5a8fd9635
Make sure Konsist tests always run (#1590)
* Make sure Konsist tests always run

* Update tests/konsist/build.gradle.kts

Co-authored-by: Benoit Marty <benoit@matrix.org>

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-10-18 09:41:47 +00:00
ganfra
1f97e95a3d Fix warning 2023-10-18 11:33:34 +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
8436806571 Pin: rename feature pin to lockscreen 2023-10-17 21:15:01 +02:00
ganfra
981430731d Pin : move some classes around and introduce PinCodeManager 2023-10-17 18:28:39 +02:00
ganfra
493d67c8ca Introduce CryptoService for simple cryptographic operations 2023-10-17 18:28:07 +02:00
David Langley
895a5332f2 Add tests 2023-10-17 16:08:35 +01:00
David Langley
eadaa2f65c List user define room notification settings
- List user define room notification settings
- Add new user defined style of the room notification settings view
- Add navigation to expose room notification settings ui to the global settings
- Add Progress indicators
- Improve error handing
2023-10-17 16:08:08 +01:00
ganfra
85102e3793 Crypto: add a small cryptography library module with CipherFactory 2023-10-17 14:18:28 +02:00
ganfra
c2a8e13eef Pin code storage : add way to store the pin 2023-10-17 11:14:46 +02:00
renovate[bot]
412691f20a
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
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
2732a791f5
Merge pull request #1579 from vector-im/feature/bma/alwaysRegisterPusher
Always register the pusher when application starts
2023-10-16 13:31:43 +02:00
Benoit Marty
9d0cfd903d Add script to build the rustSdk 2023-10-16 13:31:26 +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
Benoit Marty
7fc81ac0df
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
Benoit Marty
27758b542d
Merge pull request #1569 from vector-im/julioromano/sqldelight2
Migrate SqlDelight to 2.0.0
2023-10-13 18:26:39 +02:00
renovate[bot]
2789498abf
Update dependency com.google.testparameterinjector:test-parameter-injector to v1.13 2023-10-13 15:54:48 +00:00
Benoit Marty
827d990608
Merge branch 'develop' into julioromano/sqldelight2 2023-10-13 17:51:00 +02:00
Benoit Marty
df8c4b6fe1
Merge pull request #1570 from vector-im/feature/bma/fixKonsist
Fix issue detected by Konsist.
2023-10-13 17:50:40 +02:00
Benoit Marty
a3b25022cd Kover: properly exclude pin code presenters 2023-10-13 17:22:05 +02:00
Benoit Marty
3fc520160a Fix issue detected by Konsist. 2023-10-13 15:44:34 +02: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
Benoit Marty
bf02449abc
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
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
0ef449fd3b
Merge pull request #1565 from vector-im/feature/fga/remove_rust_blocking_methods
Misc: remove usage of blocking methods #1563
2023-10-13 12:38:05 +02:00