Commit Graph

52 Commits

Author SHA1 Message Date
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00:00
Geoff Brown
6561b2de2b Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +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
Alexandru2909
b822151f87 Bug 1811175 - Implement fallback protocol for sponsored tiles 2023-02-27 08:01:52 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05: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
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
Michael Comella
7f7d8a1f21 [components] For https://github.com/mozilla-mobile/android-components/issues/11015: remove BufferedReader from Response.Body.string().
See code comments for reasoning.

There were already tests for the core functionality. Unfortunately, I
couldn't figure out how to write a test for the allocation change but I
tested it manually using an allocation tracker.
2021-10-06 16:51:29 +00:00
Michael Comella
b724190567 [components] No issue: remove redundant header name definitions. 2021-09-22 13:30:37 +00:00
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
Jonathan Almeida
abdbbf2e8e [components] Re-land: "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."
This re-lands commit bc1719598b0980b12bf7717d35ee31d15eb05365.
2021-01-29 19:51:36 +00:00
Jonathan Almeida
a2c22bd0ec [components] Revert "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."
This reverts commit 7f97412251cbec11a371fce1652ad7a760184d93.
2021-01-22 20:13:55 +00:00
Arturo Mejia
c1a6273aa5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE. 2021-01-19 18:26:00 +00:00
Sebastian Kaspari
a8b7b69812 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7719: Remove all default headers from GeckoViewFetchClient. 2020-09-21 13:53:27 +02:00
Sebastian Kaspari
9d854eb6b7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7719: Remove default headers for "User-Agent" and "Connection". 2020-09-17 11:01:02 +02:00
Tiger Oakes
016012839a [components] Make header code case insensitive 2020-06-18 11:24:47 -07:00
Arturo Mejia
a63d91c116 [components] For issue https://github.com/mozilla-mobile/android-components/issues/1159 Ignore status code for blob urls in GeckoViewFetchClient 2020-05-14 19:53:23 -04: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
Christian Sadilek
26d4b79b8c [components] Issue https://github.com/mozilla-mobile/android-components/issues/6314: Support fetching non base64 encoded data URIs 2020-04-07 13:28:50 -04:00
Christian Sadilek
b8ab3fdcf3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/6314: Support fetching / downloading data URIs 2020-04-02 10:44:52 -04:00
Arturo Mejia
c148451bee [components] Update Android Gradle plugin and Gradle version 2019-11-28 09:54:59 -05:00
Sawyer Blatz
97904ab7d8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4896: Adds download management 2019-10-30 09:46:44 -07:00
Tiger Oakes
a5e011866e [components] Issue https://github.com/mozilla-mobile/android-components/issues/3952 - Add Digital Asset Links verification 2019-08-01 13:32:11 -04:00
Sebastian Kaspari
ff02533b9b [components] Issue https://github.com/mozilla-mobile/android-components/issues/3637: service-location: dd service to access Mozilla Location Service (MLS). 2019-07-23 18:01:30 +02: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
0099bac510 [components] Turn on MagicNumber ignoreEnums rule 2019-07-15 11:41:43 -04:00
Tiger Oakes
9eedbb0567 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1968 - Add FetchDownloadManager 2019-07-08 10:05:46 -04: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
50262a7473 [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in concept-fetch. 2019-06-11 12:28:55 +02:00
Tiger Oakes
2fe55748a3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1968 - Convert DownloadManager to interface 2019-06-10 13:14:00 -07:00
Sebastian Kaspari
55bd486ffd [components] Closes https://github.com/mozilla-mobile/android-components/issues/2585: concept-fetch: Add support for interceptors. 2019-04-01 18:54:38 +02:00
Michael Comella
4c2c629620 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2479: Convert fromParamsForUrlEncoded to take vararg.
This is not a breaking change: this function originally landed in the
development of 0.48.0 and this new commit should be released in the same
version.
2019-03-22 11:39:22 +01:00
Michael Comella
b25c3564c6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2394: Move Headers.Common -> Headers.Names & Headers.Values.
This is a breaking change but is clearer and easier to use (less
nesting).
2019-03-20 10:13:26 +01:00
Michael Comella
deb40476e4 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2394: Add Request.Body.fromParamsForFormUrlEncoded. 2019-03-20 10:13:26 +01:00
Michael Comella
87231ec30a [components] Issue https://github.com/mozilla-mobile/android-components/issues/2394: Add Headers.Common.Values.CONTENT_TYPE_FORM_URLENCODED. 2019-03-20 10:13:26 +01:00
Michael Comella
d39c747bdd [components] Issue https://github.com/mozilla-mobile/android-components/issues/2336: Add Headers.Common.USER_AGENT; use in PocketEndpointRaw. 2019-03-19 09:34:23 -07:00
Michael Comella
c6b3127e31 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2361: Use Headers.Common.CONTENT_TYPE in ResponseTest. 2019-03-15 14:31:01 -07:00
Michael Comella
4f0f84a658 [components] Issue https://github.com/mozilla-mobile/android-components/issues/2361: Add Headers.Common with CONTENT_TYPE.
To avoid wasted effort, I only implemented the one value I need: others
can add their own values when they need them.
2019-03-15 14:31:01 -07:00
Michael Comella
4a9f66ab40 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2262: Rename Response.X to isX.
This follows Java naming conventions.
2019-03-08 20:13:53 +01:00
Michael Comella
e767017009 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2260: Update concept-fetch Client javadoc to indicate synchronous. 2019-03-06 10:59:37 +01:00
Christian Sadilek
12d8b54dd4 [components] concept-fetch: Add API/flag to force network request 2019-02-15 10:26:59 +01:00
Christian Sadilek
c73ad1a32f [components] Issue https://github.com/mozilla-mobile/android-components/issues/1515: Allow custom charset when reading body as string 2019-02-14 11:37:03 -05:00
Christian Sadilek
401f946ca0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1515: Incorrect decoding of search suggestions 2019-02-14 09:42:40 +01:00
Christian Sadilek
88bf1ebdd2 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2025: concept-fetch: Add API to control if cookies should be sent 2019-02-13 11:40:51 -05:00
Christian Sadilek
dc56439e36 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1328: Provide GeckoView based implementation of concept-fetch 2019-02-11 15:44:18 -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
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