1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00

Remote Retrofit 1.9.

This commit is contained in:
Cedric Beust 2016-03-11 23:16:44 +04:00
parent 27a613c8bb
commit 7798fb02b9
6 changed files with 15 additions and 20 deletions

View file

@ -15,7 +15,6 @@ import com.google.gson.JsonObject
import com.google.gson.JsonParser
import com.google.inject.assistedinject.Assisted
import okhttp3.Response
import retrofit.mime.TypedFile
import java.io.File
import javax.annotation.Nullable
import javax.inject.Inject
@ -153,7 +152,7 @@ class BintrayApi @Inject constructor (
val results = arrayListOf<Boolean>()
filesToUpload.forEach { file ->
http.uploadFile(username, password, fileToPath(file) + optionPath,
TypedFile(MediaType.ANY_APPLICATION_TYPE.toString(), file),
Http.TypedFile(MediaType.ANY_APPLICATION_TYPE.toString(), file),
post = false, // Bintray requires PUT
success = { r: Response -> results.add(true) },
error = { r: Response ->