Commit graph

160 commits

Author SHA1 Message Date
ElementBot
bfa05ece67
Sync Strings from Localazy (#4677)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-05-05 12:11:22 +02:00
ElementBot
847f8fcbf6
Sync Strings from Localazy (#4648)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-04-28 10:59:35 +02:00
Benoit Marty
7ed362b9db
Push: improve Push history screen, log and stored data (#4601)
* Add adb tools to help with doze mode and app standby

* Add info about the device state when an error occurs in push.

* Keep more events in the DB.

* Push history: add confirmation dialog when resetting the data

* Push history: add a filter to see only the errors

* Update screenshots

* Push history: print out invalid/ignored data received.

* Increase log level for push, to make such log more visible.
It also appears that sometimes Timber.d are not present in the rageshakes.

* Log priority

* Do not include device state for invalid/ignored event.

* Fix tests.

* Fix format issue.

* Fix mistake in code blocks and do not filter when not necessary.

* Improve formatting and add missing unit test.

* Reduce nesting of blocks.

---------

Co-authored-by: ElementBot <android@element.io>
2025-04-16 16:37:32 +02:00
ElementBot
d9bfcc6c52
Sync Strings (#4590)
* Sync Strings from Localazy

* Fix strings usage after some were moved

* Fix Norwegian string that was causing lint to fail

* Update screenshots

---------

Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2025-04-14 11:24:28 +02:00
Benoit Marty
c7f0566dc1
Introduce PushHistoryService to store data about the received push (#4573)
* Introduce PushHistoryService to store data about the received push

Add a push database.

* Update screenshots

* Improve preview.

* Update screenshots

* Add missing test.

* Add test for PushHistoryView

* Fix configuration issue.

Was: w: /libraries/troubleshoot/impl/src/test/kotlin/io/element/android/libraries/troubleshoot/impl/history/PushHistoryPresenterTest.kt:35:27 Cannot access class 'PushProvider' in the expression type. While it may work, this case indicates a configuration mistake and can lead to avoidable compilation errors, so it may be forbidden soon. Check your module classpath for missing or conflicting dependencies.

---------

Co-authored-by: ElementBot <android@element.io>
2025-04-11 12:56:54 +02:00
Benoit Marty
5d881e8b05
Merge branch 'develop' into feature/bma/customPushGateway 2025-03-13 11:39:47 +01:00
Jorge Martin Espinosa
c3817945d9
Fix warnings in tests for push provider modules (#4398) 2025-03-12 17:36:31 +01:00
Benoit Marty
5cab146eed Give ability to configure the UnifiedPush default push gateway. 2025-03-12 17:10:33 +01:00
Benoit Marty
cf60f943a8 Give ability to configure the Firebase push gateway. 2025-03-12 16:50:46 +01:00
bmarty
9a75f40855 Sync Strings from Localazy 2025-03-10 00:28:38 +00:00
Benoit Marty
deb8345f85 Do not rely only on distributor name but consider value (appId) as well.
This will fix issue when multiple UnifiedPush distributor with the same friendly name are available on the phone.
Fixes #4306
2025-02-26 10:55:33 +01:00
Benoit Marty
e5ed0a0641 Move build parameters to a common file 2025-02-20 17:58:41 +01:00
Benoit Marty
43ee582213 Sync strings again.
Revert wrong change on Hungarian plurals.
2025-02-17 11:29:49 +01:00
bmarty
f549e7bba2 Sync Strings from Localazy 2025-02-17 00:30:17 +00:00
bmarty
be91da966a Sync Strings from Localazy 2025-02-03 00:29:01 +00:00
Benoit Marty
97f3be3dc5 Apply dual licenses: AGPL + Element Commercial to file headers.
2 replace all actions have been performed:
- "SPDX-License-Identifier: AGPL-3.0-only" to "SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial"
- "Please see LICENSE in the repository root for full details." to "Please see LICENSE files in the repository root for full details."
2025-01-07 10:05:04 +01:00
Benoit Marty
bbe0f10286 UnifiedPush: extract logic to resolve the gateway url and unit test it. 2024-12-31 10:01:39 +01:00
Benoit Marty
bfdedb9405 Add test on VectorUnifiedPushMessagingReceiver.onReceive 2024-12-31 09:38:44 +01:00
Benoit Marty
59bcca0966 Add missing tests on DefaultUnifiedPushGatewayResolver 2024-12-31 09:32:09 +01:00
Benoit Marty
c47713b105 Fix issue with logger. 2024-12-30 13:20:06 +01:00
Benoit Marty
70326d9dc5 Ensure that when no Matrix gateway exists, the default one is used. 2024-12-30 13:18:37 +01:00
ElementBot
bc59a70043
Sync Strings - add translations to Finnish (#3883)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-11-18 11:37:17 +00:00
Benoit Marty
f0aca004ba Change signature of getCurrentDistributor. 2024-11-15 15:18:28 +01:00
Benoit Marty
719e4b43be Add missing test for UnifiedPushProvider 2024-11-15 14:50:56 +01:00
Benoit Marty
0ba4a01909 Add missing test for FirebasePushProvider 2024-11-15 14:44:51 +01:00
Benoit Marty
7a7b5d2dd0 Properly unregister from the ntfy app when the user logs out. 2024-11-15 12:43:57 +01:00
Benoit Marty
022cd93653 UnifiedPush: also invoke UnifiedPush.unregisterApp when endpoint == null || gateway == null 2024-11-15 12:43:55 +01:00
Benoit Marty
9f5a8a3497 UnifiedPush: unregister the application using the correct instance. 2024-11-15 12:43:53 +01:00
Benoit Marty
12f5839eef Handle Jorge's remarks. 2024-10-30 16:37:58 +01:00
Benoit Marty
a77a6b88ee Now that FCM token can be rotated, let the FirebaseTokenTest observe the value. 2024-10-30 11:54:10 +01:00
Benoit Marty
6bde224695 Add quick fix in notification troubleshot test to perform a Firebase token rotation 2024-10-30 11:54:10 +01:00
Benoit Marty
4aa1afec5a Firebase token: the beginning of the token is always the same, print out the end of it. 2024-10-30 11:54:09 +01:00
Jorge Martin Espinosa
366db4791b
Upgrade Kotlin to v2.0 (#3594)
* Bump Kotlin to v2.0

* Fix lots of issues due to the upgrade: lint issues, function signature incompatibilities, broken tests, etc.

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-10-10 08:32:00 +00:00
Jorge Martin Espinosa
eeec7cc785
Centralise the DI code generation logic (#3562)
* Create Anvil extension helper

* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty
e9a898ff82 Cleanup 2024-09-18 18:08:11 +02:00
bmarty
bb0a281342 Sync Strings from Localazy 2024-09-16 18:40:24 +00:00
Benoit Marty
375ac25d8d Migrate license to AGPL - XML files. 2024-09-06 17:43:35 +02:00
Benoit Marty
f61df38e55 Migrate license to AGPL.
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
Benoit Marty
90af83b3ea Fix the test according to the behavior change. 2024-09-04 12:23:52 +02:00
Benoit Marty
4b7c13dac8 Let UnifiedPushProvider use UnifiedPushCurrentUserPushConfigProvider 2024-09-04 11:42:40 +02:00
Benoit Marty
5b478b3c48 Fix injection issue. 2024-09-04 11:31:46 +02:00
Benoit Marty
afa19f4081 Fix quality issue. 2024-09-04 11:16:20 +02:00
Benoit Marty
79795af723 Imporve logs. 2024-09-04 11:12:21 +02:00
Benoit Marty
e05eefb766 Remove const val PUSH_GATEWAY_PATH, it makes the code more complex for no added value. 2024-09-04 11:09:27 +02:00
Benoit Marty
9e60fa9367 Add missing test on reset methods. 2024-09-04 10:57:14 +02:00
Benoit Marty
a81448c243 Always use the custom url, even if no Matrix gateway is detected. 2024-09-04 10:48:31 +02:00
Benoit Marty
e376b5e5dd
Merge pull request #3294 from element-hq/ci/jme/fix-nightly-reports-firebase
Fix proguard config for nightly and release builds
2024-08-12 12:31:44 +02:00
ElementBot
8bd48fdc60
Sync Strings (#3297)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2024-08-12 06:03:23 +00:00
Jorge Martín
f9e3a67521 Try removing isMinified instead. This should now be controlled at the app module level. 2024-08-11 12:32:28 +02:00
Jorge Martín
43fb47f7af Add proguard file for firebase for release variant too 2024-08-11 10:23:22 +02:00