94 Commits
Author SHA1 Message Date
Niccolò Forlini a9265bdf3a Bump Rust to 0.167.2
NOJIRA
2026-06-10 10:27:13 +02:00
Niccolò Forlini 16ede9794a Merge branch 'release/7.9.8' 2026-05-12 09:23:00 +02:00
Niccolò Forlini 6d63c7f510 Log CancellationException in BackgroundExecutionWorker
ET-5803
2026-05-07 08:23:02 +00:00
Niccolò Forlini 9ff7c9719f Ensure background work is flagged as such to Rust SDK
ET-5803
2026-05-07 09:27:40 +02:00
Niccolò Forlini 36eb85256b Rename BG exec battery-related FF value
ET-6144
2026-05-04 11:13:32 +02:00
Niccolò Forlini 49488bfdbb Further tweak Background worker scheduling
Avoid resolving the FF value within onStop and delegate to a different worker

ET-6144
2026-05-04 11:12:16 +02:00
Niccolò Forlini d99cc04e3c Update BackgroundExecutionWorkScheduler logic
- Do not require batteryNotLow (gated behind remote FF)
- Ensure that scheduling happens before onExitForeground is called
- Add additional debug logging

ET-6144
2026-05-04 11:12:08 +02:00
Niccolò Forlini b83a7fcecf Rename BG exec battery-related FF value
ET-6144
2026-04-28 07:18:49 +00:00
Niccolò Forlini 4c42054cfe Further tweak Background worker scheduling
Avoid resolving the FF value within onStop and delegate to a different worker

ET-6144
2026-04-28 07:18:49 +00:00
Niccolò Forlini 7b6cde3f98 Update BackgroundExecutionWorkScheduler logic
- Do not require batteryNotLow (gated behind remote FF)
- Ensure that scheduling happens before onExitForeground is called
- Add additional debug logging

ET-6144
2026-04-28 07:18:49 +00:00
Serdar Ozturk 882f7c83fc Bump Rust SDK to 0.165.1
- New CategoryViewChanged scroller update added
- New categories added as system labels

Rust changes:
- [ET-6126] Obey Mail Settings for Category View in Scrollers
- [ET-6131] Eager auth refresh for migrated sessions + autoheal
- Change-label scroller's command should modify the category view state
- Android .apk contains libgopenpgp-sys.so

NOJIRA
2026-04-27 12:43:03 +00:00
Niccolò Forlini dc24d2d836 Clean up detekt warnings
NOJIRA
2026-03-26 09:16:12 +01:00
Niccolò Forlini 4c80c19894 Merge branch 'release/7.8.1' 2026-03-25 17:12:21 +01:00
Niccolò Forlini c2e7fabec0 Remove unused functions from MailSessionWrapper
ET-5812
2026-03-18 11:10:31 +00:00
Niccolò Forlini c7e9a8355b Add account event broadcasting to mail session
Broadcasts login and logout events through AccountEventBroadcaster

ET-5812
2026-03-18 11:10:31 +00:00
Niccolò Forlini edce018fd3 Bump Rust SDK to 0.164.0
NOJIRA
2026-03-11 10:54:30 +00:00
Stefanija Boshkovska b173943be0 Set session-id cookie before loading the settings web view
In some cases the cookie can be dropped or missing.
We need to make sure it's there by setting it.
This should help some users that experience errors when opening settings.

ET-3874
2026-02-04 17:00:35 +01:00
Niccolò Forlini dab9eb4293 Remove retry workaround after androidx.work bump
ET-5802
2026-01-30 16:29:31 +00:00
Niccolò Forlini 440815d866 Clean up redundant Timber calls
ET-5549
2026-01-22 12:57:06 +00:00
Niccolò Forlini f6f1b1f0ff Default to parallel DNS resolution
ET-5623
2025-12-19 13:24:58 +00:00
Serdar Ozturk 06a20a27c2 Remove user session caching and improve session initialization
- Remove in-memory user session caching and signals
 - Prefer lightweight initialized user context when available
    (initializedUserContextFromSession)
 - Fallback to full user context initialization when required
    (userContextFromSession)
 - Add detailed logging for revoked, missing or unready sessions

ET-5576
2025-12-18 14:22:01 +00:00
Seren 8d468dc5bd Wire in Ratings booster to FeatureFlag
ET-5166
2025-12-05 16:05:08 +00:00
Seren 7f4d8ac517 Use new rust endpoint for getting featureflags attached to useSession
NOJIRA
2025-12-02 14:11:51 +01:00
Niccolò Forlini 7bc2cf4281 Observe Event Loop errors and notify via Snackbar
ET-5299
2025-11-11 12:02:53 +00:00
Niccolò Forlini 84a06a024c Merge branch 'release/7.2.0' 2025-11-03 11:33:29 +01:00
Serdar Ozturk 3a2cea7ea5 Integrate Rust pollEventsAndWait api function
- Session wrapper and event loop repository updated

ET-5189
2025-10-30 11:00:33 +00:00
Niccolò Forlini 98b182fa9d Add BF2025 use cases for eligibility
Related to:
- IAN enabled
- Get current BF phase
- Is user eligible for BF

ET-5064
2025-10-30 10:34:23 +00:00
Marino Meneghel 0fe6a9c823 Unit test switching user with an already cached session
ET-5220
2025-10-29 10:12:24 +01:00
Marino Meneghel dd57b03464 User session updated flow checks whether the session is available in the cache
This solves an issue where switching users wouldn't work due to the old-user-id being
the only one in the  (which would result in eternal loading for
new-user-id even though the latter has a cached session)

ET-5220
2025-10-29 10:12:17 +01:00
Marino Meneghel 267c220c4b Use new stream API to observe user changes
This change is to troubleshoot the "RustBuffer had non-zero capacity" native panic
which seems to occour in correspondence of the async callbacks thorugh uniffi.

Related
https://github.com/mozilla/uniffi-rs/issues/2624
https://github.com/mozilla/uniffi-rs/issues/2600
https://github.com/mozilla/uniffi-rs/issues/2681

ET-5202
2025-10-28 10:10:13 +01:00
Stefanija Boshkovska 00bfc62c8c Bump Rust lib to 0.152.0 2025-10-22 17:29:59 +02:00
Niccolò Forlini bc7e540680 Merge branch 'hotfix/7.0.13' 2025-10-15 11:51:55 +02:00
Niccolò Forlini ebf887effd Treat InetAddress as nullable
Preserve nullability to prevent crashes.

ET-4972
2025-10-07 08:37:26 +00:00
Marino Meneghel a6dcb0928c Replace usages of No Data Cached error with more appropriated ones where possible
NOJIRA
2025-10-06 16:01:06 +00:00
Marino Meneghel 5e4c333489 Replace usages of Unknown error in tests with Crypto Error
NOJIRA
2025-10-06 16:01:06 +00:00
Niccolò Forlini dfe5736407 Merge branch 'hotfix/7.0.12' 2025-10-06 10:46:48 +02:00
Niccolò Forlini cc0d16bdff Retry background execution on pending work remaining
ET-4933
2025-10-03 09:35:53 +00:00
Seren 182071b512 Refactor Recover Mailbox
ET-3788
2025-10-03 08:21:03 +00:00
Seren 1ae5e69f02 Automatically recover mailbox if user session is null
ET-3788

# Conflicts:
#	mail-mailbox/presentation/src/main/kotlin/ch/protonmail/android/mailmailbox/presentation/mailbox/MailboxViewModel.kt
#	mail-mailbox/presentation/src/test/kotlin/ch/protonmail/android/mailmailbox/presentation/MailboxViewModelTest.kt
2025-10-03 08:21:03 +00:00
Marino Meneghel fce326f15b Background executor does not close flow after sending result to callers
NOJIRA
2025-09-29 14:50:01 +00:00
Marino Meneghel 1dae2fb3fd Bump rust lib to 0.147
NOJIRA
2025-09-29 12:48:11 +00:00
Marino Meneghel bcfc19ad1a Rust issue logger logs to sentry directly instead of through timber
NOJIRA
2025-09-29 12:48:11 +00:00
Marino Meneghel 8f41be3601 Fix additional breaking changes and add impl of issue tracker for rust
NOJIRA
2025-09-29 12:48:11 +00:00
Niccolò Forlini 5520ce2d4c Remove initial 30s delay on background processing
The recent Rust SDK exposes a method to stop ongoing foreground work so we don't need to defer the background processing ~30s after the user sends the app to the background.

ET-4858
2025-09-29 10:46:45 +02:00
Niccolò Forlini e1cd321291 Improve Background execution triggering
ET-4814
2025-09-26 14:08:03 +02:00
Niccolò Forlini 193f237113 Introduce multithreaded DNS callback
ET-4838
2025-09-26 14:08:01 +02:00
Niccolò Forlini b05c0757ab Bump Rust to 0.142.6 and update methods call
ET-4565
2025-08-29 13:23:50 +00:00
Niccolò Forlini 2ef7b0e999 Wire Rust resume/pause work on app lifecycle changes
ET-4565
2025-08-29 11:59:17 +02:00
Niccolò Forlini 128d81776e Update feature flag handling and support Unleash
Fetching a FF value is now a 1 shot operation.

ET-4513
2025-08-27 15:09:19 +00:00
Marino Meneghel 817dda0664 Catch any exceptions and fallback to 'others' to let rust handle them
ET-2160
2025-08-26 07:27:35 +00:00