Commit graph

161 commits

Author SHA1 Message Date
Mark Hammond
c5bdf6fff4 Bug 1858789 - vastly more efficient counting of bookmarks for the home activity. 2023-12-12 23:18:02 +00:00
Mark Hammond
acac46c032 Bug 1839228 - RemoteTabsStorage now catches the public error rather than InternalError. 2023-11-14 19:08:49 +00:00
Ben Dean-Kawamura
7f998899ee Bug 1854383 - Increase frequency for StorageMaintenanceWorker
This changes it from running every 24 hours to every 12 as suggested in
https://bugzilla.mozilla.org/show_bug.cgi?id=1854383
2023-11-13 15:14:42 +00:00
Sammy Khamis
1c35a86353 Bug 1862350 - Remove old History delete APIs 2023-11-02 19:37:28 +00:00
Sammy Khamis
5dfad08a18 Bug 1855586 - Update VisitType enum from a-s 2023-10-17 13:15:40 +00:00
Matthew Tighe
144269dab6 Revert "Bug 1853687 - run Rust work on test thread so it can complete sequentially"
This reverts commit 1d92db216df0a837accb1ce4f8e54450096d3d20.
2023-10-11 18:09:06 +00:00
Matthew Tighe
1b7928727e Bug 1853687 - run Rust work on test thread so it can complete sequentially 2023-10-10 23:10:43 +00:00
Donal Meehan
66d2978890 Bug 1853687 - Disable store can delete by range 2023-09-19 17:39:38 +00:00
DonalMe
1088b916e9 Bug 1853687 - Disable test get history metadata between 2023-09-19 17:39:38 +00:00
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
Mark Hammond
3041b45c6f Bug 1838657 - PlacesApiException.UnexpectedPlacesException should no longer cause the browser to crash 2023-06-21 18:32:41 +00:00
Sammy Khamis
1dcd3bf715 Bug 1834870: Move sync telemetry into application services 2023-06-16 03:01:16 +00:00
Mark Hammond
25ef1f3531 Bug 1830574 - Remove duplicate DeviceType types 2023-04-29 02:46:15 +00:00
mcarare
278fa80cc2 Bug 1824717 - Remove unnecessary AndroidJUnit4 runner. 2023-04-05 12:44:13 +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
099a42989e Bug 1800268 - Add new autocomplete providers for bookmarks and local/sync tabs 2023-01-31 11:15:37 +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
Mugurell
fdde48d8c7 Bug 1804258 - Prevent overlapping of cancel requests for history reads
With more search providers querying the same history storage but only after
they try to cancel the in-progress queries it is possible for the cancel
requests to overlap and one search provider to cancel the queries of another.

To mitigate this a new method is available which will use the current input to
query the storage for as a way to drop new cancel requests for the same input.
2023-01-30 16:20:03 +00:00
Ryan VanderMeulen
9a091cf6fe Bug 1801022 - Update AndroidX testing libraries to the latest releases 2023-01-06 19:41:36 +00:00
Mark Hammond
fab3a32f8c Fix breaking change in app-services - ClientRemoteTabs now has a timestamp field 2022-12-08 02:47:51 +00:00
Tarik Eshaq
5e7c910e0d Bug 1803632 - Removes remaining Fennec to Fenix migration functions (https://github.com/mozilla-mobile/firefox-android/pull/245)
* Bug 1803632: Removes fennec migration code

* Adds changlog for fennec to fenix migration removal

* Fixes ktlint errors

* Fixes broken test build
2022-12-01 22:04:56 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05:00
Mark Hammond
7d10accf39 Bug 1801164 - Don't try and record history for URLs with an invalid scheme.
history.canAddUri() previously treated a URL with an empty scheme
as valid, but application-services does not.
2022-11-21 06:52:20 +00:00
Ben Dean-Kawamura
d9800259d9 Updates application-services to v95.0.0
This required updating the code to handle the new app-services error
hierarchy.
2022-11-08 03:09:26 +00: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
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
Mark Hammond
bff7cbebee [components] Places errors caused by an invalid URL are no longer reported to sentry 2022-09-07 07:24:03 +00:00
mcarare
97ae5efa57 [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Remove VisibleForTesting annotation.
Values are also accessed from code, not just from tests.
2022-08-31 09:47:47 +00:00
Mugurell
62f592d82e [components] For https://github.com/mozilla-mobile/android-components/issues/12711 - Use a separate reader for autocomplete suggestions
Decouple this functionality from search suggestions allowing for individual
control over the readers used.
2022-08-30 14:19:12 +00:00
Mugurell
3b881915fc [components] For https://github.com/mozilla-mobile/android-components/issues/12569 - Don't report PlacesException$OperationInterrupted exceptions
This will catch OperationInterrupted exceptions from the interrupted operation.
2022-07-29 15:14:02 +00:00
Mugurell
1b35318c89 [components] For https://github.com/mozilla-mobile/android-components/issues/12557 - Stop logging AS-places reads/writes explicit interrupts
The OperationInterrupted exceptions are expected so logging them to the crash
servers has little use.
2022-07-28 07:23:22 +00:00
Mugurell
994b3515f0 [components] For https://github.com/mozilla-mobile/android-components/issues/12469 - Cancel in progress storage requests before new awesomebar suggestions 2022-07-18 11:29:45 +00:00
Tarik Eshaq
8f11d2f427 [components] Adds exception handling for all places rust calls 2022-06-29 17:41:37 +00:00
mcarare
30e5a6f476 [components] For https://github.com/mozilla-mobile/android-components/issues/12402: Run Robolectric with SDK 32. 2022-06-29 16:31:33 +00:00
mcarare
2a1c468edc [components] For https://github.com/mozilla-mobile/android-components/issues/12376: Run Robolectric with SDK 31.
Current Robolectric version does not support SDK 32.
2022-06-28 13:42:14 +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
Tarik Eshaq
2c1e0afc34 [components] Update Application services to 93.1.0 (https://github.com/mozilla-mobile/android-components/pull/12120)
* app-services tabs component constructor now wants a database filename

* Incrment to 93.0.1

* Bumps a-s to 93.1.0

* No issue: Correct changelog entries

Co-authored-by: Mark Hammond <mhammond@skippinet.com.au>
Co-authored-by: James Hugman <james@hugman.tv>
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2022-05-09 19:21:45 +00:00
Tarik Eshaq
4f17437e57 [components] Catches exceptions from deleteEverything in sync history storage (https://github.com/mozilla-mobile/android-components/pull/12112)
* Catches exceptions from deleteEverything

* Adds changelog

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-05-09 18:27:26 +00:00
Jonathan Almeida
286ccee47c [components] Revert "Application services 93.0.1" (https://github.com/mozilla-mobile/android-components/pull/12100)
* Revert "Incrment to 93.0.1"

This reverts commit 83403d4726846e8047963cf41460aa4a95a64278.

* Revert "app-services tabs component constructor now wants a database filename"

This reverts commit 6484b4b135dbf93cb6f3daea3b43076b984f8a51.
2022-05-04 00:45:06 +00:00
Mark Hammond
63be7ad449 [components] app-services tabs component constructor now wants a database filename 2022-05-03 16:52:56 +00:00
mcarare
2275e49731 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Run tests on sdk 30. 2022-04-28 08:33:29 +00:00
Gabriel Luong
65626ccd3a [components] Issue https://github.com/mozilla-mobile/android-components/issues/11864: Enable UnusedPrivateMember rule for detekt 2022-03-24 18:47:39 +00:00
mavduevskiy
a9bc32eff1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11655: expose HistoryVisitInfo.isRemote; update A-S to 91.0.1 (https://github.com/mozilla-mobile/android-components/pull/11656)
* Closes https://github.com/mozilla-mobile/android-components/issues/11655: expose HistoryVisitInfo.isRemote

* Closes https://github.com/mozilla-mobile/android-components/issues/11655: expose HistoryVisitInfo.isRemote

Co-authored-by: mike a <mavduevskiy@gmail.com>
2022-02-02 19:38:55 -08:00
Sammy Khamis
31fdffa11a [components] Uniffi Places (https://github.com/mozilla-mobile/android-components/pull/11487)
* fixup the VisitObservation, HistoryVisitInfo APIs based on changes in a-s

* Uniffi top frecent site info (https://github.com/mozilla-mobile/android-components/issues/3)

* uses VisitTransition in HistoryVisitInfo (https://github.com/mozilla-mobile/android-components/issues/4)

* fixup the VisitObservation, HistoryVisitInfo APIs based on changes in a-s

* updated based on bookmarks being uniffied

* fix issues with how we are rethrowing places exceptions

* bump appservices version

* fix ktlint lexiographic and ununsed import errors

* updated fennec migration code

Co-authored-by: Tarik Eshaq <tarikeshaq@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-21 04:36:54 +00:00
bendk
ca1959ab5e [components] Uniffi sync manager / Upgrade to A-S 87.1.0 (https://github.com/mozilla-mobile/android-components/pull/11256)
* Use registerWithSyncManager for places (https://github.com/mozilla-mobile/android-components/issues/10128)

* Remove the getHandle() method

Fixes https://github.com/mozilla/application-services/issues/1877

* Updating fxa code to work with the new UniFFIed SyncManager API

* Bumping appservices version

* Fixing PlacesHistoryStorageTest

* Bumping appservices version
2021-12-14 22:09:32 +00:00
Matt Tighe
65f94370a3 [components] move path walking tests to PlacesHistoryStorageTest 2021-12-09 21:01:48 +00:00