Skip to content

Commit

Permalink
fix(proxy): support proxy authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
Vacxe committed May 31, 2024
1 parent 00ccec5 commit a26ba92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.github.vacxe.googleplaycli
import com.github.vacxe.googleplaycli.actions.*
import com.github.vacxe.googleplaycli.environments.Env
import com.github.vacxe.googleplaycli.environments.Proxy
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport
import com.google.api.client.http.HttpRequestInitializer
import com.google.api.client.json.gson.GsonFactory
import com.google.api.services.androidpublisher.AndroidPublisher
Expand Down Expand Up @@ -38,8 +37,6 @@ class PlayStoreApi(serviceAccountInputStream: InputStream, appName: String) :
.fromStream(serviceAccountInputStream)
.createScoped(listOf(AndroidPublisherScopes.ANDROIDPUBLISHER))

Proxy.apply()

androidPublisher = AndroidPublisher.Builder(
TransportFactory.buildTransport(),
GsonFactory.getDefaultInstance(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ object TransportFactory {
}
}
.build()
val httpTransport: HttpTransport = ApacheHttpTransport(httpClient)
return HttpTransportFactory { httpTransport }.create()
return ApacheHttpTransport(httpClient)
}

private fun createHttpTransportTrustStore(
Expand Down

0 comments on commit a26ba92

Please sign in to comment.