Commit Graph
18 Commits
Author SHA1 Message Date
Niccolò ForliniandMargeBot da6151f4c0 Update legacy core to 31.0.0 + Sentry bump
NOJIRA
2025-04-08 10:21:22 +00:00
Niccolò ForliniandMarino Meneghel 512583cecb Migrate from Config.kt to AppConfiguration
ET-2531
2025-03-24 15:40:58 +01:00
Marino Meneghel 1158314c07 Drop unused Transactor interface and implementation
As clients do not handle their own DB anymore, there's no need to perform
operations in a transaction. This logic is now delegated to the rust library.

ET-1697
2025-02-03 11:32:29 +01:00
Niccolò Forlini 07c191f124 Move to Gradle version catalogs 2024-10-31 11:47:29 +01:00
Niccolò ForliniandMargeBot 847dc914a2 Bump Gradle and update kts files
- Gradle to 8.7 for proper Kotlin 1.9.22 support
- Minor tweaks to get rid of warnings

NOJIRA
2024-03-28 16:05:33 +00:00
Niccolò ForliniandMargeBot acaa23b59a Update existing UI tests
NOJIRA
2024-03-22 11:34:04 +00:00
Niccolò ForliniandMargeBot c4e0ec6c0b Add helper UI test component activity
Since Dagger 2.49, instrumented tests that use setContent + internally call hiltViewModel() fail by default due to issues within the hosting Activity.

This additional activity will be the host for those tests, and the relevant changes will be implemented in the following commit.

NOJIRA
2024-03-22 11:34:04 +00:00
Niccolò ForliniandMargeBot 472d04d2d1 Fix detekt issues
A lot of warnings have been raised after bumping versions, making the detekt task fail.

NOJIRA
2024-03-15 13:16:41 +00:00
Niccolò ForliniandMargeBot 78fcba375c Add WebView provider disabled UI tests
MAILANDR-1015
2023-10-04 13:48:24 +00:00
Niccolò ForliniandMargeBot e69a5cee95 Move WebView mocking into a separate class in test utils
Minor changes needed to avoid duplication

MAILANDR-1015
2023-10-04 13:48:24 +00:00
Marino Meneghel 663bf129d2 Add transactor interface and impl to allow perfoming sync operations in Room
mailandr-491
2023-08-23 15:23:25 +02:00
Marino Meneghel a0b6252996 Ensure latest content inserted by the user is uploaded when composer is closed
We achieve this by "forcing" the upload when user exists the composer.
Forcing is done through appending an upload job to any existing upload
one (compared to the automatic upload logic which would do nothing when
there is an exisiting job ongoing).

This avoids the edge case of not uploading the last content the user
typed in case the previoud request was still ongoing when the composer
is closed.

- ComposerVM runs storing locally and syncing the draft in a non-cancellable context
- StoreAllFieldsLocally returns only after all use cases were called. This is very important to avoid race conditions between storing locally and uploading when composer is closed
- Forcing upload of draft uses workManager's APPEND_OR_REPLACE existing work policy as it's a valid case for previous work to have failed (eg. new draft without body, works fails due to "DraftRequestNotPerformed" to satisfy API constraints)

MAILANDR-491
2023-08-23 15:23:25 +02:00
Marino Meneghel 1772ec21d7 Do not sync draft on API when body is empty
The API doesn't accept being called with an empty body.
Body is empty when the draft was just created and any data (subject, recipients..) was added
but the body wasn't. In order to avoid adding ad-hoc logic to create an encrypted empty-string
body, we block the draft creation (triggered by the automatic sync) from happening till a body was added

MAILANDR-491
2023-08-23 15:23:25 +02:00
Marino Meneghel 9f5a382685 Create LoggingTestRule to test logs and reuse it where needed
MAILANDR-603
2023-07-06 15:12:33 +02:00
Neil Marietta 6b6fe5b2ad chore: Upgraded AGP to 8.0.2 (+Java 17, +Dagger 2.46.1, +Compose 1.4.3, +Accompanist 0.30.1, +Navigation 2.6.0-rc02). 2023-07-04 17:08:39 +02:00
Maciej Surmacz fd14eb1aa1 Adds code needed to encrypt and save a draft in domain and data layers
MAILANDR-555
2023-06-26 18:10:34 +02:00
Maciej Surmacz 968b553626 Adds a main dispatcher rule
It takes care of setting the main dispatcher behind the scenes

MAILANDR-555
2023-06-26 18:10:34 +02:00
Marino MeneghelandStefanija Boshkovska 8cf72686ee Unexpected Parse Errors are logged
MAILANDR-561
2023-06-15 14:27:33 +02:00