Commit Graph

79 Commits

Author SHA1 Message Date
Sebastian Kaspari
bed685b995 [components] Issue https://github.com/mozilla-mobile/android-components/issues/8791: SearchMiddleware: Add mechanism for migrating legacy data from app
This allows Fenix to pass its existing search engine selection and custom search engines to us and then
we can import them into our storage.

Eventually I expect this code to go away again. It's to be define how many versions we will have to
wait.

So far this does not migrate shown/hidden search engines. This turned out to be more complex since Fenix
saves multiple configurations based on locale and region. So it is not as straight-forward to figure out
which one to use.
2020-11-11 11:54:08 +01:00
Sebastian Kaspari
15de09215c [components] Issue https://github.com/mozilla-mobile/android-components/issues/8744: Upstream additional search plugins from Fenix 2020-11-02 11:36:49 +00:00
Sebastian Kaspari
58b5ea427a [components] Closes https://github.com/mozilla-mobile/android-components/issues/8672: Sample-browser: Use SearchEngine from BrowserStore instead of SearchEngineManager.
This migrates sample-browser to stop using SearchEngineManager. For that I hide the provider of the default
search engine behind an interface. This is a temporary solution until we have all apps using the SearchEngine
from BrowserStore. After that we can get rid of that and make all our components use BrowserStore directly.

I tested this in Fenix too and have a matching patch locally. Once this lands we should be able to migrate
Reference Browser too.
2020-10-14 11:27:00 +00:00
Michael Kaply
46b879c6ee [components] Update tests for Twitter removal and new ddg 2020-08-28 14:08:02 -05:00
Michael Kaply
bb55ddb805 [components] Add DuckDuckGo for all locales 2020-08-24 13:29:38 -05:00
Michael Kaply
acbe5ef296 [components] Remove Twitter 2020-08-24 13:25:26 -05:00
Jordi Serratosa
47267f90e0 [components] Update diec2.xml
Correcting built-in search engine (DIEC2) for Catalan as per bug https://github.com/mozilla-mobile/android-components/issues/7963
2020-08-13 14:27:17 +02:00
MozLando
154ef46269 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6688
6688: bugfix/https://github.com/mozilla-mobile/android-components/issues/6686 - Added search engine template getter r=psymoon a=BranescuMihai

Method used for custom search engines to reconstruct the user template that was used when the engine was added.



Co-authored-by: Mihai Branescu <branescu.mihai@gmail.com>
2020-05-08 13:47:03 +00:00
Jonathan Almeida
b86fa6dfb5 [components] Close https://github.com/mozilla-mobile/android-components/issues/6601: Update targetSdkVersion to 29 2020-04-28 03:16:54 -04:00
Mihai Branescu
1a5ebec160 [components] For https://github.com/mozilla-mobile/android-components/issues/6686 - Added template getter
Method used for custom search engines to reconstruct the user template
that was used when the engine was added
2020-04-16 17:47:09 +03:00
Michael Kaply
9820f010df [components] Remove accidental suffix from search engine 2020-01-06 12:30:24 -06:00
Michael Kaply
0cc0e4232b [components] Update number of German engines in test 2019-11-21 16:12:45 -06:00
Michael Kaply
896c2fe9d5 [components] Correct number of engines for test. 2019-11-19 16:58:40 -08:00
Michael Kaply
5fa6a904e7 [components] Fix typos with autocomplete 2019-11-14 13:25:35 -06:00
Michael Kaply
7d4a233d33 [components] Add 96x96 image 2019-11-14 10:56:15 -06:00
Michael Kaply
ac171c9470 [components] Initial checkin of Ecosia search plugin 2019-11-12 12:00:50 -06:00
Christian Sadilek
dd5d914629 [components] For https://github.com/mozilla-mobile/android-components/pull/3929: Prevent cancellation of concurrent search engine operation 2019-08-30 16:16:16 -04:00
Sebastian Kaspari
954a3eb7ce [components] Issue https://github.com/mozilla-mobile/android-components/issues/3637: Refactor SearchLocalizationProvider to return data class instead of single properties. 2019-08-21 12:29:42 +02:00
Christian Sadilek
812c0c14fb [components] Closes https://github.com/mozilla-mobile/android-components/issues/3923: Create async API for SearchEngineManager 2019-08-12 17:36:01 -04:00
Christian Sadilek
42bce4bcf3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3711: Additional plugins not loaded when search order specified 2019-08-01 17:43:03 +02:00
Shivakumar
5912781ffa [components] Re-order to maintain alphabetical order
Rearragned dependencies in components/browser/search/build.gradle to
maintain alphabetical order.
2019-07-29 09:55:35 -04:00
Shivakumar
9ed7a44c8f [components] Closes https://github.com/mozilla-mobile/android-components/issues/3923 - Replace kotlin_coroutines_test with testing_coroutines
Replace all instances of kotlin_coroutines_test with testing_coroutines.
2019-07-29 09:55:35 -04:00
Tiger Oakes
203cd628a1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3481 - Support Q in browser components 2019-07-08 10:50:29 +02:00
Tiger Oakes
24beb486fc [components] Issue https://github.com/mozilla-mobile/android-components/issues/3481 - Use setPrimaryClip
Android Q changes setPrimaryClip to be NotNull,
but getPrimaryClip remains Nullable.
Kotlin no longer exposes a setter as a result.
2019-07-05 12:29:19 -04:00
Colin Lee
484737e69c [components] For https://github.com/mozilla-mobile/fenix/issues/2945: Dispatchers.default is a deadlock footgun 2019-07-03 10:26:31 +02:00
Tiger Oakes
b248451666 [components] Issue https://github.com/mozilla-mobile/android-components/issues/3481 - Fix null checks before Android Q 2019-06-25 10:38:03 +02: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
Gabriel Luong
8a7a16193d [components] Closes https://github.com/mozilla-mobile/android-components/issues/3344: Add getProvidedDefaultSearchEngine to SearchEngineManager to get the provided default search engine. 2019-06-12 10:31:23 +02:00
Denys M
e5eb231d4e [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-search. 2019-06-11 14:27:45 +02:00
Denys M
45a84fedf2 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3301. Fix SearchEngineManagerTest test. 2019-06-09 22:20:46 -04:00
Denys M
e833880727 [components] For https://github.com/mozilla-mobile/android-components/issues/2346. Enable kotlin warningsAsErrors for browser-search module. 2019-05-29 13:46:39 -04:00
James Hugman
258d76c76a [components] Add searchDefault and searchOrder to list.json.
Update search engine parser tests (+8 squashed commits)
Squashed commits:
[c86797554] Changelog
[a821845c2] detekt/ktlint
[0101c7735] Changelog
[35e9e8d5d] Wrap up search engine lists and default into the search engine manager.

Includes tests.
[6aed07cd8] Implement searchDefault and searchOrder, including tests in the SearchProvider.
[58bad346f] Find the most specific attribute for that locale. Support reordering of list via the `searchOrder` attribute.
[bc10a48b2] Fix tests to match new list.json.
[a781b2f9a] Freshen search plugins and list.json.

Including: deleting Yahoo.
2019-04-01 20:05:34 +01:00
Jonathan Almeida
b69c615b0a [components] Closes https://github.com/mozilla-mobile/android-components/issues/1210: Fixes intermittent failing test in SearchEngineManager 2019-03-20 10:45:40 +01:00
Emily Kager
351cf4e78c [components] Remove getSearchEngineByName function 2019-03-11 19:23:12 +01:00
Emily Kager
5c11fe3f87 [components] Add optional searchengine to invoke, add tests 2019-03-11 19:23:12 +01:00
Emily Kager
aea17549e8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2277 - Add ability to set default search engine 2019-03-11 19:23:12 +01:00
Sebastian Kaspari
c5c482eb26 [components] Update Robolectric to 4.2. 2019-02-20 19:20:42 -05:00
Christian Sadilek
88e5530a6f [components] Revert "Re-enable SearchEngineManagerTest that intermittently failed"
This reverts commit e9ce0e5697.
2019-02-11 16:02:09 -05:00
Jonathan Almeida
fd64ed97ae [components] Re-enable SearchEngineManagerTest that intermittently failed 2019-02-11 14:03:52 -05: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
Jonathan Almeida
3c4521d8d8 [components] Temporarily disable intermittent failing test until fixed 2019-01-09 10:29:29 -05:00
Sawyer Blatz
3267579857 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1563: Update Google search code 2019-01-08 11:24:25 +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
782980355f [components] Stop using deprecated versions of async, launch, etc
This switching to using explicit CoroutineScopes and Dispatchers,
trying to inherit context when appropriate.
2018-11-07 13:04:17 -08:00
Sebastian Kaspari
53b3d1a71f [components] Update repository information in README files. 2018-10-25 15:37:46 +02:00
Sebastian Kaspari
9e17b84339 [components] Simplify build configuration. 2018-10-24 10:21:12 +02:00
Johan Lorenzo
0ca864a1bf [components] Stop Bintray. Update {group,artifact}Ids. Remove massage task 2018-10-22 14:35:51 +02:00
levimatheri
218ffd2ff4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1022: LocalizationProvider not accepting the right locale
Added getter to ensure default locale is obtained on every read
2018-10-11 18:35:52 +02:00