Commit graph

2912 commits

Author SHA1 Message Date
Benoit Marty
2da6ceeb5f Previous code was throw IllegalStateException(), so keep the existing error, even if it should never happen, being compliant with UseCheckOrError detekt rule. 2023-07-27 12:59:16 +02:00
Benoit Marty
e7c330be95 Enable more detekt rules. 2023-07-26 12:12:37 +02:00
Benoit Marty
495d6020ad Enable detekt rules UseLet and fix existing issues. 2023-07-26 12:12:07 +02:00
Benoit Marty
b8281052b9 Enable detekt rules UseDataClass and fix existing issues. 2023-07-26 11:51:17 +02:00
Benoit Marty
b3cf0d2cf1 Enable detekt rules UnderscoresInNumericLiterals and fix existing issues. 2023-07-26 11:48:08 +02:00
Benoit Marty
0e219200b0 Enable detekt rules OptionalUnit and fix existing issues. 2023-07-26 11:43:48 +02:00
Benoit Marty
f7536a5450 Enable more detekt rules and remove unused extension. 2023-07-26 11:25:05 +02:00
Benoit Marty
1354ec76c9 Enable detekt rules DataClassShouldBeImmutable and fix existing issues. 2023-07-26 11:18:00 +02:00
Benoit Marty
19e81825ff Enable detekt rules AlsoCouldBeApply and fix existing issues. 2023-07-26 11:10:46 +02:00
Benoit Marty
e0255777c0 Enable detekt rules CascadingCallWrapping and fix existing issues. 2023-07-26 11:07:25 +02:00
Benoit Marty
17155a7426 Enable detekt rules SuspendFunSwallowedCancellation and SuspendFunWithCoroutineScopeReceiver. 2023-07-26 10:48:38 +02:00
Benoit Marty
bd0031445e Enable detekt rule TooGenericExceptionThrown and fix existing issue. 2023-07-26 10:40:41 +02:00
Benoit Marty
297d77af85 Enable detekt rule InstanceOfCheckForException. 2023-07-26 10:37:44 +02:00
Benoit Marty
7aa448c3bc Enable detekt rule ComplexCondition, LargeClass. 2023-07-26 10:34:39 +02:00
Benoit Marty
b5a5118160 Enable detekt rule ThrowingExceptionsWithoutMessageOrCause and fix existing issues. 2023-07-26 10:33:51 +02:00
Benoit Marty
9a6ed8dac6 Enable detekt rule UnnecessaryAbstractClass, LoopWithTooManyJumpStatements, EmptySecondaryConstructor. 2023-07-26 10:23:51 +02:00
Benoit Marty
5ae51095e3 Enable detekt rule ProtectedMemberInFinalClass. 2023-07-26 10:19:25 +02:00
Benoit Marty
73347deaaf Enable detekt rule UseCheckOrError and fix existing issues (and a potential crash on MapboxMap?). 2023-07-26 10:18:28 +02:00
Benoit Marty
3f372e5804 Enable detekt rule ImplicitDefaultLocale and fix existing issue. 2023-07-26 10:11:00 +02:00
Benoit Marty
6aa5239189 Enable detekt rule PreviewPublic and fix existing issues. 2023-07-26 10:08:39 +02:00
Benoit Marty
d70fd5b5f9 Fix warning: "'setter for config: ConfigurableFileCollection' is deprecated. Setter will be removed in a future release. Use from or setFrom instead." 2023-07-26 09:45:40 +02:00
renovate[bot]
145300fd89
Update danger/danger-js action to v11.2.7 (#961)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-26 07:02:07 +02:00
Benoit Marty
f27cc5a35b
Merge pull request #957 from vector-im/feature/bma/fixRoomCrash
Rework the way we init and close the RustMatrixRoom
2023-07-25 15:48:57 +02:00
ganfra
e35bb73a86 Rework some MatrixRoom api and fix rust 'destroyed' crash 2023-07-25 12:06:36 +02:00
Benoit Marty
caaa1923c7
Merge pull request #952 from vector-im/feature/bma/fixPushStoreCrash
Fix push store crash
2023-07-25 09:43:37 +02:00
Benoit Marty
9d64edfa61
Merge pull request #956 from vector-im/feature/bma/fixAlternateTextCrash
alternateText can't be an empty string. #955
2023-07-25 09:43:08 +02:00
renovate[bot]
61a3705c2e
Update gradle/gradle-build-action action to v2.7.0 (#958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-25 08:07:48 +02:00
Benoit Marty
a6c96af731 Use ConcurrentHashMap to manage synchronization. 2023-07-24 21:53:19 +02:00
Benoit Marty
832fd69153 Use an AtomicBoolean instead of a MutableStateFlow to atomically init the RustMatrixRoom. Should improve #951. 2023-07-24 18:04:21 +02:00
Benoit Marty
b2394b6adc alternateText can't be an empty string. #955 2023-07-24 17:15:04 +02:00
Benoit Marty
604c672f52
Merge pull request #953 from vector-im/feature/bma/fixCompositionLog
Fix on composition log.
2023-07-24 17:07:59 +02:00
Benoit Marty
4029425ec3 Fix regression from 9bf7c1ccf8, composition log was not correct. 2023-07-24 15:36:55 +02:00
Benoit Marty
a2975ec094 Add a test to cover fix of #950 2023-07-24 15:28:36 +02:00
Benoit Marty
94bc2ce53d getOrPut is not thread safe, so ensure that no multiple instance will be created per data store (#950) 2023-07-24 15:01:48 +02:00
Benoit Marty
0599515708
Merge pull request #947 from vector-im/feature/bma/sentry
Sentry
2023-07-24 13:54:06 +02:00
Benoit Marty
83d47957e5 Ignore this file. 2023-07-24 12:44:50 +02:00
Benoit Marty
4312a96851 Cleanup: there are no androidTest on those modules. 2023-07-24 12:41:02 +02:00
Benoit Marty
4e41566847 Use dns for element-x-android project. 2023-07-24 11:36:51 +02:00
Benoit Marty
e6d27ac69c
Merge pull request #949 from vector-im/sync-localazy
Sync Strings
2023-07-24 10:38:57 +02:00
ElementBot
d9f361ce0a Update screenshots 2023-07-24 08:18:21 +00:00
bmarty
af2159e98f Sync Strings from Localazy 2023-07-24 00:10:09 +00:00
ElementBot
4e4e26d6f2 Update screenshots 2023-07-21 19:53:55 +00:00
Benoit Marty
030afe56b3 Fix typo 2023-07-21 21:40:08 +02:00
Benoit Marty
32c8fdae99 Add a way to crash this app on demand. Useful to test Crash detection, and analytics report, etc. 2023-07-21 20:55:04 +02:00
Benoit Marty
9d9a0c744e Disable Sentry auto-init 2023-07-21 19:28:52 +02:00
Benoit Marty
b99b4aa9ae Include Sentry module. 2023-07-21 19:19:59 +02:00
Benoit Marty
82258f12ba Ensure the application react correctly if analytics is disabled at compilation time. 2023-07-21 19:19:17 +02:00
Benoit Marty
c1d6c0c360 Implement Sentry module as an AnalyticsProvider. 2023-07-21 18:58:10 +02:00
Benoit Marty
69dcd47e22 Update tag value and make it internal. 2023-07-21 18:35:47 +02:00
Benoit Marty
587f615730 Restore NoopAnalyticsService (not used but can be useful for forks). 2023-07-21 18:27:10 +02:00