Commit graph

163 commits

Author SHA1 Message Date
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
Lina Cambridge
c4a70391a2 [components] Wire up the history tracking delegate for GeckoView Nightly. 2018-11-30 11:17:36 +01:00
Grisha Kruglov
36d15b85d9 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1375: Add a 'SyncableStore' concept, implement it for browser-storage-sync and service-sync-logins
This is a first step toward unifying service-sync-logins and the rest of syncable, places-backed
storage implementations.
2018-11-29 17:29:36 -08:00
Grisha Kruglov
4b08a22be6 [components] Allow creating new instances of PlacesConnection
For history sync, we'd like to use a separate connection, since internally
sync operation is blocking and potentially very long-running.
At the same time, we'd like to maintain a shared connection for general browser
tasks.
2018-11-29 17:29:36 -08:00
Grisha Kruglov
0ddc3dd0ea [components] Improve autocompletion in HistoryStorage implementations to return a 'result' object 2018-11-26 18:51:31 +01:00
Grisha Kruglov
2494b3ce03 [components] Use filesDir as the parent folder for the places database file
Using getDatabasePath doesn't work without extra work on older API versions.
That location doesn't exist, and it seems like we'd need to add a bit of code
to check for its presence, create it, etc., before we can rely on that location.

All of our other code which stores files just uses `filesDir`, and I don't see
a reason not to put `places.sqlite` into that location as well. There isn't much
value in that file living in a "databases" folder.
2018-11-20 08:50:18 +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
140e3f18fe [components] Add browser-storage-sync readme and mention it in global readme 2018-11-07 10:59:33 +01:00
Grisha Kruglov
85eb41db3a [components] A Rust Places backed implementation of concept-storage 2018-11-05 17:27:42 -08:00