Commit graph

34 commits

Author SHA1 Message Date
Chris Smith
92e9d3a127 Fix a few FFI leaks (#405)
Fix a few FFI leaks

These are instances where we obtain an FFIObject and don't call
Close on it to release the underlying reference on the Rust side.

The worst instance here was leaking an object per room member
every time we refreshed the member list
2023-05-12 10:50:39 +00:00
Chris Smith
ee909fcbd8 Show badges for new invites (#355)
Show badges for new invites

Closes #238
2023-05-04 15:30:55 +00:00
Jorge Martin Espinosa
d391275420 [Room List] Show offline indicator when the device is offline (#239)
* Implement the network status indicator.

* Add `networkmonitor` feature.
2023-04-17 17:01:16 +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
b982d24bab Create LoggedIn presenter 2023-04-05 16:58:33 +02:00
Benoit Marty
08fa22069b Use presenter factory 2023-04-05 16:31:09 +02:00
Benoit Marty
9c6bc8d872 Create noop version for the minimal sample and test. 2023-04-05 16:27:17 +02:00
Jorge Martin Espinosa
3aea24380a [Room Details] Leave room (#296)
* Add leave room functionality to the Room Details screen

* Add snackbar message throught `SnackbarDistpacher`
2023-04-05 15:36:41 +02:00
renovate[bot]
0bc2bcb353 Update dependency com.android.tools:desugar_jdk_libs to v2.0.3 (#281)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-04 09:16:53 +02:00
Jorge Martin Espinosa
ea17abebf3 Display most recent activity in room list (#220)
* Create `RoomLastMessageFormatter` to produce readable room summaries.

* Add unit tests using Robolectric, fix bugs

* Add changelog

* Move `RoomLastMessageFormatter` back to `impl` module, allow it to receive an `EventTimelineItem` instead of `MessageContent`.
2023-03-20 11:18:25 +01:00
Jorge Martin Espinosa
dcb98f06aa Add Session Verification flow (#197) 2023-03-17 10:07:19 +01:00
ganfra
2dc44250fb [MatrixSDK] remove Rust AuthenticationService from the dependency graph 2023-03-14 12:04:53 +01:00
ganfra
801eecfe8d [MatrixSDK] finish mapping timeline and makes it compile 2023-03-13 20:18:16 +01:00
ganfra
ab5cdee031 [Architecture] fix compile and rename LoginRootScreen -> LoginRootView 2023-03-09 10:37:17 +01:00
ganfra
86ebcc376d [Architecture] clean and makes compile 2023-03-09 10:18:25 +01:00
ganfra
7f3679a15e Merge branch 'develop' into feature/fga/improve_node_architecture 2023-03-07 12:10:20 +01:00
Benoit Marty
95ccccc33b Move InMemorySessionStore in it's own module implementation 2023-03-06 13:10:27 +01:00
Benoit Marty
5ea2a4292d Split module session-storage into api and impl. 2023-03-06 13:10:27 +01:00
Benoit Marty
e2bd966878 Split module dateformatter into api, impl and test. 2023-03-06 11:58:11 +01:00
Jorge Martin Espinosa
c87c0ea28c Refine sign in flow to match designs and iOS flow (#100)
* Fix dark theme

* First attempt at replicating iOS' UI & flows.

* Try to fix Maestro tests

* Add error dialogs and tests

* Remove unused modifiers

* Try to fix detekt issues

* Tidy up maestro login flow a bit

* Add `CompoundColorPalette` with some needed colors

* Fixes to designs

* Fix detekt issues

* More design fixes

* Some other minor design fixes

* Add changelog

* Minor tweaks.

* Remove legacy dark material theme as it's no longer needed.

* Move sliding sync 'learn more' url to constants object

* Remove unused focusManager

* Change how the displayed homeserver works

* Keep user input as homeserver if it's valid

* Remove `CompoundColorPalette`, try to fix issue when toggling dark mode.

* Add `@Stable` to the theme, adjust how it toggles in dark mode

* Remove unused strings

* Update screenshots

* Re-organize components in LoginRootScreen

* Bump min coverage to 55, max to 60

* Always replace the snapshots contents when running `recordPaparazzi`

* Fix dark theme preview of components using content colors

* Add `BackButton` component

* Handle errors with dialogs in a generic way

* Align our Dialog components with the designs, use them were needed

* Use a `MatrixHomeserverDetails` data class instead of just an URL.

* `AuthenticationService.getHomeserverDetails()` now returns a `StateFlow`.

Also, try to fix coverage issues in tests.
2023-03-06 09:30:16 +01:00
Benoit Marty
466579c4d3 Move class of matrix.api module to api sub package. 2023-03-02 17:32:47 +01:00
Benoit Marty
b8467e547c Split module matrix to matrix.api with interfaces and data classes and matrix.impl with Rust implementation. 2023-03-02 17:12:13 +01:00
Jorge Martin Espinosa
6677f80abe Store session data in a secure way (#98)
* Replace SessionData DataStore with an encrypted SQLite DB.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-03-02 16:48:54 +01:00
ganfra
a1a9ae1f28 [Architecture] use impl instead of implementation 2023-03-02 15:49:20 +01:00
ganfra
5db0008116 [Architecture] Introduce EntryPoint and use createNode for ParentNode too 2023-03-02 12:33:18 +01:00
ganfra
947eebdcd0 Sample: remove unused drawables 2023-03-01 12:11:43 +01:00
ganfra
c362c7b069 Fix test compilation 2023-03-01 11:11:09 +01:00
ganfra
fefbdcdb71 Should fix CI 2023-02-28 15:19:33 +01:00
ganfra
21a51895b8 Clean minimal sample 2023-02-28 11:56:45 +01:00
ganfra
c729616ce6 Merge branch 'develop' into feature/fga/update_rust_sdk and allow using 'libs' from precompiled script 2023-02-27 14:14:49 +01:00
ganfra
5731deb9a5 Format code 2023-02-24 20:40:48 +01:00
ganfra
830b8caa3a Update rust-sdk (from maven) 2023-02-24 15:05:20 +01:00
ganfra
22fd4ac7f0 Merge develop into feature/fga/update_rust_sdk 2023-02-24 11:14:36 +01:00
ganfra
6989994b50 Create sample app for checking stuff quickly 2023-02-14 20:57:11 +01:00