Commit graph

120 commits

Author SHA1 Message Date
Benoit Marty
a7e38f0925 Sync Localazy strings.
./tools/localazy/downloadStrings.sh --all
2024-02-23 12:23:11 +01:00
bmarty
a614b0d91e Sync Strings from Localazy 2024-02-12 00:10:26 +00:00
Benoit Marty
afc2e6c7fe Remove LogCompositions.
It was used at the beginning of the project, but is not useful anymore.
2024-02-07 16:33:48 +01:00
Benoit Marty
0b3a0fd6a3 Use appName from BuildMeta in the crash detection dialog. 2024-02-07 16:33:48 +01:00
Benoit Marty
07d13fc981 Fix test now that the send button is always enabled but can fail if description is too short. 2024-02-06 09:01:59 +01:00
Benoit Marty
d7b6c39eb0 Small rework: create classical createPresenter() method to reduce code duplication. 2024-02-06 08:54:49 +01:00
Benoit Marty
9cef656d20 Fiw formatting error. 2024-02-05 18:33:35 +01:00
Benoit Marty
87f14d8bab Make the button to send problem enable, but show an error if the decription is too short to prevent users from being blocked. 2024-02-05 16:00:29 +01:00
bmarty
03c95555e3 Sync Strings from Localazy 2024-02-05 00:09:59 +00:00
bmarty
7b0dcbe6a5 Sync Strings from Localazy 2024-01-29 00:09:56 +00:00
Benoit Marty
f88d96fbc5
Merge pull request #2292 from element-hq/feature/bma/gitSha
Git sha and branch in log
2024-01-25 17:40:43 +01:00
Benoit Marty
6933eb51df Fix test, there is a new data sent. 2024-01-25 16:46:44 +01:00
Benoit Marty
cccfdfbcc7 Restore branch and git sha, to use it in logs and in rageshakes.
Remove quite useless `gitRevisionDate`.
2024-01-25 14:16:21 +01:00
Benoit Marty
bed9fcfae1 Add some Divider around the "View logs" item. 2024-01-25 09:49:36 +01:00
Benoit Marty
a6932c6c64 Fix test compilation issue. 2024-01-25 09:32:44 +01:00
Benoit Marty
5fa396d616 View Folders and files
Add test

Add test
2024-01-24 23:11:52 +01:00
Benoit Marty
e2c9389d36
Merge pull request #2213 from element-hq/feature/bma/fdroid
Feature/bma/fdroid
2024-01-17 16:17:41 +01:00
ElementBot
6bc080c279
Sync Strings (#2230)
Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2024-01-15 09:21:04 +01:00
Benoit Marty
592bdb0a57 Fix test.
The change is due to the new label send to the server.
2024-01-12 09:20:36 +01:00
Benoit Marty
1ab10a9e64 var -> val 2024-01-12 09:16:50 +01:00
Benoit Marty
4286be7cfb Add fdroid of gplay to the rageshake data as a label. 2024-01-11 21:42:04 +01: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
365c423190 Clean up 2024-01-04 18:45:34 +01:00
Benoit Marty
e42005fc52 Rename AsyncView to AsyncActionView 2024-01-04 17:50:52 +01:00
Benoit Marty
7b2341aec7 Rename Async to AsyncData 2024-01-04 16:30:56 +01:00
bmarty
e6f4a7364f Sync Strings from Localazy 2023-12-26 09:39:48 +01:00
Benoit Marty
a2c9ac5f62
Merge pull request #1969 from vector-im/feature/bma/rageshakeTraceConfig
Feature/bma/rageshake trace config
2023-12-11 14:58:46 +01:00
Benoit Marty
6439e14a45 Make DefaultBugReporter a singleton. 2023-12-11 10:19:57 +01:00
Benoit Marty
39cca2ce09 Sync localazy using fixed script 2023-12-08 19:24:35 +01:00
Benoit Marty
63d51c5cf5 Send the tracing configuration with the rageshake data. 2023-12-06 17:36:13 +01:00
Benoit Marty
24d3981261 Run the script again. 2023-12-05 12:25:59 +01:00
bmarty
fced91addb Sync Strings from Localazy 2023-12-04 00:09:56 +00:00
Benoit Marty
a12f83b399 Add unit test for VectorFileLogger 2023-11-30 15:52:45 +01:00
ElementBot
12b3196471
Sync Strings (#1892)
* Sync Strings from Localazy

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: jonnyandrew <jonnya@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-28 09:52:23 +01:00
Benoit Marty
93ec54b4ce Test the request which has been done. 2023-11-24 16:47:38 +01:00
Benoit Marty
628d02beb1 Add test for DefaultBugReporter 2023-11-24 16:30:06 +01:00
Benoit Marty
4ca6ed37d8 Cleanup DefaultBugReporter before testing it. 2023-11-24 14:14:48 +01:00
Benoit Marty
b7aea75815 Add test for VectorUncaughtExceptionHandler 2023-11-24 10:36:15 +01:00
ElementBot
eeb9b30d80
Sync Strings (#1839)
* Sync Strings from Localazy

* Fix 'Report a problem' screen title

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-20 09:07:53 +00:00
Marco Romano
58e05d139c
Always ensure media temp dir exists (#1790)
<!-- Please read [CONTRIBUTING.md](https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md) before submitting your pull request -->
 
## Type of change

- [ ] Feature
- [x] Bugfix
- [ ] Technical
- [ ] Other :

## Content

`RustMediaLoader` creates the "${cacheDir}/temp/media" dir only once at class creation. Unfortunately when clearing an app's cache this directory will be deleted and the app's process won't be killed, so subsequent usages of the same instance of `RustMediaLoader` will not work because `cacheDirectory` does not exists. This fix makes sure that such directory is always checked and created if needed.

## Motivation and context

Fixes https://github.com/vector-im/element-x-android/issues/1788

## Screenshots / GIFs

<!--
We have screenshot tests in the project, so attaching screenshots to a PR is not mandatory, as far as there
is a Composable Preview covering the changes. In this case, the change will appear in the file diff.
Note that all the UI composables should be covered by a Composable Preview.

Providing a video of the change is still very useful for the reviewer and for the history of the project.

You can use a table like this to show screenshots comparison.
Uncomment this markdown table below and edit the last line `|||`:
|copy screenshot of before here|copy screenshot of after here|

|Before|After|
|-|-|
|||
 -->

## Tests

<!-- Explain how you tested your development -->

- Step 1
- Step 2
- Step ...

## Tested devices

- [ ] Physical
- [ ] Emulator
- OS version(s):

## Checklist

<!-- Depending on the Pull Request content, it can be acceptable if some of the following checkboxes stay unchecked. -->

- [ ] Changes have been tested on an Android device or Android emulator with API 23
- [ ] UI change has been tested on both light and dark themes
- [ ] Accessibility has been taken into account. See https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
- [ ] Pull request is based on the develop branch
- [ ] Pull request includes a new file under ./changelog.d. See https://github.com/vector-im/element-x-android/blob/develop/CONTRIBUTING.md#changelog
- [ ] Pull request includes screenshots or videos if containing UI changes
- [ ] Pull request includes a [sign off](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#sign-off)
- [ ] You've made a self review of your PR
2023-11-13 15:52:53 +01:00
Benoit Marty
67d58bac35 Move remaining hard-coded dependency to Gradle catalog. We had 2 different version of material3 library. 2023-11-10 16:56:04 +01:00
Benoit Marty
7bb5f3b056 BugReportView: show progress in the button, not as a dialog. 2023-11-06 10:09:41 +01:00
Benoit Marty
f49a506d6a Use AsyncView in BugReportView 2023-11-06 10:09:41 +01:00
Benoit Marty
7c5a41f03d Konsist: no field should have 'm' prefix, and fix new detected issues. 2023-10-10 22:09:57 +02:00
Benoit Marty
8929a90970 Konsist: add test to ensure filename match top level Composable View, and fix existing issue 2023-10-10 15:39:22 +02:00
Benoit Marty
702c137ead Replace mutableStateOf by mutableIntStateOf and mutableFloatStateOf. Use intValue and floatValue to avoid unboxing. 2023-09-26 18:07:53 +02:00
bmarty
c72bb92ef2 Sync Strings from Localazy 2023-09-25 00:09:17 +00:00
Benoit Marty
0e4c146e87 Detekt: Rename DayNightPreviews to PreviewsDayNight to follow naming convention.
MultiPreview annotations should start with `Previews` as prefix
2023-09-21 08:30:36 +02:00
Benoit Marty
f808dcd6ea
Merge pull request #1372 from vector-im/feature/bma/dayNightPreview
Day night preview annotation
2023-09-19 14:04:49 +02:00