Benoit Marty
90d71f5e66
Fix issue detected by lint.
2025-12-17 10:59:48 +01:00
Benoit Marty
1292da2a72
Copyright: Add Element Creations Ltd. copyright
2025-11-10 11:05:05 +01:00
Benoit Marty
b748fcc631
Copyright: Add final period
2025-11-10 10:13:41 +01:00
Benoit Marty
0a0224b586
Copyright: run command uv run license-editor --repository ../element-x-android
2025-11-10 10:09:26 +01:00
Benoit Marty
e70d767183
Remove context(parentNode: Node) and provide the parent Node as a parameter.
2025-10-31 12:04:57 +01:00
Benoit Marty
187479849d
Create Fake classes in test modules
2025-10-30 18:32:31 +01:00
Benoit Marty
05c5f3c914
Use context parameter for the parentNode
2025-10-30 16:32:53 +01:00
Benoit Marty
566515ca88
Remove NodeBuilder to ensure that Params and Callback are always provided.
2025-10-30 16:32:52 +01:00
Benoit Marty
5197154f54
Ensure a Callback and only one is provided in the Plugin. Also reduce boilerplate code in Nodes.
2025-10-30 16:32:51 +01:00
Benoit Marty
09a18ad7ca
Rename fun in Callback for clarity.
2025-10-30 16:32:48 +01:00
Benoit Marty
826cacf209
Remove @Inject, not necessary anymore when class is annotated with @ContributesBinding
2025-10-22 18:52:37 +02:00
Benoit Marty
da78386d25
Add Konsist test to check that toPersistentList() is not used.
...
Same for `toPersistentSet()` and `toPersistentMap()`.
Fix existing issues.
2025-10-08 15:51:18 +02:00
renovate[bot]
c1cd259ce7
Update metro to v0.6.7 ( #5416 )
...
* Update metro to v0.6.7
* Replace `@Inject` with `@AssistedInject` where needed
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io >
2025-09-26 08:16:36 +00:00
Benoit Marty
626689a285
Fix issue after rebase.
2025-09-16 14:41:00 +02:00
Benoit Marty
264472ba36
Avoid using AndroidJUnit4 runner to test Entrypoint implementations.
2025-09-16 14:38:32 +02:00
Benoit Marty
e36273b94c
Add test on DefaultEntryPoints
2025-09-16 14:38:32 +02:00
Benoit Marty
629fc552e5
Use DependencyHandlerScope.testCommonDependencies()
2025-09-16 14:38:31 +02:00
Benoit Marty
11887a39a2
Rename to follow naming convention
2025-09-16 10:36:35 +02:00
Benoit Marty
46153c7ac6
Compute the content in the LaunchEffect
2025-09-08 17:09:23 +02:00
Benoit Marty
199342d476
Improve rendering of title of the folder view
2025-09-08 16:56:59 +02:00
Benoit Marty
83647f2d0c
Format files.
2025-09-08 16:45:54 +02:00
Benoit Marty
20b6f0d6ee
Restore commented out code.
...
Fix regression from #5253
2025-09-08 16:42:58 +02:00
Benoit Marty
4e720cecb1
Rename anvil modules to annotations and codegen
2025-09-05 14:26:27 +02:00
Jorge Martín
8f09fd62d9
Fixes after rebase
2025-09-04 16:49:21 +02:00
Jorge Martín
e06bacbff3
Redo DI gradle setup code
2025-09-04 16:49:20 +02:00
Jorge Martín
fc3153bd26
Fix lint issues and restore commented out code
2025-09-04 16:49:18 +02:00
Jorge Martín
92a4b8b66b
Start migrating Anvil KSP to Metro
2025-09-04 16:48:34 +02:00
Benoit Marty
4afc20798c
[a11y] Ensure that heading() is applied to all screen titles.
2025-07-04 12:15:42 +02:00
Jorge Martin Espinosa
58a3ea8b1f
Add catchingExceptions method to replace runCatching ( #4797 )
...
- Add `runCatchingExceptions` and `mapCatchingExceptions` to replace `runCatching` and `mapCatching`.
- Make `tryOrNull { ... }` catch only exceptions too.
- Apply the changes to the whole project.
- Add new Rust fakes for tests to handle the code that's now unblocked - previously it just threw an `UnsatisfiedLinkError` which we ignored.
- Add a new `detekt-rules` project with a `RunCatchingRule` to prevent `runCatching` and `mapCatching` usages.
2025-06-04 09:02:26 +02:00
Benoit Marty
4d5f63f9f0
Remove blank line
2025-03-18 12:31:41 +01:00
Benoit Marty
2b7b2e1358
i18n
2025-03-18 11:43:13 +01:00
Benoit Marty
e02517b9a3
Extract FileContent to its own file.
2025-03-18 11:38:36 +01:00
Benoit Marty
b6bbb0bc7a
Render txt files content.
...
PdfViewer increase the top padding.
2025-03-14 16:51:57 +01:00
Benoit Marty
d44f5e563f
Replace Material icons with Compound icons wherever it's possible
2025-02-26 22:19:19 +01:00
Benoit Marty
05fc76822a
Apply dual licenses: AGPL + Element Commercial to file headers.
...
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Jorge Martin Espinosa
2efdb3ae45
Centralise the DI code generation logic ( #3562 )
...
* Create Anvil extension helper
* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty
2b016227e9
Migrate license to AGPL.
...
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Jorge Martin Espinosa
950e502ca6
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
Benoit Marty
87689d787e
Lambda parameters in a composable function should be in present tense, not past tense.
...
https://mrmans0n.github.io/compose-rules/rules/#naming-parameters-properly
2024-05-29 12:18:23 +02:00
Jorge Martin Espinosa
973c57d401
Update Compound to v0.0.5 and update icons ( #2380 )
...
Update Compound to `v0.0.5`:
- Make sure we fix all the breaking changes.
- Update some icons to use the compound version instead.
-Replace icons with their Compound counterparts when possible.
- Clean up unused icons.
- Fix issues with incorrect icons or sizes being used after replacing the temporary icons with the Compound ones.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2024-02-12 16:41:58 +00:00
Benoit Marty
465748d26f
Add preview for Rust logs (and fix a bug!)
2024-01-26 14:55:53 +01:00
Benoit Marty
407d1cab24
Extract colors to avoid duplication and for more clarity.
2024-01-26 14:49:45 +01:00
Benoit Marty
52e0137904
Rename ColorationMode.Logs to ColorationMode.RustLogs.
2024-01-26 14:46:51 +01:00
Benoit Marty
feed0ada86
FileViewer: fix coloration issue for logs files.
2024-01-26 11:45:01 +01:00
Benoit Marty
66ed3f2e3f
Fix Compose issues.
2024-01-25 11:10:01 +01:00
Benoit Marty
647c431f59
Change type of ViewFileState.lines from ImmutableList<String> to AsyncData<List<String>> to properly handle loading and error states.
2024-01-25 10:21:28 +01:00
Benoit Marty
4f8edce538
View Folders and files
...
Add test
Add test
2024-01-24 23:11:52 +01:00