Commit graph

167 commits

Author SHA1 Message Date
renovate[bot]
921bc37b3c
Update dependency io.nlopez.compose.rules:detekt to v0.4.16 2024-10-14 14:58:55 +00:00
Jorge Martin Espinosa
366db4791b
Upgrade Kotlin to v2.0 (#3594)
* Bump Kotlin to v2.0

* Fix lots of issues due to the upgrade: lint issues, function signature incompatibilities, broken tests, etc.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-10 08:32:00 +00:00
renovate[bot]
98d9abecd9
fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.4.15 (#3595)
* Update dependency io.nlopez.compose.rules:detekt to v0.4.15

* Fix new detekt issues

* Fix KtLint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-10-04 16:58:19 +02:00
Jorge Martin Espinosa
79c17f714f
Use Anvil KSP instead of the Square KAPT one (#3564)
* Use Anvil KSP instead of the Square KAPT one

* Fix several configuration cache, lint and test issues

* Allow incremental kotlin compilation in the CI

* Workaround Robolectric + Compose issue that caused `AppNotIdleException`

* Update the `enterprise` commit hash

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2024-10-02 11:52:17 +00:00
renovate[bot]
85148f7edc
Update dependency io.nlopez.compose.rules:detekt to v0.4.12 2024-09-10 10:43:15 +00:00
Benoit Marty
9fcf664166 Migrate license to AGPL 2024-09-06 17:45:03 +02:00
Benoit Marty
965e445d04 Replace OSS licenses plugin with Licensee and some manually done UI.
This should fix both configuration cache and reproducible F-droid builds.

Cleanup and remove gplay/fdroid diff on open source licenses.

Co-authored by @jmartinesp
2024-09-02 21:11:52 +02:00
renovate[bot]
c8590f65ab
Update dependency io.nlopez.compose.rules:detekt to v0.4.11 2024-08-30 08:29:31 +00:00
renovate[bot]
a7afdcb5a0
Update dependency io.nlopez.compose.rules:detekt to v0.4.10 2024-08-07 16:50:30 +00:00
renovate[bot]
63cc59a5c8
Update dependency io.nlopez.compose.rules:detekt to v0.4.9 (#3277)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 08:35:37 +02:00
Guillaume
b7c498a0a2
Update sonarcloud project key (#3264) 2024-08-02 16:18:09 +02:00
renovate[bot]
6b8dba6bb2
Update dependency io.nlopez.compose.rules:detekt to v0.4.8 (#3254)
* Update dependency io.nlopez.compose.rules:detekt to v0.4.8

* Fix new lint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-07-31 11:08:11 +02:00
Benoit Marty
766ae389ce Add generated screen to show open source licenses.
For Google Play variant only
2024-07-17 15:53:08 +02:00
Jorge Martin Espinosa
b0cebf5ca0
Improve screenshot testing with ComposablePreviewScanner (#3125)
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
renovate[bot]
9ff3ff3497
Update dependency io.nlopez.compose.rules:detekt to v0.4.5 2024-07-01 10:21:23 +00:00
renovate[bot]
2aabb9e7a2
Update dependency io.nlopez.compose.rules:detekt to v0.4.4 2024-06-06 08:55:38 +00:00
renovate[bot]
0ba5537082
Update dependency io.nlopez.compose.rules:detekt to v0.4.3 2024-05-29 08:07:21 +00:00
renovate[bot]
12b51e381e Update dependency io.nlopez.compose.rules:detekt to v0.3.13 2024-05-17 17:00:04 +02:00
Jorge Martin Espinosa
d9c4c189af
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
57e6db8144
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]
f0d40b272a
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
bc394c2e24 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
609abee809 Generate screenshots for foreign languages ("de" and "fr" for now). #2454 2024-02-28 14:30:34 +01:00
Jorge Martin Espinosa
edf01cf8a7
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]
0b3ad63164
Update dependency io.nlopez.compose.rules:detekt to v0.3.11 2024-01-26 14:37:43 +00:00
renovate[bot]
e9be294ff9 Update dependency io.nlopez.compose.rules:detekt to v0.3.10 2024-01-23 18:13:33 +01:00
Jorge Martin Espinosa
f281c6c365
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
a831f05f6e Fix ktlint issues 2024-01-10 19:33:39 +01:00
Benoit Marty
a28fd0c2e4 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]
c8bd362397
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
628149ff62
Merge branch 'develop' into renovate/io.nlopez.compose.rules-detekt-0.x 2024-01-10 09:39:28 +01:00
renovate[bot]
ffb0fbdbdf
Update dependency io.nlopez.compose.rules:detekt to v0.3.9 2024-01-09 13:16:24 +00:00
Benoit Marty
80c69e7cf7 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
3b06576d21 Upgrade Kover to 0.7.5 2024-01-09 10:51:30 +01:00
Jorge Martín
0309223a32 Only apply dependencyanalysis plugin to some modules 2023-12-28 17:06:05 +01:00
Benoit Marty
05f0f7cf69 Add configuration for suppressKotlinVersionCompatibilityCheck (commented out) 2023-12-28 12:41:02 +01:00
renovate[bot]
0e62856d01
Update dependency io.nlopez.compose.rules:detekt to v0.3.8 2023-12-17 09:48:27 +00:00
renovate[bot]
d34ffdfb71
Update dependency io.nlopez.compose.rules:detekt to v0.3.7 2023-12-15 16:11:32 +00:00
renovate[bot]
1aaf9da769
Update dependency io.nlopez.compose.rules:detekt to v0.3.6 2023-12-14 22:51:54 +00:00
Benoit Marty
75d6eaf8f3 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]
56d4e23e7f
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
3d9aa55995
Remove warnings in the compose compiler reports configuration gradle code (#1932) 2023-11-30 11:42:26 +01:00
Jorge Martin Espinosa
ba4d3a70c7
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
886627d633 Increase Global minimum code coverage boundaries. 2023-11-27 17:13:59 +01:00
Benoit Marty
3a400b5814 Use gradle catalog. 2023-11-10 15:52:28 +01:00
renovate[bot]
9e66180d20
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]
c63601a615
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
44de6adb86
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
030e86f56b
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
3fbe8b61ba 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