Commit graph

224 commits

Author SHA1 Message Date
ganfra
6832b1f2db
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
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
Benoit Marty
c0aa70f7f6 Move konsist test to their own module. 2023-10-12 18:41:38 +02:00
Benoit Marty
634095c43a Konsist: add test for Events 2023-10-12 15:03:50 +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
65b83bf266 Konsist: add test to check Node class name. 2023-10-12 15:03:50 +02:00
Benoit Marty
c5fbb9d297 Split Konsist test into multiple files 2023-10-12 15:03:50 +02:00
Benoit Marty
7c5a41f03d Konsist: no field should have 'm' prefix, and fix new detected issues. 2023-10-10 22:09:57 +02:00
Benoit Marty
4338d821e5 Konsist: improve test about no default value for State classes, and fix new detected issues. 2023-10-10 21:42:18 +02:00
Benoit Marty
001bc219aa Rename some test 2023-10-10 17:31:04 +02:00
Benoit Marty
0bc2020411 Konsist: add test Function which creates Presenter in test MUST be named 'createPresenterName', and fix existing issues 2023-10-10 17:31:04 +02:00
Benoit Marty
d55df22db2 Konsist: add test Data class state MUST not have default value, and fix existing issues 2023-10-10 17:31:04 +02:00
Benoit Marty
8929a90970 Konsist: add test to ensure filename match top level Composable View, and fix existing issue 2023-10-10 15:39:22 +02:00
Benoit Marty
6e5caebc60 Add some Konsist test. 2023-10-10 14:21:36 +02:00
Marco Romano
794ad4ab95
Switch off enableOnBackInvokedCallback due to androidx bug (#1517)
Switch off `enableOnBackInvokedCallback` until https://issuetracker.google.com/issues/271303558 is fixed.


Fixes https://github.com/vector-im/element-x-android/issues/1461
2023-10-09 08:39:56 +00:00
Benoit Marty
5b3d340c83
Merge pull request #1435 from vector-im/feature/bma/storeImages
Store images and app icon
2023-10-02 10:19:06 +02:00
Benoit Marty
97122193a5 App icon: Increase foreground ratio from 64 to 66%. 2023-09-29 22:50:14 +02:00
Benoit Marty
55a9d30b99 Format file. 2023-09-28 10:54:42 +02:00
Benoit Marty
949a24560f Import network-security-config.xml file from EA. 2023-09-28 10:54:26 +02:00
ganfra
6abccc1ae7 Revert "DI: more cleanup"
This reverts commit ecf00f5629.
2023-09-19 18:07:20 +02:00
ganfra
ecf00f5629 DI: more cleanup 2023-09-19 17:57:54 +02:00
ganfra
6c296c1cf8 DI: rework how components are created and provided 2023-09-19 17:51:36 +02:00
Benoit Marty
69b57b88e2
Merge pull request #1363 from vector-im/feature/bma/appIcon
Update app icon
2023-09-18 17:28:43 +02:00
Benoit Marty
ae9ecd9a55 Set different app icon background for debug/release/nightly. (#1089) 2023-09-18 15:18:00 +02:00
Benoit Marty
a719f1df30 New app icon (imported with 64% of scale) 2023-09-18 13:10:07 +02:00
Marco Romano
5d15b1ab91 Enable Android 13/14 predictive back gesture
https://developer.android.com/guide/navigation/custom-back/predictive-back-gesture
2023-09-18 12:07:26 +02:00
Benoit Marty
9f02de45b8 setenv "RUST_BACKTRACE" to "1" to get more info when a Rust stacktrace is printed out. 2023-09-11 09:17:50 +02:00
Jorge Martin Espinosa
e19b27badf
De-duplicate sonar job in the CI (#1238)
* De-duplicate sonar job in the CI

* Remove workaround for `src/*/kotlin` folders

* Downgrade the sonarqube plugin version

* Try increasing workers for this job, since it's quite slow

* Warn about regression in latest sonarqube release

* Forbid backups to prevent cryptographic issues
2023-09-07 11:19:13 +00:00
Benoit Marty
a32e5df1ab Developer setting: add entry point to configure the Tracing.
Developer setting: add screen to configure log level.

Give the custom trace filter to the SDK.
2023-09-01 16:26:39 +02:00
David Langley
a5d42f61fa Fix tests and improve structure of CustomReactionState
- Fix tests
- Improve structure of CustomReactionState
2023-08-30 12:47:31 +01:00
David Langley
20c1b32397 Merge branch 'develop' of https://github.com/vector-im/element-x-android into feature/dla/emojibase_integration 2023-08-29 11:31:22 +01:00
Benoit Marty
f8417bda21 Format file. 2023-08-29 10:05:59 +02:00
David Langley
bab8119fb9 Merge branch 'develop' of https://github.com/vector-im/element-x-android into feature/dla/emojibase_integration 2023-08-28 17:03:00 +01:00
David Langley
ce4c12ce74 Integrate emojibase
- Integrate emojibase datasource
- Use element category translations
- Use Material emoji category logos
2023-08-28 16:45:42 +01:00
Benoit Marty
d8459093a5 Introduce LoggedInAppScopeFlowNode. It's a Node just responsible to set up the Dagger SessionScope.
This allow to inject objects with SessionScope in the node `LoggedInFlowNode` and all it's dependency (in my case `FtueState` and `MatrixClient`)
2023-08-25 13:52:32 +02:00
Marco Romano
c4cf6c8170
Merge branch 'develop' into renovate/android.gradle.plugin 2023-08-17 14:52:47 +02:00
ganfra
e8d1f21a14
Feature/fga/rust sdk tracing (#1036)
* Align TracingConfiguration with iOS

* Create TracingTree from rust sdk

* tracing: create a working configuration with RustTracingTree

* Tracing: WIP implementation of new api

* Tracing: clean up

* Tracing: use the latest api

* Tracing: some more clean up

* Remove generated logcat file after compressing it

---------

Co-authored-by: ganfra <francoisg@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-08-09 10:18:49 +00:00
Jorge Martín
4e3bea08e6 Fix tests and warnings 2023-07-26 10:42:28 +02:00
Benoit Marty
6aa5239189 Enable detekt rule PreviewPublic and fix existing issues. 2023-07-26 10:08:39 +02:00
Jorge Martin Espinosa
9247cd765a
Fix: make sure we ignore notifications for open rooms (#867)
* Make sure we ignore notifications for open rooms
- Listen to process lifecycle changes in `AppForegroundStateService`. Use initializers to reliable create it.
- Merge `AppNavigationState` with `AppForegroundState`. Renamed the previous `AppNavigationState` to `NavigationState`, created a new `AppNavigationState` which contains both the navigation state and the foreground state.
2023-07-17 17:02:06 +02:00
Benoit Marty
47b684f724 Let RootFlowNode manage MatrixClientsHolder save and restoration. 2023-07-12 12:25:04 +02:00
ganfra
d77ff60f03 Coroutine: remove diffUpdateDispatcher, not used anymore 2023-07-11 11:40:55 +02:00
Jorge Martin Espinosa
a0c1f2c18a
Display room invitation notification (#735)
* Notifications: Add some extra mappings so we keep the original contents and can pass it later to an UI layer

* Fix notifications not appearing for a room if the app was on that room when it went to background.

* Modernize how we create spannable strings for notifications, remove unneeded dependency

* Remove actions from invite notifications temporarily

* Add `NotificationDrawerManager` interface to be able to clear membership notifications when accepting or rejecting a room invite

* Fix tests

* Add comment to clarify some weird behaviours

* Address review comments

* Set circle shape for `largeBitmap` in message notifications

* Fix no avatar in DM rooms

* Fix rebase issues

* Add invite list pending intent:

- Refactor pending intents.
- Make `DeepLinkData` a sealed interface.
- Fix and add tests.

* Rename `navigate__` functions to `attach__`

* Add an extra test case for the `InviteList` deep link

* Address most review comments.

* Fix rebase issue

* Add fallback notification type, allow dismissing invite notifications.

Fallback notifications have a different underlying type and can be dismissed at will.

* Fix tests
2023-07-10 14:34:58 +02:00
ganfra
d71a025f9d Room : rename the flows 2023-07-06 12:00:45 +02:00
ganfra
43b4351732 Room : small refactoring 2023-07-05 16:10:47 +02:00
Benoit Marty
e81d9c1ac9 Add application version to the setting screen. 2023-07-03 17:09:04 +02:00
Benoit Marty
ea620fc200 Use modifier. 2023-07-03 17:09:04 +02:00
Benoit Marty
26e46dc6ed Splash theme: remove icon 2023-06-29 18:17:37 +02:00
Benoit Marty
c53933ccea Add compose preview for launcher icons (mainly for tests) 2023-06-29 15:21:28 +02:00