Commit Graph

288 Commits

Author SHA1 Message Date
Benoit Marty
aef707ab25 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
6998be87e7 App icon: Increase foreground ratio from 64 to 66%. 2023-09-29 22:50:14 +02:00
Benoit Marty
3fafdffc6e Format file. 2023-09-28 10:54:42 +02:00
Benoit Marty
dd43474190 Import network-security-config.xml file from EA. 2023-09-28 10:54:26 +02:00
ganfra
678de99cbb Revert "DI: more cleanup"
This reverts commit dda474cb1e.
2023-09-19 18:07:20 +02:00
ganfra
dda474cb1e DI: more cleanup 2023-09-19 17:57:54 +02:00
ganfra
1a14a18a29 DI: rework how components are created and provided 2023-09-19 17:51:36 +02:00
Benoit Marty
8f01c0b9dd Merge pull request #1363 from vector-im/feature/bma/appIcon
Update app icon
2023-09-18 17:28:43 +02:00
Benoit Marty
e3f445d9d6 Set different app icon background for debug/release/nightly. (#1089) 2023-09-18 15:18:00 +02:00
Benoit Marty
893f336425 New app icon (imported with 64% of scale) 2023-09-18 13:10:07 +02:00
Marco Romano
1187633549 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
Jorge Martin Espinosa
a06bea4d71 Element Call SPA integration (#1283)
* Integrate Element Call into EX, being able to open its URLs and handle the call in-app.
* Add custom scheme support with format `element:call?url=...`.
* Update androix.webkit
* Silence the foreground service notification.
- Allow foreground service tap action to re-open the ongoing call.
- Unify notification small icons in different modules using a vector one.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-09-15 16:39:44 +02:00
Benoit Marty
51432c4d04 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
b20d9f6973 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
Jorge Martín
7a19596e2d Revert exception in proguard 2023-09-04 11:41:22 +02:00
Benoit Marty
17f3ed7aa7 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
Jorge Martin Espinosa
9dbb2f0284 Fix nightly builds after emojibase integration (#1208) 2023-09-01 10:14:35 +02:00
David Langley
a4e8f0c8fd Fix tests and improve structure of CustomReactionState
- Fix tests
- Improve structure of CustomReactionState
2023-08-30 12:47:31 +01:00
David Langley
6c6aa04c96 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
ca4fd631da Format file. 2023-08-29 10:05:59 +02:00
David Langley
59d7947cc0 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
685d684359 Integrate emojibase
- Integrate emojibase datasource
- Use element category translations
- Use Material emoji category logos
2023-08-28 16:45:42 +01:00
Benoit Marty
04bab22f62 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
d5364593d6 Merge branch 'develop' into renovate/android.gradle.plugin 2023-08-17 14:52:47 +02:00
ganfra
3f1d241b48 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
378c66c3e8 Fix tests and warnings 2023-07-26 10:42:28 +02:00
Benoit Marty
996574f2c6 Enable detekt rule PreviewPublic and fix existing issues. 2023-07-26 10:08:39 +02:00
Benoit Marty
04b3035d69 Revert change from #941, upload APK to Firebase App Distribution for now.
We need a matching and released PlayStore application to be able to upload an AAB, and we do not have that for now.
2023-07-21 16:19:16 +02:00
Benoit Marty
0fd5032dba Nightly build: upload the application bundle to Firebase instead of the universal APK. 2023-07-21 10:24:11 +02:00
Benoit Marty
dc3c237176 Ensure uitest take preview from app module. 2023-07-19 14:47:30 +02:00
Jorge Martin Espinosa
e61af2eb7d 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
a9720e36c1 Let RootFlowNode manage MatrixClientsHolder save and restoration. 2023-07-12 12:25:04 +02:00
ganfra
c2c81d3747 Coroutine: remove diffUpdateDispatcher, not used anymore 2023-07-11 11:40:55 +02:00
Jorge Martin Espinosa
9170c5eb71 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
4aafddebac Room : rename the flows 2023-07-06 12:00:45 +02:00
ganfra
1fd493a76c Room : small refactoring 2023-07-05 16:10:47 +02:00
Benoit Marty
499a862bfc Add application version to the setting screen. 2023-07-03 17:09:04 +02:00
Benoit Marty
03bb351657 Use modifier. 2023-07-03 17:09:04 +02:00
Benoit Marty
4a985aac98 Splash theme: remove icon 2023-06-29 18:17:37 +02:00
Benoit Marty
5bcad1121d Add compose preview for launcher icons (mainly for tests) 2023-06-29 15:21:28 +02:00
Benoit Marty
44818379b2 Update application icon. 2023-06-29 15:03:59 +02:00
Benoit Marty
f84b2ebbb0 Rename ElementX to Element X. Only for user facing value. In the doc I prefer to keep ElementX. 2023-06-29 14:15:36 +02:00
Jorge Martin Espinosa
fe3deeec2f Fix crash when opening a URL with associated text (#699)
* Fix crash when opening a URL with associated text

* Enforce using an `Activity` instead of a `Context` in `SafeUriHandler`.
2023-06-28 09:19:39 +00:00
Jorge Martin Espinosa
02dc447624 [Compound] Integrate compound tokens (#586)
* Added tokens.

* Apply color to MaterialTheme, also add typography.

* Map colors to the right ones in the themes.

* Create and improve previews of some components

* More preview improvements

* Add `tertiary` and `onTertiary` colors, remove some unused ones.

* Fix usage of deleted color token

* Fix bug in Switch previews

* Create a separate `:libraries:theme` module to keep everything related to colors, typography and Compound in general.

* Fix `DatePickerPreview`

* Add missing Compound generated files by fixing their package name

* Move `ElementTheme` to the `:libraries:theme` module, make some variables internal.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-27 16:15:40 +00:00
Benoit Marty
4cb9843415 Now that the composer as been removed, we do not need element resource module anymore. 2023-06-27 13:34:55 +02:00
Jorge Martin Espinosa
95f65e2031 [Message Actions] Copy events to clipboard (#665)
* Add `Copy` action for text events

* Remove 'Copy' action from the list for non-text events

* Use `@ContributesBinding` to inject `AndroidClipboardHelper`.
2023-06-23 14:39:07 +00:00
Jorge Martin Espinosa
bdb1841e44 [Message Actions] Report messages (#642)
* Add report messages feature

* Try to improve how snackbars are delivered

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-23 10:44:47 +02:00
ganfra
476ddd6d8e Node: fix compilation after changes 2023-06-12 11:39:28 +02:00
ganfra
f57a2a694d Dagger: makes sure to not remove an active component when navigating 2023-06-09 23:04:33 +02:00
ganfra
e3d939726c Fix crash on MainActivity when restored 2023-06-09 22:44:19 +02:00