Commit graph

15 commits

Author SHA1 Message Date
Mitchell Hentges
3ee4d96a84 [components] Reads componentsVersion from .buildconfig.yml 2019-01-11 10:08:32 +01:00
Grisha Kruglov
c8d1e5299f [components] Closes https://github.com/mozilla-mobile/android-components/issues/1647: Improve URL toolbar autocompletion matching
It still isn't great, but has a broader coverage than before.
2019-01-08 11:04:10 -08: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
Grisha Kruglov
67e68b9b49 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1506: Adjust our use of levenshtein distance to account for empty strings
This also adds history storage as one of the awesomebar data providers, since doing
so doesn't crash the browser anymore.
2018-12-14 11:31:55 -05:00
Lina Cambridge
c4a70391a2 [components] Wire up the history tracking delegate for GeckoView Nightly. 2018-11-30 11:17:36 +01:00
Grisha Kruglov
0ddc3dd0ea [components] Improve autocompletion in HistoryStorage implementations to return a 'result' object 2018-11-26 18:51:31 +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
7d0033cdf5 [components] Add 'limit' to HistoryStorage's getSuggestion concept method 2018-11-05 17:27:42 -08:00
Grisha Kruglov
b9c59b8927 [components] Add 'cleanup' method to HistoryStorage concept
A storage implementation might need to cleanup its allocated resources,
and this provides an entry point for that to happen.

An example might be closing a native database connection that's maintained
by the Rust Places library.
2018-11-05 17:27:42 -08:00
Grisha Kruglov
1d92f12ebc [components] Switch HistoryStorage to use Deferred results and suspend functions
Underlying HistoryStorage implementations might be blocking on IO (Rust Places, room),
or migth be non-blocking (in-memory). A Deferred return type for get* methods makes
it convenient to wrap both regular and `async` operations. Use of 'suspend' functions
serves the same role for write* methods.

This change makes it obvious at the engine call-site that the underlying implementation
might suspend, at which point we can wrap calls in `runBlocking` or use another coroutine builder.
2018-11-05 17:27:42 -08:00
Grisha Kruglov
8a86813255 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1242: Add suggestion API to concept-storage + basic implementation 2018-11-02 14:52:37 -07:00
Sebastian Kaspari
1a0781fea7 [components] Update publishing configuration of browser-storage-memory. 2018-10-31 20:39:48 +01:00
Grisha Kruglov
2d8134bcc9 [components] Add an in-memory implementation of concept-storage 2018-10-26 15:42:19 -07:00