Commit graph

128 commits

Author SHA1 Message Date
Jorge Martin Espinosa
c133a6e606
Fix displaying reaction row in message action list (#788)
* Fix displaying reaction row in message action list

* Rename `sendState` to `localSendState` and make it nullable.

Create an `isRemote` helper to detect if an event comes from the server instead.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-06 16:51:51 +00:00
ganfra
1aad14f437 Merge pull request #745 from vector-im/renovate/io.nlopez.compose.rules-detekt-0.x
Update dependency io.nlopez.compose.rules:detekt to v0.1.11
2023-07-04 12:03:18 +02:00
Benoit Marty
c9ba058deb Kover: ignore nearly empty AboutPresenter. 2023-07-03 18:14:54 +02:00
renovate[bot]
90d732f84f Update dependency io.nlopez.compose.rules:detekt to v0.1.11 2023-07-02 10:45:10 +00:00
Marco Romano
7a12a812fe Send pin-drop location (#636)
Share pindrop location

This feature allows the user to share any location by just selecting it from the map.

Closes: https://github.com/vector-im/element-x-android/issues/690
2023-06-29 22:07:47 +00:00
renovate[bot]
d6780b1107 Update kotlin 2023-06-28 22:23:44 +00:00
Marco Romano
882f75864c Set up SDK & reusable map view component (#476)
Adds `libraries/map` which contains some initial building blocks that will be used by the location sharing feature.

Ref: https://github.com/vector-im/element-meta/issues/1684
2023-06-27 07:23:00 +00:00
renovate[bot]
1024c2439a Update dependency io.nlopez.compose.rules:detekt to v0.1.10 2023-06-10 01:07:52 +00:00
renovate[bot]
cabedb5f7a Update dependency io.nlopez.compose.rules:detekt to v0.1.8 (#569)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-09 15:29:12 +02:00
Jorge Martin Espinosa
688ab3bd5e [Message Actions] Display debug info for events in the timeline (#555)
* Display debug info for events in the timeline on debug builds.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-09 06:13:22 +00:00
ganfra
76e35582da Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-07 16:31:28 +02:00
ganfra
a09ea589f2 Media: address PR review 2023-06-07 15:41:07 +02:00
Chris Smith
4738436dd5 Coverage: ignore more generated/non-prod code 2023-06-06 13:55:19 +01:00
Chris Smith
7308428596 Use member count instead of counting members (#530)
Use member count instead of counting members

For the room details screen, use the member count as supplied by
matrix instead of waiting for the entire member list to be
retrieved and then manually adding up all the relevant users.

This removes the loading state of the member count, relying on
a spinner on the member list itself if the user actually wants
to see the members. (The performance of that will be improved
separately on the rust side in the future)

Closes #505
2023-06-06 10:40:17 +00:00
Jorge Martin Espinosa
bd90247896 Ignore PdfViewerState for kover merged verify (#524) 2023-06-05 10:02:55 +02:00
Benoit Marty
b88d9d50f8 Ignore OnBoardingPresenter regarding code coverage. 2023-06-02 09:57:02 +02:00
renovate[bot]
4780bec25c Update dependency io.nlopez.compose.rules:detekt to v0.1.7 2023-05-24 15:37:07 +00:00
renovate[bot]
ddfb0bd784 Update dependency io.nlopez.compose.rules:detekt to v0.1.6 2023-05-23 14:46:56 +00:00
Benoit Marty
c27487839c Merge pull request #394 from vector-im/feature/bma/moveShowkaseButton
Move showkase button
2023-05-05 16:40:01 +02:00
Benoit Marty
f3ee05b939 Fix issue in task, previous screenshot were never deleted. 2023-05-05 09:43:08 +02:00
renovate[bot]
8c00b19ba9 Update kotlin 2023-05-03 17:40:41 +00:00
renovate[bot]
61a01b003b Update kotlin 2023-04-21 16:29:06 +02:00
Benoit Marty
ff36c461b5 Upgrade ktlint to 0.48.2 2023-04-17 15:18:07 +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
12f65ba59c Cleanup rule, TemplatePresenter does not exist anymore 2023-04-12 09:40:04 +02:00
Benoit Marty
df731042c6 Merge branch 'develop' into feature/bma/push 2023-04-06 09:13:24 +02:00
Benoit Marty
63a6cd8737 Ignore some classes about coverage. 2023-04-06 09:12:44 +02:00
Benoit Marty
a073afe8c9 Setup Google services Gradle plugin. 2023-04-05 16:18:44 +02:00
Florian Renaud
86e260d298 exclude fakes from code coverage 2023-04-05 14:25:29 +02:00
Jorge Martin Espinosa
ecc73dd325 [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
Benoit Marty
e85090226b Merge pull request #198 from vector-im/renovate/kotlin-monorepo
Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v1.8.10
2023-03-23 14:23:35 +01:00
renovate[bot]
93948e4a5b Update dependency io.nlopez.compose.rules:detekt to v0.1.5 2023-03-17 11:12:09 +00:00
renovate[bot]
1795a844a1 Update dependency io.nlopez.compose.rules:detekt to v0.1.4 (#221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-16 14:49:48 +01:00
renovate[bot]
33b1ac9c84 Update dependency io.nlopez.compose.rules:detekt to v0.1.3 2023-03-15 17:51:17 +00:00
Benoit Marty
2e4308642f Adapt kover rules. 2023-03-14 16:26:11 +01:00
renovate[bot]
86860ac7df Update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v1.8.10 2023-03-09 16:55:53 +00:00
ganfra
7f3679a15e Merge branch 'develop' into feature/fga/improve_node_architecture 2023-03-07 12:10:20 +01:00
Jorge Martin Espinosa
ea454ff1c3 Add consumer proguard rules for SQLCipher (#138)
* Add consumer proguard rules for SQLCipher

* Add changelog

* Explain why these rules are necessary

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>

* Try to switch to a supported version of Compose Rules to avoid dependency issues

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2023-03-06 19:40:05 +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
ganfra
a94862d778 Try splitting messages into api and impl modules 2023-03-03 14:38:05 +01:00
Jorge Martin Espinosa
f300842a87 CI: make sure Paparazzi test failures stop the test flow (#117)
* Run Paparazzi tests just once when koverMergedReport is used.
* Make sure a Paparazzi failure breaks the test flow and blocks merging.
* Change ./gradlew check call in quality.yml to custom runQualityChecks task.
2023-03-02 09:15:47 +01:00
Benoit Marty
20084d0e88 Code coverage is now 55.89% 🚀 2023-02-15 15:46:33 +01:00
Benoit Marty
40399d5c37 Update documentation related to tests and naming rules. 2023-02-14 17:03:02 +01:00
Benoit Marty
ccdd54f2b7 Ignore file generated by Showkase 2023-02-14 17:03:02 +01:00
Benoit Marty
2a8a4c094c Code coverage is now 50.52% 🚀 2023-02-14 17:03:02 +01:00
Benoit Marty
3cde7d5356 Better to use INSTRUCTION. 2023-02-14 17:03:02 +01:00
Benoit Marty
03aa2a606e Add *deactivated* rule to check code coverage of Views. 2023-02-14 17:03:02 +01:00
Benoit Marty
a418d31fd6 Run test in parallel. 2023-02-14 17:03:02 +01:00
Benoit Marty
6bb01d640f Make @Preview internal.
And exclude class generated by Showkase
2023-02-14 17:03:02 +01:00
Benoit Marty
41965a8bcc Typo 2023-02-14 17:03:02 +01:00