`runBlockingTest` is deprecated and cannot be used in ui tests either.
Took this opportunity to also refactor some `runBlocking` usages also to
`runTest` as the recommended api to run tests inside a coroutine.
Used `runTestOnMain` where `MainCoroutineRule` was used or needed to be used,
`runTest` elsewhere.
Extra effort for removing all `runBlocking` occurrences in unit tests.
`kotlinx.coroutines.test.runTest` is a test specific API that seems like a more
appropriate way for running tests in a coroutine than the general
`kotlinx.coroutines.runBlocking` api.
This also required updating room to >= 2.4.0.
This new version adds a deprecation of the `MigrationTestHelper` api used in
`LoginExceptionStorageTest` that is to be later fixed in https://github.com/mozilla-mobile/android-components/issues/11765.
`activity_compose` was also update to the latest stable version to ensure a
better match with the latest stable version for compose.
Used 1.6.10 for Kotlin although 1.6.20 is available to prevent any issues with
Compose 1.1.1 reported as an error at compile time:
"e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10
but you appear to be using Kotlin version 1.6.20 which is not known to be
compatible. Please fix your configuration (or
`suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!)."
This also required updating room to >= 2.4.0.
This new version adds a deprecation of the `MigrationTestHelper` api used in
`LoginExceptionStorageTest` that is to be later fixed in https://github.com/mozilla-mobile/android-components/issues/11765.
activity_compose was also update to the latest stable version to ensure a
better match with the latest stable version for compose.
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Issue https://github.com/mozilla-mobile/android-components/pull/8121: Replace MigrationStore with MigrationContext and prevent usage outside of a Middleware.
* Before executing the reducer chain we now verify that we are on the store thread and throw if we are on a different thread.
* MigrationContext now provides a store property that returns the underlying Store instance. This can be used to pass it to
other components and threads that are not part of the Middleware.
* Fixed existing Middleware implementations to use the MiddlewareContext or pass the actual Store instance around.
7578: Closes https://github.com/mozilla-mobile/android-components/issues/6460: Upstream RunWhenReadyQueue r=grigoryk a=NotWoods
7629: Enable incremental room kapt processing r=grigoryk a=NotWoods
This saves us nearly 6 minutes in the artifact transformations stage.
7780: Expose l10n strings by default (fix https://github.com/mozilla-mobile/android-components/issues/7777) r=Amejia481 a=Pike
Use a wild card pattern to find localizable strings.
If you're having WIP strings, put them into another file that's
not name `strings.xml`.
7781: Trim whitespace from email & call context share r=Amejia481 a=sblatz
Co-authored-by: Tiger Oakes <toakes@mozilla.com>
Co-authored-by: Axel Hecht <axel@pike.org>
Co-authored-by: Sawyer Blatz <sdblatz@gmail.com>