Commit graph

188 commits

Author SHA1 Message Date
Simon Chae
1a84ddffbc [components] Closes https://github.com/mozilla-mobile/android-components/issues/3832: Add EXTRA_HEADERS support for custom tab 2020-04-02 17:35:22 -04:00
MozLando
04c2fa1bc7 [components] Merge https://github.com/mozilla-mobile/android-components/pull/6045
6045: Fix https://github.com/mozilla-mobile/android-components/issues/6041 - Use MATCH_DEFAULT_ONLY in Browsers resolveActivity() calls r=pocmo a=Mugurell

On Huawei devices it was seen that not using this flag would result in the
default apps status being lost.



Co-authored-by: Mugurell <mugurell@users.noreply.github.com>
2020-04-02 12:44:04 +00:00
Grisha Kruglov
a34a6ac9a7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6394 - Add warm-up API to places and logins storage layers
This allows consumers to ensure that underlying database connections are fully established.
After `warmUp` is called, there should be no additional overhead upon first access to the storage.
2020-03-25 21:09:03 -07:00
MozLando
512990519f [components] Merge https://github.com/mozilla-mobile/android-components/pull/6232
6232: For https://github.com/mozilla-mobile/android-components/issues/6324 Allow customization of display url in toolbar r=csadilek a=kglazko



Co-authored-by: Kate Glazko <katglazko@gmail.com>
2020-03-19 22:27:05 +00:00
Kate Glazko
ff29354b85 [components] For https://github.com/mozilla-mobile/android-components/issues/6324 Allow customization of display url in toolbar 2020-03-19 15:18:40 -07:00
Roger Yang
119529632f [components] Closes https://github.com/mozilla-mobile/android-components/issues/6092: Add download link in context menu 2020-03-12 12:45:01 -04:00
Mugurell
d32953127d [components] Fix https://github.com/mozilla-mobile/android-components/issues/6041 - Use MATCH_DEFAULT_ONLY in Browsers resolveActivity() calls
On Huawei devices it was seen that not using this flag would result in the
default apps status being lost.
See the ticket for more details and a before/after video.
2020-02-24 17:41:53 +02:00
Severin Rudie
5b868c9ca0 [components] For https://github.com/mozilla-mobile/fenix/issues/5695: adds '{app} Search' to text selection context menu 2020-02-14 08:40:46 -08:00
Roger Yang
7328451e02 [components] Closes https://github.com/mozilla-mobile/android-components/issues/5174: Add telemetry crash service in lib-crash 2020-02-10 15:31:07 -05:00
Will Hawkins
3142683e8f [components] Issue https://github.com/mozilla-mobile/android-components/issues/5673: Make URL detection better
The lenient URL method was apparently not lenient after all.
It did not detect that camp-firefox.de was a valid URL. This
change to the regular expression fixes that. See related Fenix
issue https://github.com/mozilla-mobile/android-components/issues/7800.
2020-01-24 15:40:16 -05:00
Will Hawkins
63da17dd75 [components] Issue https://github.com/mozilla-mobile/android-components/issues/5594: Use a leaner regular expression to implement bestWebURL 2020-01-22 02:10:22 -05:00
Will Hawkins
30117cb6a2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/5376: Lenient and strict methods for determing whether a string is a URL
From only one method to determine whether a string is a url, create
two -- one for a strict check and one for a lenient check. The strict
check will guarantee that the URL precisely conforms to ICANN standards
(e.g., the TLD in the URL is valid). The lenient check will classify any
string that contains ://, ., or : as a URL.
2020-01-03 17:25:56 -05:00
Sawyer Blatz
191d379ff9 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/5046: Updates guessFileName to use uniqueFileName 2019-11-22 11:40:29 -08:00
ForceTower
08209252ab [components] Use MATCH_ALL flag when resolving browsers 2019-10-02 16:02:48 -03:00
Denys M
b95c932f81 [components] For https://github.com/mozilla-mobile/android-components/issues/4460. Fix detekt warning about license in project files. 2019-09-24 01:01:03 +04:00
Denys M
1bdf6dc7c7 [components] For https://github.com/mozilla-mobile/android-components/issues/4113. Add extension method for foreground service PendingIntent. 2019-09-10 00:23:33 +04:00
Denys M
cb7fe3fa9f [components] For https://github.com/mozilla-mobile/android-components/issues/4113. Add extension method for creating service PendingIntent. 2019-09-05 23:07:30 +04:00
Tiger Oakes
5ef6caf5c5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3873 - Support custom navigation bar color 2019-07-30 14:55:28 -04:00
Tiger Oakes
6c14df5cbf [components] For https://github.com/mozilla-mobile/android-components/issues/4336: Fix download names 2019-07-29 12:31:28 -04:00
mihai-adrian
28e07ddf70 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3871: Autocomplete incorrectly fills urls that contains a
port number.
2019-07-23 14:25:56 -07:00
Tiger Oakes
1d3e3a6b4a [components] Fixes https://github.com/mozilla-mobile/android-components/issues/1884 - Intent code to feature-customtabs 2019-07-23 13:10:00 -04:00
Tiger Oakes
708e1dd908 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/3516 - Use response to determine file name 2019-07-19 14:09:49 -04: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
Tiger Oakes
bdcc5872d8 [components] Theme the PWA activity 2019-06-24 07:37:10 -07:00
Denys M
1b0ca990fc [components] For https://github.com/mozilla-mobile/android-components/issues/3473. Eliminate tech dept from detekt baseline. 2019-06-20 13:20:26 -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
3e2feeea6d [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in support-utils. 2019-06-11 17:41:57 +02:00
Denys M
ac49b7912f [components] For https://github.com/mozilla-mobile/android-components/issues/2346. Enable kotlin warningsAsErrors for support-utils module. 2019-05-22 12:56:55 -04: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
James Hugman
e76a73433a [components] Fixes 2812 - Unify string url detection to use Fennec patterns. 2019-04-25 18:16:43 +01:00
Emily Kager
80d207f287 [components] For https://github.com/mozilla-mobile/android-components/issues/2708 -Adds BookmarksStorageSuggestionProvider 2019-04-18 11:24:50 -07:00
Michael Comella
f2da7e1d4e [components] No issue: add Intent.toSafeIntent.
This conversion function follows Kotlin convention.

It felt more appropriate to put this here, than in KTX, because KTX
doesn't not have a dependency on support-utils.
2019-03-29 14:29:27 -07:00
Sebastian Kaspari
9de258fc07 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2098: support-utils: Add unit tests for Browsers class. 2019-02-20 20:13:59 +01:00
Sebastian Kaspari
b7baff3f01 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2078: Add "Browsers" helper class. 2019-02-18 12:41:48 +01:00
Christian Sadilek
c369af6e2a [components] Issue https://github.com/mozilla-mobile/android-components/issues/1865: Fixes to upgrade to Kotlin 1.3.20 2019-01-28 18:41:13 +01:00
Grisha Kruglov
e9157bb2e2 [components] Switch to android.net.Uri in domain matching logic
It's more forgiving than java.net.URI, which is what we want here.

This is intended to help with https://github.com/mozilla-mobile/reference-browser/issues/396,
although I wasn't able to add a failing unit test that would match that crash.
2019-01-11 10:44:35 +01: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
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
4dfe51436e [components] Follow up for https://github.com/mozilla-mobile/android-components/issues/1502, add an offending test case
https://github.com/mozilla-mobile/android-components/pull/1569 should have done this.
2018-12-14 11:31:55 -05:00
Eitan Isaacson
3a49b28d1c [components] Closes https://github.com/mozilla-mobile/android-components/issues/1502: Accept malformed URLS in basicMatch. 2018-12-13 13:32:41 -08:00
Grisha Kruglov
0ddc3dd0ea [components] Improve autocompletion in HistoryStorage implementations to return a 'result' object 2018-11-26 18:51:31 +01:00
Agi Sferro
b7d5640b24 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/1366: Don't use private org.mozilla.gecko.
This commit removes most uses of `org.mozilla.gecko` in a-c. Namely:

- `EventDispatcher` is not used anymore, instead `GeckoSession` is mocked
- `org.mozilla.gecko.ThreadUtils` is replaced with `utils.ThreadUtils`

`org.mozilla.gecko.GeckoBundle` uses will be fixed in a follow-up commit.
2018-11-21 12:35:38 -05:00
ali-abdullah
89f3263d12 [components] included buildSrc in ktlint and detekt checks 2018-11-16 12:40:04 +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
Sebastian Kaspari
53b3d1a71f [components] Update repository information in README files. 2018-10-25 15:37:46 +02:00
Sebastian Kaspari
95defb3a55 [components] Fix new detekt findings (ObjectPropertyNaming). 2018-10-24 10:21:48 +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
Marco
6e4f04af78 [components] Closes https://github.com/mozilla-mobile/android-components/issues/47: Remove test prefix from method names 2018-10-10 15:59:39 -04:00
Wajahat Karim
ed0729232c [components] Closes https://github.com/mozilla-mobile/android-components/issues/922: Update READMEs to point to maven.mozilla.org and use new artifact names. 2018-10-03 09:20:43 +02:00
Andrew Gaul
eb487995c5 [components] Provide extension via MIME type if none exists
Previously guessFileName only replaced the extension with the MIME
type if the file name had an extension which mapped onto a valid but
different MIME type.  Suggested by:

https://issuetracker.google.com/issues/37053711

Also fix missing dot in extension, copying a fix from Android URLUtil.

References https://github.com/mozilla-mobile/focus-android/pull/3462.
2018-09-25 10:13:15 +02:00
Christian Sadilek
f24db14b77 [components] Issue https://github.com/mozilla-mobile/android-components/issues/508: Move URL matching functionality to system engine 2018-08-21 12:30:56 -04:00
Christian Sadilek
80a7b5da03 [components] Issue https://github.com/mozilla-mobile/android-components/issues/508: Implement tracking protection in SystemEngine 2018-08-21 12:30:56 -04:00
Christian Sadilek
e851dc494a [components] Issue https://github.com/mozilla-mobile/android-components/issues/508: Add URL matching and black/white listing functionality 2018-08-21 12:30:56 -04:00
Sebastian Kaspari
946410ca86 [components] Configure dependencies from buildSrc Kotlin code. 2018-08-21 11:16:21 -04:00
Sebastian Kaspari
203f498558 [components] Issue https://github.com/mozilla-mobile/android-components/issues/15: Replace existing log code with new logger calls. 2018-08-03 15:22:42 +02:00
Sebastian Kaspari
21909c425a [components] Issue https://github.com/mozilla-mobile/android-components/issues/482: Introduce support-base component to host building blocks of components. 2018-08-01 16:18:26 +02:00
Sebastian Kaspari
831fdbfa8f [components] Issue https://github.com/mozilla-mobile/android-components/issues/424: Expose Downloads in Engine component and make them consumable from a Session. 2018-07-18 18:48:02 +02:00
Sebastian Kaspari
18ac803dab [components] Issue https://github.com/mozilla-mobile/android-components/issues/369: ObserverRegistry: Allow binding subscription to view lifetime. 2018-07-06 12:47:58 +02:00
Sebastian Kaspari
4336a3817a [components] Update ktlint to 0.24.0 and fix new issues. 2018-07-04 19:37:48 +02:00
Angelo Rüggeberg
4e497962b0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/291 - Unified lint warnings as error and fail on error 2018-07-03 14:29:55 -04:00
Sebastian Kaspari
957ca92b7a [components] Issue https://github.com/mozilla-mobile/android-components/issues/288: Create generic ObserverRegistry for implementing classes that can be observed. 2018-06-10 14:16:38 +02:00
Jeff Boek
a66aaf0e70 [components] For https://github.com/mozilla-mobile/android-components/issues/229 - Adds constants for the content_disposition capture groups 2018-06-07 19:25:27 +02:00
Jeff Boek
48c3824bdf [components] Fixes https://github.com/mozilla-mobile/android-components/issues/229 - Handles inline content disposition 2018-06-07 19:25:27 +02:00
Nevin Chen
b22d184dad [components] Issue https://github.com/mozilla-mobile/android-components/issues/154: Write unit tests for SafeIntent 2018-06-05 11:01:23 -04:00
Sebastian Kaspari
b58dd3798a [components] Issue https://github.com/mozilla-mobile/android-components/issues/232: Add READMEs for every component and link them from the root README. 2018-05-28 17:33:12 +02:00
antifreezzz
dc8c72f44c [components] issue https://github.com/mozilla-mobile/android-components/issues/184:DownloadUtils: Unnecessary non-null assertion 2018-05-21 17:43:11 +02:00
Sebastian Kaspari
50e8615af4 [components] Utils: Simplify SafeIntent. 2018-05-03 12:20:57 -04:00
Shikhar Tyagi
160d86abb9 [components] Fixed empty line issue
Signed-off-by: Shikhar Tyagi <shikhart98@gmail.com>
2018-04-16 12:02:39 -04:00
Shikhar Tyagi
6747e5e077 [components] Added junit.Assert in DownloadUtilsTest
Signed-off-by: Shikhar Tyagi <shikhart98@gmail.com>
2018-04-16 12:02:39 -04:00
Sebastian Kaspari
7fb05557d4 [components] Issue https://github.com/mozilla-mobile/android-components/issues/60: Fix ktlint issues. 2018-04-13 18:01:54 -04:00
Sebastian Kaspari
50392be7e0 [components] Issue https://github.com/mozilla-mobile/android-components/issues/60: Use consistent package names for code and in manifests. 2018-04-13 18:01:54 -04:00
Michael Comella
3e32ab204f [components] Closes https://github.com/mozilla-mobile/android-components/issues/64: Lazily instantiate ThreadUtils.backgroundExecutorService.
I don't actually know how to test this but it seems fine. :)
2018-04-13 19:20:11 +02:00
Sebastian Kaspari
753376a11c [components] Issue https://github.com/mozilla-mobile/android-components/issues/37: Gradle: Centralize depedency version configuration and use "implementation" instead of "compileOnly". 2018-03-29 10:06:41 +02:00
Sebastian Kaspari
af3559a862 [components] Issue https://github.com/mozilla-mobile/android-components/issues/25: Set archivesBaseName for modules explicitly. 2018-03-27 09:53:30 +02:00
Sebastian Kaspari
c060694778 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Create centralized configuration for uploading libraries to jcenter. 2018-03-23 22:38:07 +01:00
Sebastian Kaspari
f36856de9b [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Fix issues uncovered by lint and suppress false positives. 2018-03-22 18:21:33 +01:00
Sebastian Kaspari
0c10a224fc [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Centralize configuration of minSdkVersion and targetSdkVersion. 2018-03-22 18:21:33 +01:00
Sebastian Kaspari
20efea9e92 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Abort build on lint errors and warnings. 2018-03-22 18:21:33 +01:00
Sebastian Kaspari
77183df0ef [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Remove/update outdated gradle configurations. 2018-03-22 10:23:23 +01:00
Sebastian Kaspari
2470b49c16 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Fix issues uncovered by ktlint. 2018-03-22 10:23:23 +01:00
Sebastian Kaspari
89f823512a [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: support-utils: Compile Kotlin stdlib into test artifact. 2018-03-21 22:18:40 +01:00
Sebastian Kaspari
88c1189fcc [components] Issue https://github.com/mozilla-mobile/android-components/issues/12: Use kotlin version constant in all build files. 2018-03-21 22:18:40 +01:00
Rushil Perera
ac1b980073 [components] Convert WebURLFinder to Kotlin 2018-03-21 20:31:24 +01:00
Rushil Perera
157c7589ed [components] Add WebURLFinderTest 2018-03-21 19:16:07 +01:00
Sebastian Kaspari
e05b9ed2d1 [components] Centralize compileSdkVersion configuration. 2018-03-21 19:12:11 +01:00
Sebastian Kaspari
384e1e885c [components] Import components into unified repository. 2018-03-21 17:09:04 +01:00