https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

gregopet

08/17/2018, 12:06 PM
Now I'm making a call using
Copy code
client.call {
            url("<https://192.168.2.233:4040/jokes/random>")
            method = HttpMethod.Get
        }
and it never completes - I should probably wait until it's out of alpha, right? 🙂
a

alex009

08/17/2018, 12:07 PM
it's work, i do my app by this example
g

gregopet

08/17/2018, 12:08 PM
thank you, I will check it out!
a

alex009

08/17/2018, 12:09 PM
but i already change dependencies to:
Copy code
buildscript {
    ext {
        kotlin_version = '1.2.51'
        kotlin_native_version = '0.8.2'
        coroutines_version = '0.24.0'

        ktor_version = '0.9.4-dev-3'

        maven { url '<https://dl.bintray.com/touchlabpublic/kotlin>' }

        maven { url '<https://kotlin.bintray.com/ktor>' }
    }
}

dependencies {
    implementation "io.ktor:ktor-client:$ktor_version"
    implementation "io.ktor:ktor-client-json:$ktor_version"
}

dependencies {
    implementation "io.ktor:ktor-client-ios:$ktor_version"
    implementation "io.ktor:ktor-client-json-ios:$ktor_version"
}

dependencies {
    implementation "io.ktor:ktor-client-android:$ktor_version"
    implementation "io.ktor:ktor-client-json-jvm:$ktor_version"
}
in repo e5l used forked version of ktor
g

gregopet

08/17/2018, 12:22 PM
Thank you, my error was using the wrong coroutine methods (not the ones for Android) - it shows that I'm mainly a backend developer 🙂