Commit Graph

261 Commits

Author SHA1 Message Date
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
Jorge Martin Espinosa
e591a588b3 [Message Actions] Add emoji reactions option (#568)
* Add logic to send message reactions

* Add emoji library, create EmojiPicker component

* Fix bottom sheet behaviors

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-09 16:56:40 +02:00
ganfra
8a3a70ffa5 Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-07 16:31:28 +02:00
Marco Romano
bbef43751b Network library changes (#542)
- Allows for http2
- Caches a global instance of kotlinx-serialization `Json` and configures it with a bit more leniency.
- Moves okhttp's dependency strings to the .toml file
- Switches off logging for release builds
2023-06-06 15:33:30 +02:00
ganfra
8e1ade897d MediaViewer: improve actions (save on disk and share) 2023-06-02 20:13:17 +02:00
Chris Smith
61eccdf727 Remove ksp source set workaround (#515)
This is no longer needed
2023-06-02 13:09:05 +00:00
Benoit Marty
09c2452d57 Avoid Custom Chrome tab to appear as recent activity. 2023-05-30 15:59:58 +02:00
Benoit Marty
4c9bed9d8a Oidc with CustomTab 2023-05-30 15:59:58 +02:00
Benoit Marty
579397d301 Fix warning "Use version catalog instead" 2023-05-25 15:04:01 +02:00
Benoit Marty
14366e18e7 Use gradle logger to filter out when running with only warning logs. 2023-05-25 12:03:51 +02:00
Jorge Martin Espinosa
cd298b9359 [Media upload] Media pre-processing (#403)
* Create `mediaupload` module for media pre-processing.

* Split `mediapicker` and `mediaupload` modules.
2023-05-10 10:06:56 +02:00
ganfra
ed3f0f1430 Merge branch 'develop' into feature/fga/some_room_related_fixes 2023-04-28 15:58:54 +02:00
Jorge Martin Espinosa
8e451c934e Add PickerLauncher wrapper for media/file pickers. (#361)
* Add `PickerLauncher` wrapper for media/file pickers.

* Add FileProvider path, handle Camera picker and add NoOp implementation to fix tests.

* Move media pickers to their own module.

* Add missing media pickers

* Add feature flag and some extra tests
2023-04-28 10:52:34 +02:00
ganfra
c9370315ad Some clean up 2023-04-25 11:17:05 +02:00
Jorge Martin Espinosa
ca1ea63885 Fix more R8 issues (#337) 2023-04-18 19:21:46 +02:00
ganfra
f98fe8e52c Merge pull request #334 from vector-im/feature/fga/feature_flag
Feature/fga/feature flag
2023-04-18 15:24:04 +02:00
Benoit Marty
391fe9b158 Merge pull request #333 from vector-im/feature/bma/push5
Small cleanup and add log
2023-04-18 14:05:00 +02:00
Jorge Martin Espinosa
32d028c50e Fix: JNA issue in release mode (#335)
* Restore checkout config for nightly workflows.

* Add missing proguard config line for JNA.
2023-04-18 11:31:25 +00:00
ganfra
e5d70ff48e [BuildMeta] introduce BuildType and remove Network related code from BuildMeta 2023-04-18 11:58:24 +02:00
Benoit Marty
dfa63c2fc3 Add some log to the Activity, to help debugging from Rageshake. 2023-04-18 10:17:59 +02:00
Jorge Martin Espinosa
afd58f1634 Update Gradle to 8.1 and AGP to v8.0 (#329)
* Update AGP to 8.0.0.

* Set JAVA_HOME to JDK17

* Update lint version.

* Use right JDK for dependency analysis, replace deprecated env var.

* Upgrade to Gradle 8.1.

* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
Benoit Marty
0874c076d6 Deeplink: handle notification click to open a room. 2023-04-13 15:35:01 +02:00
Benoit Marty
1f7b897216 Add firebase resource file generated by the firebase plugin, to be able to remove the plugin. 2023-04-12 12:03:19 +02:00
Benoit Marty
95bafe4059 UnifiedPush WIP 2023-04-12 09:49:23 +02:00
Benoit Marty
1f87e10376 Cleanup, Firebase dep. is not necessary here. 2023-04-12 09:48:56 +02:00
Benoit Marty
7e7aca4a53 Add some tests (mainly imported from EA). Also change type from String to SessionId, RoomId, etc. 2023-04-05 16:59:17 +02:00
Benoit Marty
0c0f7dff40 Making progress on notification for multi account. 2023-04-05 16:59:17 +02:00
Benoit Marty
6f6a1e27fe Fix multi Activity wen opening app from notification. 2023-04-05 16:59:17 +02:00