Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mapping upload from Android Gradle Plugin through a proxy #298

Merged
merged 4 commits into from
Sep 21, 2020

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Sep 10, 2020

Goal

Adds support for uploading mapping files with the plugin through a proxy.

This changeset is based off #275 and will add automated test coverage.

Changeset

  • Altered BugsnagHttpClientHelper to read the JVM networking properties when creating a new HTTP client
  • If proxyHost/proxyPort are set, construct a new Proxy and set it on OkHttpClient.Builder#proxy
  • If proxyUser/proxyPass are set, create an authenticator and set it on OkHttpClient.Builder#proxyAuthenticator

Tests

Adds E2E scenarios that the plugin can route requests through a local HTTP proxy, with and without credentials.

The test fixture has supplied the proxy information through JVM arguments, rather than in the gradle.properties, as this simplifies testing and is functionally equivalent.

@fractalwrench fractalwrench changed the base branch from next to tests-ordering September 10, 2020 14:02
@fractalwrench fractalwrench force-pushed the PLAT-4890/proxy-support branch 4 times, most recently from 0cdf6c1 to a2b86a9 Compare September 11, 2020 16:05
Base automatically changed from tests-ordering to v2-maze-runner September 14, 2020 09:15
@fractalwrench fractalwrench force-pushed the PLAT-4890/proxy-support branch 2 times, most recently from 0b22bef to 1e0cc88 Compare September 14, 2020 11:40
Base automatically changed from v2-maze-runner to next September 14, 2020 14:45
@fractalwrench fractalwrench force-pushed the PLAT-4890/proxy-support branch 2 times, most recently from f38a9bd to 039deb2 Compare September 16, 2020 16:13
@fractalwrench fractalwrench changed the base branch from next to PLAT-5024/remove-flag September 16, 2020 16:13
Base automatically changed from PLAT-5024/remove-flag to next September 17, 2020 08:10
@fractalwrench fractalwrench force-pushed the PLAT-4890/proxy-support branch 3 times, most recently from 2d5bff4 to 8c532ad Compare September 17, 2020 10:48
@fractalwrench fractalwrench marked this pull request as ready for review September 18, 2020 08:47
…pClientHelper.kt

Co-authored-by: Joe Haines <hello@joehaines.co.uk>
@fractalwrench fractalwrench merged commit 119ec31 into next Sep 21, 2020
@fractalwrench fractalwrench deleted the PLAT-4890/proxy-support branch September 21, 2020 08:35
This was referenced Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants