Commit Graph

152 Commits

Author SHA1 Message Date
renovate[bot]
40d0423597 Update dependency io.nlopez.compose.rules:detekt to v0.4.4 2024-06-06 08:55:38 +00:00
renovate[bot]
b8f3b66d0e Update dependency io.nlopez.compose.rules:detekt to v0.4.3 2024-05-29 08:07:21 +00:00
renovate[bot]
cea03085c3 Update dependency io.nlopez.compose.rules:detekt to v0.3.13 2024-05-17 17:00:04 +02:00
Jorge Martin Espinosa
c316816c06 Fix dependencyAnalysis plugin (#2766)
* Fix dependencyAnalysis plugin.

For some reason the plugin needs to be manually applied to all the libs, otherwise running `./gradlew buildHealth` does nothing.

Also, I had to add it to the convention plugins instead of using the `subprojects { ... }` approach because of the `:libraries:rustsdk` and `:libraries:textcomposer:lib` modules, which aren't proper Java/Kotlin modules.

* Add some extra checks to the dependency analysis plugin
2024-04-29 19:03:04 +02:00
Jorge Martin Espinosa
517be47397 Move Konsist tests to quality checks (#2558)
* Move `Konsist` tests to quality checks

This should also help us avoid running them for every single test task, including Kover.

* Fix upload report path filter
2024-03-15 18:03:13 +01:00
renovate[bot]
e509a2963c Update dependency io.nlopez.compose.rules:detekt to v0.3.12 (#2510)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-08 10:23:35 +01:00
Benoit Marty
537074bee3 Simple Html page to view all the screenshots.
Do not delete the whole screenshots folder, but just delete per language when the screenshots are generated.

Generate the data.js file regarding the existing screenshots, to be able to add languages.
Also the language will be sorted alphabetically (English still first).
And the screenshot will be sorted alphabetically.

Update the script to generate screenshot for specific language on demand.
2024-03-01 15:10:18 +01:00
Benoit Marty
bdcd515485 Generate screenshots for foreign languages ("de" and "fr" for now). #2454 2024-02-28 14:30:34 +01:00
Jorge Martin Espinosa
31db4fa3c8 Bump CI max JVM heap size and CPU usage (#2444)
* Bump CI max JVM heap size and CPU usage

* Bump Heap size a bit more for `build`

* Bump Heap size for tests too
2024-02-27 11:26:56 +01:00
renovate[bot]
ab64c3d80b Update dependency io.nlopez.compose.rules:detekt to v0.3.11 2024-01-26 14:37:43 +00:00
renovate[bot]
3cb75c3f31 Update dependency io.nlopez.compose.rules:detekt to v0.3.10 2024-01-23 18:13:33 +01:00
Jorge Martin Espinosa
e859b58f09 Don't apply Kover to projects with AAR libraries (#2211)
* Don't apply Kover to projects with AAR libraries

* Move the Kover configuration to the `plugins` project
2024-01-11 21:16:31 +01:00
Benoit Marty
d3830af78b Fix ktlint issues 2024-01-10 19:33:39 +01:00
Benoit Marty
807d869c52 Upgrade ktlint to version 1.1.1.
Need to disable `ktlint_standard:trailing-comma-on-declaration-site` else got this error:
Skipping rule(s) which are depending on a rule which is not loaded. Please check if you need to add additional rule sets before creating an issue.
  - Rule with id 'RuleId(value=standard:trailing-comma-on-declaration-site)' requires rule with id 'RuleId(value=standard:wrapping)' to be loaded
2024-01-10 18:27:54 +01:00
renovate[bot]
7e9cda3aa9 Update plugin ktlint to v12.1.0 (#2200)
* Update plugin ktlint to v12.1.0

* Run `./gradlew ktlintFormat` and fix some issues manually.

* Fix other issues reproted by Ktlint

* Limit false positives, KtLint removes unnecessary curly brace in String templates.

* Remove useless Unit

* Minor improvements over ktlint changes

* Restore `AlertDialogContent` behaviour

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00
Benoit Marty
93b35a33a1 Merge branch 'develop' into renovate/io.nlopez.compose.rules-detekt-0.x 2024-01-10 09:39:28 +01:00
renovate[bot]
507d7b03d1 Update dependency io.nlopez.compose.rules:detekt to v0.3.9 2024-01-09 13:16:24 +00:00
Benoit Marty
8f2a1e9e2d Migrate "When running on the CI, run only debug test variants".
Following notice here: https://github.com/Kotlin/kotlinx-kover/blob/v0.7.0/docs/gradle-plugin/migrations/migration-to-0.7.0.md#using-isdisabled-boolean-is-an-error-kover-test-task-config-was-removed
2024-01-09 11:04:28 +01:00
Benoit Marty
b727312040 Upgrade Kover to 0.7.5 2024-01-09 10:51:30 +01:00
Jorge Martín
0e19c2f2c8 Only apply dependencyanalysis plugin to some modules 2023-12-28 17:06:05 +01:00
Benoit Marty
0bf14ca7c3 Add configuration for suppressKotlinVersionCompatibilityCheck (commented out) 2023-12-28 12:41:02 +01:00
renovate[bot]
195e52c31c Update dependency io.nlopez.compose.rules:detekt to v0.3.8 2023-12-17 09:48:27 +00:00
renovate[bot]
6e01dd77be Update dependency io.nlopez.compose.rules:detekt to v0.3.7 2023-12-15 16:11:32 +00:00
renovate[bot]
ad7b07e8c0 Update dependency io.nlopez.compose.rules:detekt to v0.3.6 2023-12-14 22:51:54 +00:00
Benoit Marty
17616d6fc3 Organization renaming: replace all https://github.com/vector-im by https://github.com/element-hq 2023-12-13 09:40:07 +01:00
renovate[bot]
cfbbb74884 Update dependency io.nlopez.compose.rules:detekt to v0.3.5 (#1906)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-04 16:03:18 +01:00
Jorge Martin Espinosa
48ef9cda19 Remove warnings in the compose compiler reports configuration gradle code (#1932) 2023-11-30 11:42:26 +01:00
Jorge Martin Espinosa
c739ebc0ee Try to make all collections used in Compose code immutable (#1922)
* Try to make all collections used in Compose code immutable.

Mark sealed interfaces as `@Immutable` too

* Add gradle code to check the compose compiler reports

* Fix some more unstable classes
2023-11-29 15:02:08 +00:00
Benoit Marty
eaf63d2015 Increase Global minimum code coverage boundaries. 2023-11-27 17:13:59 +01:00
Benoit Marty
3598dbdede Use gradle catalog. 2023-11-10 15:52:28 +01:00
renovate[bot]
dd57197f32 Update kotlin (#1697)
* Update kotlin

* Lower Sonar RAM usage, remove redundant `Dkotlin.daemon.jvm.options`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-08 12:58:14 +00:00
renovate[bot]
927552d2e5 Update dependency io.nlopez.compose.rules:detekt to v0.3.3 (#1638)
* Update dependency io.nlopez.compose.rules:detekt to v0.3.3

* Fix lint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-02 13:11:42 +01:00
Jorge Martin Espinosa
0bd9c78836 Initial support for member suggestions (#1631)
* Initial support for member suggestion (search and UI)

* Add custom `BottomSheetScaffold` implementation to workaround several scrolling bugs

* Start searching as soon as `@` is typed, add UI following initial designs

* Extract suggestion processing code

* Extract component, add previews, fix tests

* Add tests

* Add exception from kover to the forked bottom sheet code

* Add a feature flag for mentions

- Extract composer & mention suggestions to their composable.
- Extract mentions suggestions processing to its own class.
- Add `MatrixRoom.canTriggerRoomNotification` function.
- Update strings and conditions for displaying the `@room` mention.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-27 10:26:40 +00:00
Jorge Martin Espinosa
c40a39bbfa Update the chat screen UI using RoomInfo. (#1640)
* Update the chat screen UI using `RoomInfo`.

This is specially useful for getting live values for `hasRoomCall`.

* Ensure the first `MatrixRoomInfo` is emitted ASAP

* Try excluding `*Present$present$*` inner functions from kover as separate entities

* Update strings

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-10-26 14:27:42 +00:00
Benoit Marty
512dffaf24 Test coverage: Exclude :libraries:matrix:impl module, it contains only wrappers to access the Rust Matrix SDK api, and mappers. It is not really relevant to unit test that: there is no logic to test. 2023-10-24 17:17:15 +02:00
ganfra
f283594fbd PIN : add test for SetupPinPresenter 2023-10-23 11:41:08 +02:00
ganfra
fbced52fee Lockscreen: renaming 2023-10-20 15:15:19 +02:00
ganfra
bde2705654 Pin create: add test for presenter 2023-10-19 15:45:11 +02:00
ganfra
5146e92187 Fix kover... 2023-10-18 16:52:45 +02:00
Benoit Marty
da2a530109 Kover: properly exclude pin code presenters 2023-10-13 17:22:05 +02:00
ganfra
2cefd93ccb Pin setup : exclude pin presenters from test coverage check 2023-10-12 17:45:22 +02:00
Benoit Marty
9f9c557ca9 Kover: ignore "*_Factory_Impl" 2023-09-29 17:06:58 +02:00
Benoit Marty
264551fe04 Increase koverage threshold 2023-09-29 15:13:06 +02:00
Benoit Marty
3f9d869f4d Exclude generated classes from code coverage (locally: 64.1% to 65%) 2023-09-29 15:12:03 +02:00
Benoit Marty
03cfd98af5 buildDir is deprecated, replace by layout.buildDirectory 2023-09-29 09:56:32 +02:00
renovate[bot]
53818646d8 Update dependency io.nlopez.compose.rules:detekt to v0.3.0 2023-09-20 21:21:10 +00:00
renovate[bot]
b8c85c41e4 Update dependency io.nlopez.compose.rules:detekt to v0.2.3 2023-09-17 12:29:03 +00:00
renovate[bot]
0d2e9e960b Update dependency com.google.gms:google-services to v4.4.0 2023-09-14 22:25:11 +00:00
renovate[bot]
1c4742851d Update dependency io.nlopez.compose.rules:detekt to v0.2.2 2023-09-10 13:12:46 +00:00
Jorge Martin Espinosa
b20d9f6973 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