aerogear / aerogear-android-sdk

AeroGear Services Android SDK
Apache License 2.0
8 stars 31 forks source link

Exposing http client #260

Closed secondsun closed 6 years ago

secondsun commented 6 years ago

Motivation

Small refactor to expose OKHttp as our defactor http implementation. I left the interfaces in for testing and backwards compatibility, but we can discuss removing them.

https://issues.jboss.org/browse/AEROGEAR-7542

Description

This makes a few small changes.

MobileCore getHttpLayer returns a OkHttpService.
OKHttpService now has a method to get the http client as well as javadocs covering how it is configured.

Progress

Additional Notes

Contact @danielpassos for additional testing information.

danielpassos commented 6 years ago

@secondsun ./gradlew spotlessApply and merge it!