Commit graph

27 commits

Author SHA1 Message Date
mcarare
426ca62ea8 Bug 1847999 - Switch to generating Kotlin code for Room. 2024-02-12 11:35:49 +00:00
mcarare
063c553913 Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
mcarare
34951bac9d Bug 1847996 - Migrate from kapt to KSP. 2023-09-04 13:48:08 +00:00
mcarare
da8fe1b94c Bug 1845530 - Handle PagedList removal from library. 2023-08-14 19:12:23 +00:00
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00:00
Geoff Brown
6561b2de2b Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +00:00
Ryan VanderMeulen
0e5e70291c Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt build.gradle 2023-03-07 00:12:18 +00:00
mcarare
45f919de20 Bug 1802817 - Migrate packagingOptions DSL properties to resources sub-block.
exclude, pickFirst methods are deprecated.
2023-03-02 17:13:09 +00:00
mcarare
1f589a2e0b Bug 1802817 - Set namespace via DSL in gradle build files.
See https://developer.android.com/studio/build/configure-app-module#set-namespace
and https://issuetracker.google.com/issues/172361895
2023-03-02 17:13:09 +00:00
mcarare
922b5f6643 Bug 1802817 - Rename AC Dependencies to ComponentsDependencies.
This change is needed in order to avoid clashes with Dependencies class introduced
in Gradle from 7.6 version.
2023-03-02 17:13:09 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05:00
Gabriel Luong
d9d783b698 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12939: Address all ktlint issues 2022-10-17 17:07:40 -04:00
Mugurell
9ac7115f14 [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Migrate runBlocking and runBlockingTest to runTest in ui tests
`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.
2022-05-10 13:45:03 +00:00
Mugurell
d78b06b6bf [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Migrate runBlocking and runBlockingTest to runTest in unit tests
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.
2022-05-10 13:45:03 +00:00
Mugurell
f91cb8abe1 [components] For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.1 and Kotlin to 1.6.10
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!)."
2022-04-18 17:28:25 +00:00
Mugurell
f04e8b683c [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.0 and Kotlin to 1.6.10"
This reverts commit 3feac3db3901ef73efcd0e14c04b47cbdab2e7ff.
2022-02-28 22:27:21 +00:00
Mugurell
97b77729c7 [components] For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.0 and Kotlin to 1.6.10
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.
2022-02-24 10:12:43 +00:00
Sebastian Kaspari
90ec41fc3a [components] Update Kotlin and Jetpack Compose versions. 2021-10-25 10:58:07 +00:00
Sebastian Kaspari
4772e5b779 [components] Issue https://github.com/mozilla-mobile/android-components/issues/8879: feature-containers: Replace InitializeContainerState with generic init action. 2020-12-02 10:25:57 +00:00
Sebastian Kaspari
b5ba7558a2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8529: Dispatch a generic InitAction from BrowserStore
Co-authored-by: Christian Sadilek  <christian.sadilek@gmail.com>
2020-09-30 17:31:15 +00:00
Sebastian Kaspari
212c7d73c1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7867: Move EngineSession from SessionManager to BrowserState.
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.
2020-08-26 10:50:47 -04:00
Michael Debertol
e48c350611 [components] Correct typo (feaature -> feature) 2020-08-05 19:03:14 +02:00
Gabriel Luong
81f019e616 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7682: Add a ContainerMiddleware to connect ContainerStorage with ContainerState
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2020-07-24 16:23:02 -04:00
MozLando
ee6814912f [components] Merge https://github.com/mozilla-mobile/android-components/pull/7578 https://github.com/mozilla-mobile/android-components/pull/7629 https://github.com/mozilla-mobile/android-components/pull/7780 https://github.com/mozilla-mobile/android-components/pull/7781 (part 2)
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>
2020-07-20 20:04:31 +00:00
Gabriel Luong
f3e9fb83b6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7529: Add ContainerState to BrowserState 2020-07-10 10:59:53 -04:00
Tiger Oakes
bf7a110f64 [components] Enable incremental room kapt processing 2020-07-06 10:38:28 -07:00
Gabriel Luong
0fdca72759 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7194: Create a Feature Containers component 2020-06-09 12:09:27 -04:00