Commit Graph

4102 Commits

Author SHA1 Message Date
David Langley
7681cfdb20 fix unused import 2023-10-23 10:28:04 +01:00
David Langley
b7ebff0e75 Add new ui for room notifications screen
- Add new ui for room notifications screen
- Fix error when changing default notification setting.
2023-10-20 21:08:44 +01:00
David Langley
0750002e73 Merge branch 'dla/feature/custom_room_notification_settings_list' of https://github.com/vector-im/element-x-android into dla/feature/custom_room_notification_settings_list 2023-10-19 16:57:37 +01:00
David Langley
ec63baa9ce Fix typo and preview 2023-10-19 16:57:35 +01:00
ElementBot
919e0d7301 Update screenshots 2023-10-19 15:47:25 +00:00
David Langley
3ecabd71c0 Merge branch 'develop' into dla/feature/custom_room_notification_settings_list 2023-10-19 16:36:30 +01:00
David Langley
4b43168913 Fix tests and lint 2023-10-19 16:17:57 +01:00
Marco Romano
cf3039c6f3 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
d7054fb34d 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
80870adfe3 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
fb02f698d7 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
643fe1a5e5 Hide keyboard when exiting the room screen (#1593) 2023-10-19 10:49:11 +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
David Langley
7e7e95c8e2 Fix enabled state and ClearError events. 2023-10-18 22:30:29 +01:00
David Langley
af4a1d3fd6 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
aece3dcc7b Fix switch and radio buttons toggling to invalid intermediate states. 2023-10-18 21:44:37 +01: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
5146e92187 Fix kover... 2023-10-18 16:52:45 +02:00
ganfra
39e38514d8 Pin : some clean up and fixes 2023-10-18 15:55:52 +02:00
ElementBot
441b469dc5 Update screenshots 2023-10-18 13:22:53 +00:00
ganfra
e6b0d5f7ae Revert settings.gradle.kts 2023-10-18 11:57:57 +02:00
Jorge Martin Espinosa
7e2852bd47 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
8ccd1524d3 Fix warning 2023-10-18 11:33:34 +02:00
ganfra
3b73f171d0 Pin code: add some tests 2023-10-18 11:26:02 +02:00
Benoit Marty
ef5326ff72 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
78621e4256 Pin: rename feature pin to lockscreen 2023-10-17 21:15:01 +02:00
ganfra
65bbe72ecc Pin : move some classes around and introduce PinCodeManager 2023-10-17 18:28:39 +02:00
ganfra
cec489793b Introduce CryptoService for simple cryptographic operations 2023-10-17 18:28:07 +02:00
David Langley
72e7d92571 Add tests 2023-10-17 16:08:35 +01:00
David Langley
b634db1772 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
e5dd0330a7 Crypto: add a small cryptography library module with CipherFactory 2023-10-17 14:18:28 +02:00
ganfra
bcfe9918dc Pin code storage : add way to store the pin 2023-10-17 11:14:46 +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
359db36172 Improve and fix build_rust_sdk.sh after PR review 2023-10-16 18:29:25 +02:00
Benoit Marty
9596b5efc5 Merge pull request #1573 from vector-im/sync-localazy
Sync Strings
2023-10-16 15:28:22 +02:00
Benoit Marty
a4f8a2adc1 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
1bf26b10fc Add script to build the rustSdk 2023-10-16 13:31:26 +02:00
Benoit Marty
b06dbb566e Use local SDK if the file exist 2023-10-16 13:31:26 +02:00
Benoit Marty
36727f7ab7 Always register the pusher when application starts 2023-10-16 10:50:16 +02:00
bmarty
379139a88f Sync Strings from Localazy 2023-10-16 00:09:47 +00: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
Benoit Marty
d3834cff9c 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]
26c9fc2439 Update dependency com.google.testparameterinjector:test-parameter-injector to v1.13 2023-10-13 15:54:48 +00:00
Benoit Marty
d38f47b22c Merge branch 'develop' into julioromano/sqldelight2 2023-10-13 17:51:00 +02:00
Benoit Marty
49819383c7 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
da2a530109 Kover: properly exclude pin code presenters 2023-10-13 17:22:05 +02:00
Benoit Marty
155e403265 Fix issue detected by Konsist. 2023-10-13 15:44:34 +02:00
Marco Romano
f32817e71f 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
0e1a8d506d Find and replace 2023-10-13 14:55:12 +02:00