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

Remove public.

This commit is contained in:
Cedric Beust 2016-03-11 22:55:41 +04:00
parent 31d25a80c4
commit 2bb75f1006
2 changed files with 5 additions and 5 deletions

View file

@ -9,8 +9,8 @@ import java.io.IOException
import javax.inject.Singleton
@Singleton
public class Http {
public fun get(user: String?, password: String?, url: String) : Response {
class Http {
fun get(user: String?, password: String?, url: String) : Response {
val client = OkHttpClient();
val request = Request.Builder().url(url)
if (user != null) {
@ -24,7 +24,7 @@ public class Http {
}
}
public fun get(url: String) : Response {
fun get(url: String) : Response {
return get(null, null, url)
}
@ -39,7 +39,7 @@ public class Http {
error("Couldn't upload file: " + r.message())
}
public fun uploadFile(user: String? = null, password: String? = null, url: String, file: TypedFile,
fun uploadFile(user: String? = null, password: String? = null, url: String, file: TypedFile,
post: Boolean,
progressCallback: (Long) -> Unit = {},
headers: Headers = Headers.of(),

View file

@ -23,7 +23,7 @@ import javax.inject.Inject
/**
* Retrieve Kobalt's latest release version from github.
*/
public class GithubApi @Inject constructor(val executors: KobaltExecutors,
class GithubApiOld @Inject constructor(val executors: KobaltExecutors,
val localProperties: LocalProperties, val http: Http) {
companion object {
const val PROPERTY_ACCESS_TOKEN = "github.accessToken"