Commit Graph

66 Commits

Author SHA1 Message Date
Benoit Marty 9d66af834d Move RoomLastMessageFormatter and related class and resource to the new module eventformatter, in order to prepare rendering of state event in the timeline. 2023-05-25 14:15:35 +02:00
Benoit Marty f1bd767112 Fix compilation warnings. 2023-05-23 12:00:36 +02:00
renovate[bot] 8c00b19ba9 Update kotlin 2023-05-03 17:40:41 +00:00
Benoit Marty 79cc6161a3 Merge pull request #370 from vector-im/sync-localazy
Sync Strings
2023-05-02 17:45:50 +02:00
bmarty 8f1793ffa4 Sync Strings from Localazy 2023-05-01 00:09:50 +00:00
ganfra 154bd5e714 Update rust-sdk : make the app compiles again 2023-04-28 18:26:32 +02:00
Jorge Martin Espinosa 78a715ce8d Fix NotificationData?.orDefault using an invalid UserId (#362) 2023-04-27 12:46:32 +02:00
Benoit Marty 913e6465cb Remove extra plural items manually until the issue on Localazy is fixed. 2023-04-24 17:04:20 +02:00
bmarty 860777d20c Sync Strings from Localazy 2023-04-24 00:09:54 +00:00
renovate[bot] 61a01b003b Update kotlin 2023-04-21 16:29:06 +02:00
Jorge Martin Espinosa fae3417181 Validate several ids in constructors (#336)
* Validate ids in constructors.

* Remove redundant `.value` usage in string interpolation.

* Make a distinction between `SessionId` and `UserId` in `TestData`.
2023-04-18 16:17:13 +00:00
Benoit Marty d68e4bd4f0 Merge pull request #326 from vector-im/feature/bma/push4
Notification update
2023-04-17 14:13:39 +02:00
Jorge Martin Espinosa de010545fb 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 9971926760 Fix tests. 2023-04-17 09:51:52 +02:00
Benoit Marty a4897e6b76 Small quality fixes 2023-04-17 09:42:59 +02:00
Benoit Marty cbc1bdfe52 More cleanup 2023-04-14 18:34:49 +02:00
Benoit Marty 96812209a3 Improve rendering of notifications 2023-04-14 18:31:35 +02:00
Benoit Marty aad55d6341 small cleanup 2023-04-14 18:19:59 +02:00
Benoit Marty aba39ef568 Fix issue with pendingintent data. (Simplier to use String that Serializable) 2023-04-14 18:10:55 +02:00
Benoit Marty 3966a03e3b Improve temporary message displayed in notifications 2023-04-14 17:52:39 +02:00
Benoit Marty efb620938c Create NotificationFactory 2023-04-14 17:49:47 +02:00
Benoit Marty d280510dd9 Extract channel management to dedicated class 2023-04-14 17:37:49 +02:00
Benoit Marty b925fa8c09 Create PendingIntentFactory 2023-04-14 17:26:01 +02:00
Benoit Marty 6927e26bd2 rename package 2023-04-14 17:17:52 +02:00
Benoit Marty d77162d768 Create getDismissRoomPendingIntent() 2023-04-14 17:14:29 +02:00
Benoit Marty 7e5fd58234 Extract code which create notification actions into ActionFactory and disable quick reply and mark as read actions. 2023-04-14 17:09:42 +02:00
Benoit Marty e8244a9f79 Cleanup 2023-04-14 10:32:20 +02:00
Benoit Marty b0f14bfb15 Deeplink: handle notification click to open a room. 2023-04-13 15:35:01 +02:00
Benoit Marty 62639c44a7 Cleanup 2023-04-12 10:06:11 +02:00
Benoit Marty dd71517abe Cleanup store. 2023-04-12 09:50:04 +02:00
Benoit Marty 20370656cd UnifiedPush WIP 2023-04-12 09:50:04 +02:00
Benoit Marty 287fca5438 UnifiedPush WIP 2023-04-12 09:49:23 +02:00
Benoit Marty 21a07fda07 Sort provider by index 2023-04-12 09:48:56 +02:00
Benoit Marty 7333995630 Split push module into several modules: Firebase, UnifiedPush, store 2023-04-12 09:48:56 +02:00
Benoit Marty 9ac46aed7c PushData must have valid Event and Room ids. 2023-04-12 09:42:05 +02:00
Benoit Marty 58b017a451 Use handy toIntOrNull 2023-04-12 09:41:22 +02:00
Benoit Marty 8d371af78a Move dependency declaration to the gradle catalog. 2023-04-12 09:41:22 +02:00
Benoit Marty 3c2542847c Add test for Push parsers. 2023-04-12 09:40:04 +02:00
Jorge Martin Espinosa 5033e9582c Fix lint issues that prevented CI from passing (#310) 2023-04-10 09:00:02 +02:00
Benoit Marty 8fcbaf4c74 Ignore lint warning. I think it's OK. 2023-04-05 16:59:17 +02:00
Benoit Marty 415830be1a Fix lint warnings. 2023-04-05 16:59:17 +02:00
Benoit Marty 8541fdf64d Add strings to localazy and import them 2023-04-05 16:59:17 +02:00
Benoit Marty a5719cec79 Cleanup up string for push and notification (before integrating to Localazy) 2023-04-05 16:59:17 +02:00
Benoit Marty d650a28904 Finish and test NotificationIdProvider 2023-04-05 16:59:17 +02:00
Benoit Marty 42889973af Make NotificationDrawerManager.updateEvent private. 2023-04-05 16:59:17 +02:00
Benoit Marty 1faedca69d 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 6b3aef23fa Clean up 2023-04-05 16:59:17 +02:00
Benoit Marty 00c23618ab Persist notification data. Note that it will break the key storage for the session database. 2023-04-05 16:59:17 +02:00
Benoit Marty 25604b2651 Improve logs. 2023-04-05 16:59:17 +02:00
Benoit Marty 7e7e798acf Making progress on notification for multi account. 2023-04-05 16:59:17 +02:00