216 Commits

Author SHA1 Message Date
Benoit Marty
84c8a8577b Add test on DefaultPushService 2024-05-22 14:29:35 +02:00
Benoit Marty
a6dd7b4c18 Add test for FirebasePushProvider 2024-05-22 11:27:20 +02:00
Benoit Marty
fbd0d397de Create FakeIsPlayServiceAvailable 2024-05-22 11:11:14 +02:00
Benoit Marty
bfa238ba0d Add test on UnifiedPushProvider 2024-05-22 11:02:11 +02:00
Benoit Marty
6dcc16fc6b UnifiedPushGatewayResolver.getGateway cannot return null. 2024-05-22 09:25:57 +02:00
Benoit Marty
39bb6d3ff3 Add test on UnifiedPushGatewayResolver 2024-05-22 09:23:33 +02:00
Benoit Marty
3ace9aa160 Add test for push distributor change. 2024-05-21 14:45:20 +02:00
Benoit Marty
43d414c602 Cleanup 2024-05-21 14:45:19 +02:00
Benoit Marty
6de5e7b3f5 Add missing methods. 2024-05-21 14:45:18 +02:00
Benoit Marty
5734050e88 Wait for UnifiedPush pusher to be registered before returning Result. 2024-05-21 14:45:17 +02:00
Benoit Marty
b3793169e9 Update comment 2024-05-21 14:45:17 +02:00
Benoit Marty
dc572af9db Ensure UnifiedPush endpoint is registered. 2024-05-21 14:45:17 +02:00
Benoit Marty
4bd01b6f4f Improve API, to avoid ignoring errors 2024-05-21 14:45:16 +02:00
Benoit Marty
eb0dcd6b8c UnifiedPush: correctly unregister the provider. 2024-05-21 14:45:15 +02:00
Benoit Marty
3d5fdfc22e Push distributor: ensure the current UnifiedPush distributor is stored 2024-05-21 14:45:15 +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 Martín
991c00cb3e Use GoogleApiAvailabilityLight instead of GoogleApiAvailability 2024-05-03 17:13:07 +02:00
bmarty
7383ac6678 Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
Benoit Marty
7945297a28 Create dedicated module for notification troubleshoot. 2024-04-02 18:12:36 +02:00
Benoit Marty
8971a6c0fb Rename UserPushStoreFactory.create to UserPushStoreFactory.getOrCreate for code clarity. 2024-04-02 18:12:36 +02:00
Benoit Marty
75f1d2fdc0 Run ./tools/localazy/downloadStrings.sh --all 2024-04-02 18:12:36 +02:00
Benoit Marty
496e0ea566 Improve openUrlInExternalApp API and move url to UnifiedPushConfig 2024-04-02 18:12:36 +02:00
Benoit Marty
a3253bbe5c Localize Troubleshoot notification feature. 2024-04-02 16:15:04 +02:00
Benoit Marty
df0d790493 Avoid tryEmit(), use emit() 2024-04-02 16:15:01 +02:00
Benoit Marty
8588ce7a72 Troubleshoot notifications screen 2024-04-02 16:15:00 +02:00
Benoit Marty
9605a783a2 Use new retrofit bom and change Maven coordinates of kotlinx-serialization 2024-03-25 09:56:30 +01:00
SpiritCroc
00bcc944d7 Do not crash on UP unregistered 2024-02-01 12:04:47 +01:00
Benoit Marty
57e1aee984 Ensure that a PushProvider is available on a device before using it.
It help to fallback to UnifiedPush (if available) if the PlayServices are not installed on the device.
2024-01-17 17:11:34 +01:00
Benoit Marty
72a363c244 Fix moar ktlint issues 2024-01-11 11:24:10 +01:00
Benoit Marty
378692f743 Fix moar ktlint issues 2024-01-11 10:02:10 +01:00
renovate[bot]
7e9cda3aa9 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
79806852ca Move Knit to Gradle catalog and use alias(libs.plugins.kotlin.serialization). Fix issue with JNA 2023-11-13 09:58:00 +01:00
Benoit Marty
a9995886c0 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
765ede0093 Replace hard-coded value by value from gradle datalog 2023-11-10 16:25:58 +01:00
renovate[bot]
dd57197f32 Update kotlin (#1697)
* Update kotlin

* Lower Sonar RAM usage, remove redundant `Dkotlin.daemon.jvm.options`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-11-08 12:58:14 +00:00
Benoit Marty
b7487f9b5b Share tag with other modules. 2023-09-15 17:03:32 +02:00
Benoit Marty
564d38d7a5 Fix R8 error, due to exclusion of analytics group done in #1221. 2023-09-06 08:58:32 +02:00
Benoit Marty
d1156eca76 Exclude some groups related to analytics to be included. #1191 2023-09-04 15:59:01 +02:00
renovate[bot]
78eb7aea81 Update kotlin to 1.9.10 (#1123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-30 08:28:06 +02:00
Benoit Marty
52853101d9 migrate object to data object (#1135) 2023-08-24 09:32:44 +02:00
renovate[bot]
541562ee61 Update kotlin - TO BE MERGED AFTER THE RELEASE (#789)
* Update kotlin

* Update kotlinc.xml

* Update ksp

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-08-17 08:58:10 +00:00
Benoit Marty
d06f86f79d Merge pull request #967 from vector-im/feature/bma/detektConfig
Update detekt config.
2023-07-28 16:47:26 +02:00
Benoit Marty
a6e11ad5ee Ignore unused generated resource for Firebase. 2023-07-27 11:41:35 +02:00
Benoit Marty
8458a9e937 Enable detekt rules DataClassShouldBeImmutable and fix existing issues. 2023-07-26 11:18:00 +02:00
Benoit Marty
bd2826da3a Enable detekt rules UnusedParameter and UnusedPrivateProperty and cleanup the code. 2023-07-20 17:48:56 +02:00
Benoit Marty
bb3511e5f3 Enable detekt rule UnusedPrivateMember and cleanup the code. 2023-07-20 17:44:14 +02:00
renovate[bot]
016c27450a Update kotlin 2023-06-28 22:23:44 +00:00
Yoan Pintas
d2263372d2 Init analytics modules (#350) 2023-06-05 13:11:34 +00:00
renovate[bot]
87e57f5b51 Update kotlin 2023-05-03 17:40:41 +00:00