Commit Graph

145 Commits

Author SHA1 Message Date
Benoit Marty
80fdd5f127 Use correct type (it's a type alias) 2023-04-05 16:31:09 +02:00
Jorge Martin Espinosa
9064481b4c [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
Jorge Martin Espinosa
d7a6779343 [Room member list] Display room member list (#276)
* Implement room member list

* Move timeline initialization back to `TimelinePresenter`.

* Fix crash when the `innerRoom` inside a `RustMatrixRoom` is destroyed but `syncUpdateFlow` is still running.

* Address review comments
2023-04-04 16:07:57 +00:00
Jorge Martin Espinosa
4154a96b54 Revert "Update Gradle and AGP to v8.0 (#283)" (#295)
This reverts commit 4e085efcf4.
2023-04-04 14:44:01 +00:00
Jorge Martin Espinosa
4e085efcf4 Update Gradle and AGP to v8.0 (#283)
* Update dependency gradle to v8

* Handle upgrading Gradle to v8.0.2

* Update AGP to 8.0.0-RC01

* Try to set JAVA_HOME to JDK17

* Update lint version.

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-03 18:02:34 +02:00
ganfra
cfefe89b3e Makes MatrixClient Closeable outside of logout function. 2023-03-30 20:52:32 +02:00
Benoit Marty
f0837972ce Small API change in SDK 0.1.5: RustRoomMember 2023-03-29 10:41:10 +02:00
Benoit Marty
57051e6368 Small API change in SDK 0.1.5: SlidingSyncState 2023-03-29 10:39:36 +02:00
Benoit Marty
5c0b3b8129 Small API change in SDK 0.1.5 2023-03-29 10:39:36 +02:00
Jorge Martin Espinosa
0fb061fb2e [Room Details] Implement room details screen (#256)
* Implement Room Details screen

* Add option to create permalink from room id and alias, add share room action
2023-03-29 05:16:27 +00:00
Jorge Martin Espinosa
76ade37355 Make ChangeServerPresenter.submit fail as expected (#236)
* Make `ChangeServerPresenter.submit` fail as expected

* Fix tests to prevent this from ever happening again
2023-03-23 15:19:18 +01:00
Jorge Martin Espinosa
1b9999425c [Verify Session] Add missing 'start verification' screen. (#241)
* Add missing 'start verification' screen. 
* Fix retries sometimes not working because of `SessionVerificationController.setDelegate`.
* Make the negative button invisible when not needed.
2023-03-23 14:24:25 +01:00
ganfra
46c7ede5dc Merge pull request #215 from vector-im/renovate/org.matrix.rustcomponents
Update dependency org.matrix.rustcomponents:sdk-android to v0.1.3
2023-03-20 14:57:36 +01:00
ganfra
b73ff7aa45 Update code so it compiles 2023-03-20 13:07:50 +01:00
Jorge Martin Espinosa
d9183e4092 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
9639d62bb3 Add Session Verification flow (#197) 2023-03-17 10:07:19 +01:00
Benoit Marty
137e9b61f0 Introduce AppNavigationStateService. 2023-03-16 11:30:09 +01:00
Benoit Marty
ad6a2e9595 allLibraries renamed to allLibrariesImpl and only reference implementation of the libraries. 2023-03-16 10:10:55 +01:00
ganfra
7599b5617f [MatrixSDK] map the remaining EventContents 2023-03-14 12:28:46 +01:00
ganfra
76aefaf995 [MatrixSDK] remove Rust AuthenticationService from the dependency graph 2023-03-14 12:04:53 +01:00
ganfra
dc8cfcdb8e [MatrixSDK] make tests passes 2023-03-13 21:12:42 +01:00
ganfra
38dc36e7bf [MatrixSDK] finish mapping timeline and makes it compile 2023-03-13 20:18:16 +01:00
ganfra
8ccd21d856 [MatrixSDK] start mapping all the timeline objects 2023-03-10 18:32:46 +01:00
ganfra
b1c116b883 [MatrixSDK] makes sure to release FFI objects from RustMatrixRoom by calling close 2023-03-09 20:22:16 +01:00
ganfra
c7519149fd [MatrixSDK] makes sure to release FFI objects from RustRoomSummaryDataSource 2023-03-09 20:08:53 +01:00
ganfra
bdf754c26b [MatrixSDK] makes sure to release FFI objects from RustMatrixClient 2023-03-09 19:58:17 +01:00
Jorge Martin Espinosa
126ad1c8cc Fix the case when a valid homeserver url can't be extracted from the MXID (#182)
* Fix the case when a valid homeserver url can't be extracted from the mxid

* Add changelog

* Add `use` to Rust SDK calls in loginto automatically free memory from Rust objects
2023-03-08 15:36:36 +01:00
Jorge Martin Espinosa
ec66ed0a68 Use user friendly error messages in login following iOS logic (#174)
* Use user friendly error messages in login following iOS logic, fix dialog colors.

* Use `AlertDialogDefaults` for the default properties of dialogs

* Improve Maestro tests with wrong password dialog

* Add tests for error messages
2023-03-07 17:55:48 +01:00
Benoit Marty
a66312d9e2 Split module session-storage into api and impl. 2023-03-06 13:10:27 +01:00
Jorge Martin Espinosa
33b88b8026 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
8faca4fdac Move class of matrix.api module to api sub package. 2023-03-02 17:32:47 +01:00
Benoit Marty
0b5abc7a73 Move module matrixtest to matrix.test 2023-03-02 17:19:58 +01:00
Benoit Marty
fbdc1a477a 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
c20013243b 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
bf95f2a2c7 Format code 2023-02-24 20:40:48 +01:00
ganfra
fa4c8d62cf Improve a bit timeline pagination 2023-02-24 20:34:32 +01:00
ganfra
247f6d2188 Update rust-sdk (from maven) 2023-02-24 15:05:20 +01:00
ganfra
31eb01a7c2 Merge branch 'develop' into feature/fga/update_rust_sdk 2023-02-14 21:15:28 +01:00
ganfra
9526eac81c Add fetchMembers and use it when init timeline (import again rust-sdk with fix on poisoning) 2023-02-14 20:13:47 +01:00
ganfra
2176aa8e5a Change some tracing config but still not working properly (need investigation with rust team) 2023-02-07 19:48:54 +01:00
ganfra
4ff6f56471 Fix slidingSync being slow 2023-02-07 19:48:20 +01:00
ganfra
e5bd96049e Separate eventId and id for TimelineItem.Event 2023-02-07 19:47:49 +01:00
ganfra
6e6d2141b9 Updates on rust: makes SS working but slow. Also branch some timeline virtual items. 2023-02-03 14:41:24 +01:00
Benoit Marty
732fb9bd1e Fix detekt issue, optimize import, fix color of preference category title 2023-02-03 13:43:00 +01:00
ganfra
f0db8b00ea Start integrating uptodate rust sdk and make it compile (WIP) 2023-02-03 10:35:30 +01:00
dependabot[bot]
44fbbb98b2 Bump plugin.serialization from 1.8.0 to 1.8.10
Bumps [plugin.serialization](https://github.com/JetBrains/kotlin) from 1.8.0 to 1.8.10.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v1.8.10/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/compare/v1.8.0...v1.8.10)

---
updated-dependencies:
- dependency-name: plugin.serialization
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-02 22:12:36 +00:00
Benoit Marty
95b8cb6c03 Merge pull request #66 from vector-im/feature/bma/sonar
Sonar / Kover / Codecov
2023-02-02 11:33:12 +01:00
ganfra
6bbd5bdc3d Merge branch 'develop' into feature/fga/fix_restoration 2023-02-01 16:05:05 +01:00
ganfra
085e5bebe4 Simplify AvatarData and avoid carrying ByteArray 2023-02-01 15:57:00 +01:00
Benoit Marty
c6fbbed4c1 Revert unwanted change. 2023-02-01 15:25:24 +01:00