NetworkOperation - used for common network operation (as GET and POST), attaches all get/post parameters to the connection object accordingly
UploadOperation - encapsulates the code that builds the multipart form data format for uploading of files
There is one test - LeanplumTest.testStartChangeCallBackForOffline, which is commented as it was failing silently and now started failing after changes in AbstractTest. It will be fixed in another PR.
Background
Moving and making more readable HTTP code from Util class to a separate package
com.leanplum.internal.http
.Introduced several new classes:
LeanplumHttpConnection
- wrapper aroundHttpURLConnection
, containsgetResponse
,getJsonResponse
, GZIP encoding/decoding functionalityNetworkOperation
- used for common network operation (as GET and POST), attaches all get/post parameters to the connection object accordinglyUploadOperation
- encapsulates the code that builds the multipart form data format for uploading of filesThere is one test -
LeanplumTest.testStartChangeCallBackForOffline
, which is commented as it was failing silently and now started failing after changes inAbstractTest
. It will be fixed in another PR.