Commit Graph

242 Commits

Author SHA1 Message Date
Benoit Marty
e6329ae6d9 Fix Formatting issue and rename class. 2024-06-04 17:31:28 +02:00
Benoit Marty
39e95496cb Simplify DefaultBugReporter and ensure response is closed #2905 2024-06-04 16:13:29 +02:00
Benoit Marty
0e4b30e58d Merge pull request #2941 from element-hq/sync-localazy
Sync Strings
2024-05-29 16:27:17 +02:00
bmarty
46b6ae6251 Sync Strings from Localazy 2024-05-29 12:44:57 +00: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
Benoit Marty
9065e9d2eb Merge pull request #2921 from element-hq/sync-localazy
Sync Strings
2024-05-27 15:52:38 +02:00
Benoit Marty
bbb44db297 Translations: pt -> pt-rBR 2024-05-27 14:51:32 +02:00
Benoit Marty
e632168c34 Merge pull request #2900 from element-hq/feature/bma/fakeClassesQuality
Fake classes name quality
2024-05-27 12:14:50 +02:00
Valere
5e4073257f more coverage 2024-05-23 18:28:39 +02:00
Valere
c6f8360949 More coverage 2024-05-23 17:47:53 +02:00
Valere
92151adc90 fix test 2024-05-23 17:15:16 +02:00
Valere
15cd05ebff Improve coverage 2024-05-23 17:15:16 +02:00
Valere
6ec2b74982 Review: Cleaning / detekt / improve test 2024-05-23 17:15:16 +02:00
Valere
12fdc2b6e0 Add public device keys to rageshakes 2024-05-23 17:15:15 +02:00
Benoit Marty
9ddefc08c5 Move FakeBugReporterMode to FakeBugReporter.Mode 2024-05-23 14:38:49 +02:00
Benoit Marty
e0d95f6d98 isCalledExactly(1) -> isCalledOnce() 2024-05-22 15:26:53 +02:00
bmarty
0241014932 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
bmarty
602b3988e4 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
Jorge Martin Espinosa
c64ead11c8 Upload app id and clean version to bug reports (#2829)
* Upload app id and clean version to bug reports

* Add changelog
2024-05-10 12:15:33 +02:00
Jorge Martin Espinosa
04e6f66a02 Make logs less verbose, especially for sliding sync (#2825)
* Make logs less verbose, especially for sliding sync.

Use the same config as iOS for most targets.

* Make sure we don't try to upload logs that are larger than the max request size of the bug reporter server.

* Display the loading state as soon as the bug reporter starts processing the log files

* Add changelog
2024-05-09 16:39:59 +02:00
Jorge Martin Espinosa
9aadec8435 Enforce mandatory session verification only for new logins (#2811)
* Enforce mandatory session verification only for new logins

- Creates `AppMigration` base interface as a way to isolate migration logic, app migrations must implement this interface.
- Creates `AppMigration01` with the existing logs removal migration and `AppMigration02` with the logic to allow existing sessions to skip verification.
- Add `DefaultSessionPreferencesStoreFactory.remove(sessionId)` to allow a ephemeral session store access to exist outside the `SessionScope` for this new migration.

* Fix tests

* Add more tests.

This also includes creating several abstractions.

* Review changes.

- Make `orderedMigrations` a class property, `migrations` just a constructor parameter to avoid incorrect usages.
- Create `lastMigration` property too, use it instead of `MIGRATION_VERSION`.
2024-05-07 14:06:34 +00:00
bmarty
d2eb0d9820 Sync Strings from Localazy 2024-05-06 00:19:35 +00:00
Benoit Marty
9f2e8d44ce Let the SDK manage the file log cleanup, and keep one week of log. 2024-04-26 12:33:20 +02:00
Benoit Marty
b71a967c0e Remove dead code. 2024-04-24 13:28:11 +02:00
Benoit Marty
f6b5b8419b Implement a migration mechanism to handle internal stuff which need to occur during application upgrade.
Remove VectorFileLogger, it was dead code.
2024-04-24 11:17:23 +02:00
Benoit Marty
75f1d2fdc0 Run ./tools/localazy/downloadStrings.sh --all 2024-04-02 18:12:36 +02:00
bmarty
1e334891ab Sync Strings from Localazy 2024-04-01 00:17:18 +00:00
bmarty
4d68f193a1 Sync Strings from Localazy 2024-03-25 00:18:59 +00:00
Jorge Martin Espinosa
90304a268e Add SDK git SHA to user agent (#2548) 2024-03-14 09:59:46 +01:00
bmarty
0c0c36c393 Sync Strings from Localazy 2024-03-12 13:54:03 +00:00
Jorge Martin Espinosa
b64d7a267e Add extra params to bug reports (#2490)
* Add extra params to bug reports

- `local_time`: the time in the device's timezone.
- `utc_time`: the time in UTC.
- `sdk_sha`: the commit SHA that was used to build the Rust SDK
2024-03-05 17:21:47 +01:00
bmarty
7fd358166d Sync Strings from Localazy 2024-02-28 11:33:05 +00:00
Benoit Marty
66aa342d73 Import string again with new post processing. 2024-02-26 21:36:28 +01:00
bmarty
54ef435d9c Sync Strings from Localazy 2024-02-26 18:17:16 +00:00
Benoit Marty
c746a0acc5 Sync Localazy strings - including post treatment.
./tools/localazy/downloadStrings.sh --all
2024-02-23 17:45:22 +01:00
Benoit Marty
37e85b4db0 Sync Localazy strings.
./tools/localazy/downloadStrings.sh --all
2024-02-23 15:42:50 +01:00
Benoit Marty
9119a7b7fb Sync Localazy strings.
./tools/localazy/downloadStrings.sh --all
2024-02-23 12:23:11 +01:00
bmarty
0224d036c7 Sync Strings from Localazy 2024-02-12 00:10:26 +00:00
Benoit Marty
a1f78372d6 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
8f3bb607da Use appName from BuildMeta in the crash detection dialog. 2024-02-07 16:33:48 +01:00
Benoit Marty
796fb9b483 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
021509ad17 Small rework: create classical createPresenter() method to reduce code duplication. 2024-02-06 08:54:49 +01:00
Benoit Marty
5e44bc9878 Fiw formatting error. 2024-02-05 18:33:35 +01:00
Benoit Marty
3e80629f6b 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
7911a26003 Sync Strings from Localazy 2024-02-05 00:09:59 +00:00
bmarty
2be0a69c50 Sync Strings from Localazy 2024-01-29 00:09:56 +00:00
Benoit Marty
c0da3fb45e 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
d8ddde458b Fix test, there is a new data sent. 2024-01-25 16:46:44 +01:00
Benoit Marty
f47b9827c5 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
6c6c215cd6 Add some Divider around the "View logs" item. 2024-01-25 09:49:36 +01:00