Commit graph

104 commits

Author SHA1 Message Date
renovate[bot]
baebe419e7
Update dependency io.nlopez.compose.rules:detekt to v0.2.2 2023-09-10 13:12:46 +00:00
Jorge Martin Espinosa
e19b27badf
De-duplicate sonar job in the CI (#1238)
* De-duplicate sonar job in the CI

* Remove workaround for `src/*/kotlin` folders

* Downgrade the sonarqube plugin version

* Try increasing workers for this job, since it's quite slow

* Warn about regression in latest sonarqube release

* Forbid backups to prevent cryptographic issues
2023-09-07 11:19:13 +00:00
Benoit Marty
128c4a7b09
SDK 0.1.49: notification decryption is now fully handled by the Rust SDK. (#1231)
* Revert "Ensure the sync is started when receiving a Push, to ensure that the encryption loop is running."

This reverts commit 82f6f358a7.

* Integrate SDK from https://github.com/matrix-org/matrix-rust-sdk/pull/2505

* Enable retryDecryption() on the NotificationClient.

* SDK 0.1.49 - Encryption Sync is enabled by default now, and retryDecryption is the default too.

* Remove feature flag `UseEncryptionSync`

* Fix sample project build

* Exclude `DeveloperSettingsPresenter` from kover verification.

* Add changelog

---------

Co-authored-by: Jorge Martín <jorgem@element.io>
2023-09-06 11:33:36 +02:00
renovate[bot]
bb75539647
Update kotlin to 1.9.10 (#1123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-30 08:28:06 +02:00
Benoit Marty
73784463ce Disable running buildHealth on the CI for now. 2023-08-18 17:49:06 +02:00
yostyle
f33f006aa3 Add task in CI 2023-08-18 17:27:08 +02:00
yostyle
37f5f3bdb7 Check unused plugins 2023-08-18 17:27:08 +02:00
Jorge Martín
31423557ab Fix excludes so screenshot tests are only run once 2023-08-18 14:11:15 +02:00
Benoit Marty
f0eb072a17
Merge pull request #1068 from vector-im/fix/jme/snackbar-padding
Fix snackbar padding
2023-08-17 17:53:54 +02:00
Benoit Marty
b44dde4df6
Merge pull request #1001 from vector-im/renovate/io.nlopez.compose.rules-detekt-0.x
Update dependency io.nlopez.compose.rules:detekt to v0.2.1
2023-08-17 17:48:52 +02:00
Jorge Martín
a3ad3a3788 Try to fix showkase metadata code generation 2023-08-17 16:28:35 +02:00
Jorge Martin Espinosa
0324719606
Upgrade compose-material3 to 1.2.0-alpha05 version (#1011)
Co-authored-by: ElementBot <benoitm+elementbot@element.io>

Also upgrade compileSdk to 34.
2023-08-17 14:20:54 +02:00
renovate[bot]
4a630f141d
Update kotlin - TO BE MERGED AFTER THE RELEASE (#789)
* Update kotlin

* Update kotlinc.xml

* Update ksp

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-08-17 08:58:10 +00:00
renovate[bot]
f138f7c001
Update dependency io.nlopez.compose.rules:detekt to v0.2.1 2023-08-16 12:42:11 +00:00
Benoit Marty
d70fd5b5f9 Fix warning: "'setter for config: ConfigurableFileCollection' is deprecated. Setter will be removed in a future release. Use from or setFrom instead." 2023-07-26 09:45:40 +02:00
Benoit Marty
39b170179e Ignore compilation warnings, disabled by default. 2023-07-20 15:27:57 +02:00
Benoit Marty
80cf8e758a
Merge branch 'develop' into fix/jme/880-sliding-sync-loop-expires-and-restarts 2023-07-17 22:18:59 +02:00
Benoit Marty
af17a5646c Ignore RootNavState regarding koverage. 2023-07-17 22:17:04 +02:00
Jorge Martin Espinosa
2488432805
Hide encryption history + FTUE flow (#839)
* First attempt at implementing encrypted history banner and removing old UTDs

* Get the right behavior in the timeline

* Implement the designs

* Extract post-processing logic, add tests

* Add encryption banner to timeline screenshots

* Create FTUE feature to handle welcome screen and analytics

* Move classes to their own packages, add tests for `DefaultFtueState`.

* Remove unnecessary private MutableStateFlow

* Move some FTUE related methods and classes back to the `impl` module

* Handle back press at each FTUE step

* Remove unneeded `TestScope` receiver for `createState` in tests.

* Use light & dark previews for the banner view.

* Move color customization from `TextStyle` to `Text` component.

* Rename `InfoList` design components, use them in `AnalyticsOptInView` too.

* Cleanup MatrixClient.

* Fix copy&paste error

Co-authored-by: Benoit Marty <benoit@matrix.org>

* Fix typo

* Fix Maestro tests

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-07-17 18:34:36 +02:00
Marco Romano
004b86b05d
MapLibre compose wrapper library (#877)
Heavily inspired from https://github.com/googlemaps/android-maps-compose It doesn't aim to be a full featured library like android-maps-compose, it's been stripped down to only handle our use cases.

Related to:
https://github.com/vector-im/element-meta/issues/1674
https://github.com/vector-im/element-meta/issues/1682
2023-07-17 16:22:29 +02:00
Jorge Martin Espinosa
8865cc2b57
Disable Paparazzi tasks when Kover is running. (#884)
* Disable Paparazzi tasks when Kover is running.

It allows us to split the test jobs between unit tests, screenshot test and coverage reports.

* Move Sonar upload to the quality workflow, since we have no lint info in tests.
2023-07-17 10:55:51 +02:00
Jorge Martin Espinosa
978c7c2aa4
Try to improve 'Tests' CI job times (#865)
* Try to improve 'Tests' CI job times

* Remove `-Pci-build=true` for jobs where the debug mode can be explicitly used

* Add some more excluded `*State` values for kover

* Run paparazzi verification at the same time as Kover tasks, otherwise the coverage is lost.
2023-07-13 10:47:55 +02:00
Benoit Marty
c3ddc628a4 Add exepction for SwipeableActionsState. 2023-07-10 13:03:55 +02:00
Benoit Marty
5e444406e6
Merge pull request #814 from vector-im/renovate/io.nlopez.compose.rules-detekt-0.x
Update dependency io.nlopez.compose.rules:detekt to v0.1.12
2023-07-07 22:18:47 +02:00
Chris Smith
aedcb93bca Reduce code coverage threshold for presenters
Drop from 90% to 85% to allow for smaller presenters where the
number of untestable instructions generated by kotlin/compose
can reach ~10% of the entire file.
2023-07-07 13:22:28 +01:00
renovate[bot]
8beb8c5f6b
Update dependency io.nlopez.compose.rules:detekt to v0.1.12 2023-07-07 11:26:39 +00:00
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