Commit graph

38 commits

Author SHA1 Message Date
mcarare
063c553913 Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
jackyzy823
7d6c48e2f5 Bug 1851213 - Prefix Application Services dependency 2023-09-05 22:54:54 +00:00
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00:00
Sammy Khamis
1dcd3bf715 Bug 1834870: Move sync telemetry into application services 2023-06-16 03:01:16 +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
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
Mugurell
29325133df Bug 1800268 - Refactor ToolbarAutocompleteFeature to allow easily changing providers
This class drives the autocomplete feature and previously only allowed for
adding a history or domains autocomplete provider.
With the new changes it will support adding and removing any autocomplete
provider individually or in bulk.
2023-01-31 11:15:37 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05:00
kycn
73c1c15596 Bug 1795903 - Introduce StorageMaintenanceWorker that runs periodically to prune places storage.
WorkManager's Worker is created for periodically running storage maintenance operation on places database.
DB size limit is exposed from A-S that indicates the maximum DB size to aim for, in bytes. If the database
exceeds this size, a small number of visits will be pruned. This operation is done periodically by a periodic
work request that, optimally, will run once a day as long as the worker constraints are met.
2022-11-02 17:46:39 +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
Gabriel Luong
df5488d86e [components] Issue https://github.com/mozilla-mobile/android-components/issues/9801: Refactor AutofillCreditCardsAddressesStorage into its own :service-sync-autofill component 2021-03-10 23:35:11 +00:00
Gabriel Luong
22bd25d259 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9455: Introduce Gecko Credit Cards and Addresses Storage Delegate 2021-03-08 03:28:53 +00:00
Gabriel Luong
51343ed38a [components] Issue https://github.com/mozilla-mobile/android-components/issues/9454: browser-storage-sync implementation for credit card and address storage 2021-02-19 23:09:48 +00:00
Sebastian Kaspari
e445c6eb58 [components] Update to Gradle 6.1.1, Android Gradle plugin 4.0.1, Kotlin 1.4 and Coroutines 1.3.9.
This patch reintroduces the changes from PR https://github.com/mozilla-mobile/android-components/pull/8360 that we reverted in PR https://github.com/mozilla-mobile/android-components/pull/8623. Now the issues in
Fenix are resolved and we can land this again.
2020-10-19 07:01:53 +00:00
Sebastian Kaspari
9afa3a75f7 [components] Revert Gradle, Android Gradle Plugin and Kotlin upgrade. (PR https://github.com/mozilla-mobile/android-components/pull/8360)
Revert "Address even more lint errors."

This reverts commit e98ee991b34d318e671c644d63daec53902e68ff.

Revert "Update to Gradle 6.6.1."

This reverts commit cdda701c8f2be6c0486ddf1494885accf78aab00.

Revert "Address lint errors."

This reverts commit 26cb5b27bc2be672c89e7e0c63eeeda9f64c0d08.

Revert "Move JNA configuration to root project."

This reverts commit 694ef37cc30e727f3ec5d275c0e9583385980a43.

Revert "Issue https://github.com/mozilla-mobile/android-components/issues/8319: Update to Kotlin 1.4, Coroutines 1.3.9 and Android lint 27.0.1."

This reverts commit ad675c35e794050dbf8514a2d2fe7506ce0c546c.

Revert "Update Glean to 33.0.4."

This reverts commit 4731c4e2fa52d40f4062a47f02078ca0c85de632.

Revert "Update Glean to 33.0.0."

This reverts commit 352cf88a4d4bad64330d0ec997814fd8b13928c2.

Revert "Update Gradle to 6.1.1."

This reverts commit 18e88aa1a2528b10f7d81ff9dbf1df094071b6ce.

Revert "Update Android Gradle Plugin to 4.0.1."

This reverts commit f915a3b47b0f5584889ff62a80c9642bccfa36ce.
2020-10-06 14:57:11 +02:00
Sebastian Kaspari
6429e13dea [components] Move JNA configuration to root project. 2020-10-02 18:44:27 +00:00
Grisha Kruglov
c131f42a57 [components] Don't modify dependencies after task graph was completed 2020-05-20 18:04:40 -07:00
Vlad Filippov
6d2516abd4 [components] Bump a-s dependency to 0.48.3 2020-01-29 14:27:31 +01:00
Edouard Oger
edb7e4f504 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5006: Add RemoteTabsStorage to storage-sync
The tabs engine `sync` method signature needs to be different than
the one currently defined in `SyncableStore.sync`.
`StorageSync` is the only user of the interface method and is deprecated
already.
This patch removes the `StorageSync` class and makes the store `sync`
methods not inherited from any interface.
2019-12-02 10:19:55 -05:00
Grisha Kruglov
b1a7c46ea4 [components] Part 3: Rust SyncManager integration
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2019-09-27 12:39:48 -07:00
Grisha Kruglov
75cb27e62f [components] Part 2: Move SyncTelemetry into a common support-telemetry component
This allows us to use the same Glean definitions and processing logic
from multiple components. In our case, it'll be browser-storage-sync
(for non-AccountManager syncing) and services-firefox-accounts (SyncManager integration)
2019-09-27 12:39:17 -07:00
Alessio Placitelli
cb8f7dc12d [components] Allow generating docs for Glean metrics
The docs are written, at build-time, to
'$project/docs/metrics.md'. This additionally
enables automatic doc generation for the following
components: lib-crash, storage-sync.
2019-09-03 14:21:51 +02:00
Thom Chiovoloni
81cbc8ce02 [components] Support new a-s megazord build configuration
This includes exposing a new component for configuring the HTTP stack,
as to avoid forcing dependents who have no custom megazord to keep a-s
and a-c versions in sync.

This is required for the CWTS work, and has been coming for a while.
It's a breaking change for users of FxA/Sync/Push who don't megazord
(they must to init HTTP now, and should init rustlog as well). It's also
a breaking change for megazord users, but I'll file PRs for them
individually.

This includes other changes required to update a-s, in logins and fxa
specifically.
2019-07-31 16:47:50 -07:00
Denys M
1f8fc3fa5b [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Enable unit test binary resources globally.
Excluded few modules.
2019-06-13 09:29:52 +02:00
Denys M
f9ec3e04ad [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-storage-sync. 2019-06-11 17:45:56 +02:00
Lina Cambridge
8796c29449 [components] Record Sync engine telemetry in Glean.
This commit adds two Glean pings to the Storage-Sync browser component:
one for history, and one for bookmarks. Both pings record the same set
of base metrics, including incoming and outgoing counts, sync duration,
the hashed FxA UID, and, most importantly, the failure reason if the
store fails to sync. The bookmarks ping records additional validation
data.

The Glean schema is a flattened version of the Sync ping that's
currently sent on Firefox Desktop and Firefox for iOS. Instead of
sending a single ping with multiple syncs, each having multiple
engines, we send one Glean ping per engine per sync.

The pings are recorded directly in the component, so any app that
consumes it should get pings for free.
2019-06-11 09:05:51 +02:00
Grisha Kruglov
4d9df95f05 [components] End-to-end places history unit tests
This is the first time we're exercising the Rust appservices stack
from our unit tests.

New tests are a combination of old browser-storage-sync tests, and tests
from browser-storage-memory, adjusted for the slightly different
implementation.
2019-05-09 13:36:54 -07:00
Sebastian Kaspari
5c54ec453d [components] Closes https://github.com/mozilla-mobile/android-components/issues/842: Migrate from support libraries to AndroidX. 2019-05-02 16:08:55 +02:00
Grisha Kruglov
0ce00b2ccd [components] Part 1: concept-sync 2019-03-12 18:02:08 -07:00
Mitchell Hentges
8fd19cdf3a [components] Moves description to be part of project.ext 2019-01-11 10:08:32 +01:00
Mitchell Hentges
3ee4d96a84 [components] Reads componentsVersion from .buildconfig.yml 2019-01-11 10:08:32 +01:00
Grisha Kruglov
ed472d66ae [components] Clean up gradle build files for some of the components
- Remove a few unnecessary dependencies
- Add some comments around usage of 'api'
- Mark some of the dependencies as 'api' if they're necessary for use of the module
2018-12-21 13:11:27 -08:00
Nick Alexander
b7d65ab773 [components] Do not depend on JNA directly.
I think this is just vestigial: as things developed, we expected to
use JNA directly.  Now all such access is an implementation detail of
the Application Services delivery vehicle.

The Proguard rules have been pushed to the application-services
repository, where they belong.
2018-11-30 11:22:51 +01:00
ali-abdullah
89f3263d12 [components] included buildSrc in ktlint and detekt checks 2018-11-16 12:40:04 +01:00
Christian Sadilek
e34c22f81b [components] Closes https://github.com/mozilla-mobile/android-components/issues/1305: Upgrade to Kotlin 1.3.0 and Coroutines 1.0.1 2018-11-09 09:26:47 +01:00
Grisha Kruglov
2330131a1f [components] Closes https://github.com/mozilla-mobile/android-components/issues/1241: Add getDomainSuggestions to HistoryStorage along with implementations
The domain matching logic is quite basic.
See https://github.com/mozilla-mobile/android-components/issues/1279 for a follow-up.
2018-11-07 13:59:47 -08:00
Grisha Kruglov
85eb41db3a [components] A Rust Places backed implementation of concept-storage 2018-11-05 17:27:42 -08:00