Commit efdc10e
authored
- 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.
1 parent 7816529 commit efdc10e
File tree
144 files changed
+716
-375
lines changed- features
- cachecleaner/impl/src/main/kotlin/io/element/android/features/cachecleaner/impl
- call/impl/src/main/kotlin/io/element/android/features/call/impl
- services
- utils
- createroom/impl/src
- main/kotlin/io/element/android/features/createroom/impl/root
- test/kotlin/io/element/android/features/createroom/impl
- configureroom
- root
- invite
- api/src/main/kotlin/io/element/android/features/invite/api/acceptdecline
- impl/src/test/kotlin/io/element/android/features/invite/impl
- knockrequests/impl/src
- main/kotlin/io/element/android/features/knockrequests/impl/list
- test/kotlin/io/element/android/features/knockrequests/impl/list
- licenses/impl/src/main/kotlin/io/element/android/features/licenses/impl/list
- location/impl/src/main/kotlin/io/element/android/features/location/impl/common/actions
- lockscreen/impl/src/main/kotlin/io/element/android/features/lockscreen/impl/biometric
- login/impl/src
- main/kotlin/io/element/android/features/login/impl/screens/createaccount
- test/kotlin/io/element/android/features/login/impl
- error
- screens
- chooseaccountprovider
- confirmaccountprovider
- createaccount
- loginpassword
- onboarding
- logout/impl/src/test/kotlin/io/element/android/features/logout/impl
- direct
- messages/impl/src
- main/kotlin/io/element/android/features/messages/impl
- attachments/preview
- forward
- messagecomposer
- report
- test/kotlin/io/element/android/features/messages/impl
- pinned/list
- timeline
- migration/impl/src/main/kotlin/io/element/android/features/migration/impl/migrations
- poll/impl/src/main/kotlin/io/element/android/features/poll/impl/data
- preferences/impl/src
- main/kotlin/io/element/android/features/preferences/impl
- blockedusers
- developer
- notifications
- edit
- user/editprofile
- test/kotlin/io/element/android/features/preferences/impl
- notifications
- user/editprofile
- rageshake/impl/src/main/kotlin/io/element/android/features/rageshake/impl/reporter
- roomdetails/impl/src
- main/kotlin/io/element/android/features/roomdetails/impl
- edit
- notificationsettings
- test/kotlin/io/element/android/features/roomdetails/impl
- edit
- members
- details
- notificationsettings
- rolesandpermissions/changeroles
- userprofile/impl/src/test/kotlin/io/element/android/features/userprofile/impl
- verifysession/impl/src/test/kotlin/io/element/android/features/verifysession/impl/outgoing
- viewfolder/impl/src/main/kotlin/io/element/android/features/viewfolder/impl/file
- gradle
- libraries
- androidutils/src/main/kotlin/io/element/android/libraries/androidutils
- compat
- file
- text
- architecture
- src
- main/kotlin/io/element/android/libraries/architecture
- test/kotlin/io/element/android/libraries/architecture
- core/src/main/kotlin/io/element/android/libraries/core
- data
- extensions
- matrix
- api/src/main/kotlin/io/element/android/libraries/matrix/api/room/powerlevels
- impl/src
- main/kotlin/io/element/android/libraries/matrix/impl
- auth
- qrlogin
- call
- core
- encryption
- media
- notificationsettings
- notification
- permalink
- pushers
- roomlist
- room
- knock
- sync
- timeline
- verification
- test/kotlin/io/element/android/libraries/matrix/impl/fixtures/fakes
- test/src/main/kotlin/io/element/android/libraries/matrix/test
- mediaplayer/impl
- src/test/kotlin/io/element/android/libraries/mediaplayer/impl
- mediaupload
- api/src/main/kotlin/io/element/android/libraries/mediaupload/api
- impl/src/main/kotlin/io/element/android/libraries/mediaupload/impl
- mediaviewer/impl/src/main/kotlin/io/element/android/libraries/mediaviewer/impl
- gallery
- local
- pdf
- txt
- viewer
- oidc/impl/src/test/kotlin/io/element/android/libraries/oidc/impl/webview
- pushproviders
- firebase/src/main/kotlin/io/element/android/libraries/pushproviders/firebase
- unifiedpush/src/main/kotlin/io/element/android/libraries/pushproviders/unifiedpush
- push/impl/src/main/kotlin/io/element/android/libraries/push/impl
- notifications
- troubleshoot
- usersearch/impl/src/test/kotlin/io/element/android/libraries/usersearch/impl
- voiceplayer/impl/src/main/kotlin/io/element/android/libraries/voiceplayer/impl
- tests
- detekt-rules
- src
- main
- kotlin/io/element/android/detektrules
- resources/META-INF/services
- test/kotlin/io/element/android/detektrules
- testutils/src/main/kotlin/io/element/android/tests/testutils/lambda
- tools/dependencies
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
144 files changed
+716
-375
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | | - | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
0 commit comments