Commit Graph

119 Commits

Author SHA1 Message Date
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
Benoit Marty
427716b1a7 No need to use a dispatcher.
Fix issue detected by sonar: `Remove this dispatcher. It is pointless when used with only suspending functions.`
2023-02-01 15:08:31 +01:00
ganfra
581d002918 Handle activity and process recreation for session 2023-01-31 20:49:16 +01:00
Benoit Marty
b4fbe77581 Optimize import 2023-01-30 16:36:51 +01:00
ganfra
27bf42c5f2 Change/move some gradle modules to be better separated. Let core module be a kotlin lib. 2023-01-24 17:38:57 +01:00
ganfra
46e58fe64d enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") 2023-01-20 19:13:44 +01:00
ganfra
0a3697bfe8 Rename matrix modules 2023-01-20 17:27:47 +01:00
ganfra
c6cfe2b5e2 Rename di module 2023-01-20 17:12:40 +01:00
ganfra
f17dd4ccd5 Rename core module 2023-01-20 16:34:04 +01:00
ganfra
bdcfe98aab Changes after review 2023-01-19 15:26:06 +01:00
ganfra
3a6be5f745 Merge branch 'develop' into feature/fga/presenter_tests 2023-01-18 20:47:15 +01:00
ganfra
1f2a9026ea Add some refactoring and first simple test on RoomListPresenter 2023-01-18 17:57:34 +01:00
Benoit Marty
bd93e54543 Kotlin 1.8 + cleanup 2023-01-18 15:01:34 +01:00
Benoit Marty
6e72187ff1 Merge pull request #45 from vector-im/feature/bma/javaKotlin
Rename folders `java` to `kotlin`
2023-01-18 14:58:44 +01:00
dependabot[bot]
e3860193e7 Bump jna from 5.12.1 to 5.13.0
Bumps [jna](https://github.com/java-native-access/jna) from 5.12.1 to 5.13.0.
- [Release notes](https://github.com/java-native-access/jna/releases)
- [Changelog](https://github.com/java-native-access/jna/blob/master/CHANGES.md)
- [Commits](https://github.com/java-native-access/jna/compare/5.12.1...5.13.0)

---
updated-dependencies:
- dependency-name: net.java.dev.jna:jna
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-18 12:53:51 +00:00
Benoit Marty
66a389c4c5 Rename folders java to kotlin 2023-01-18 13:51:30 +01:00
ganfra
b3aa9f7ba2 Fix CI again 2023-01-16 19:38:04 +01:00
ganfra
b622ad6000 Add some interfaces for matrix module 2023-01-16 18:11:54 +01:00
ganfra
b286b8bf9d Add copyright on new files 2023-01-13 18:36:16 +01:00
ganfra
7b197e6e8b Finish migration of Messages screen 2023-01-13 18:05:14 +01:00
ganfra
2869f492d9 Create RoomComponent and manage in RoomFlowNode 2023-01-13 12:29:36 +01:00
ganfra
c3ec363e77 Refactor where Dagger Components belongs (in node) 2023-01-12 21:14:48 +01:00
ganfra
8718bc4cde Start migrating messages screen 2023-01-12 18:19:27 +01:00
ganfra
7d65a4a1e7 Merge branch 'develop' into feature/fga/navigation First step: makes it compile by disabling the new screens (need to migrate to nodes) 2023-01-06 19:22:52 +01:00
ganfra
7fc69a70da Move some code to 'architecture' module 2023-01-04 21:09:59 +01:00
Benoit Marty
243ee07bfc Fix warning 2022-12-23 15:19:24 +01:00
Benoit Marty
3d9ba211a3 Clean up 2022-12-22 18:28:44 +01:00