Benoit Marty
56ef9f1314
DefaultPickerProvider: inject the application context and cleanup dead code.
...
It seems that `isInTest = true` is not used anymore.
2024-11-20 14:43:29 +01:00
Benoit Marty
6d20fcc29a
Use human readable name for filename of taken photos and videos. Fixes #3894 .
2024-11-20 14:32:22 +01: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
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
Benoit Marty
f5c776ac9c
Protection against ActivityNotFoundException.
...
Should fix https://sentry.tools.element.io/organizations/element/issues/974670/events/f074c0a4da444a5bacc4ef8f8fd5dbea/
2024-09-24 16:28:43 +02:00
Benoit Marty
f61df38e55
Migrate license to AGPL.
...
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
45598a885e
Rename some class from Impl to Default
2024-05-31 09:47:27 +02:00
Benoit Marty
5d086ad82d
Fix moar ktlint issues
2024-01-11 10:02:10 +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
764d7685c2
Remove useless constructor keyword.
2023-12-12 15:29:44 +01:00
Benoit Marty
21200df294
Konsist: check that if sealed interface is used in parameter of Composable, it has the @Stable or @Immutable annotation
2023-11-03 15:19:55 +01:00
Benoit Marty
7389748f3e
Konsist: add rule obout test class name, and fix existing issue
2023-10-12 15:03:50 +02:00
Benoit Marty
7083abcf09
migrate object to data object ( #1135 )
2023-08-24 09:32:44 +02:00
Florian Renaud
33ee366c8d
Fix tests after rebase
2023-05-11 16:30:37 +02:00
Florian Renaud
fcdc737a81
WIP pick avatar image
2023-05-11 16:30:37 +02:00
Jorge Martin Espinosa
5eaa40a14b
[Media upload] Media pre-processing ( #403 )
...
* Create `mediaupload` module for media pre-processing.
* Split `mediapicker` and `mediaupload` modules.
2023-05-10 10:06:56 +02:00
Jorge Martin Espinosa
eeca1c9ee3
Add PickerLauncher wrapper for media/file pickers. ( #361 )
...
* Add `PickerLauncher` wrapper for media/file pickers.
* Add FileProvider path, handle Camera picker and add NoOp implementation to fix tests.
* Move media pickers to their own module.
* Add missing media pickers
* Add feature flag and some extra tests
2023-04-28 10:52:34 +02:00