Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlin: Server-Client

Kotlin: Server-Client

Droidcon Vietnam 2018

Iñaki Villar

April 07, 2018
Tweet

More Decks by Iñaki Villar

Other Decks in Technology

Transcript

  1. #droidconvn Kotlin Native - Windows (x86_64 only at the moment)

    - Linux (x86_64, arm32, MIPS, MIPS little endian) - MacOS (x86_64) - iOS (arm64 only) - Android (arm32 and arm64) - WebAssembly (wasm32 only)
  2. #droidconvn Kotlin Native - Windows (x86_64 only at the moment)

    - Linux (x86_64, arm32, MIPS, MIPS little endian) - MacOS (x86_64) - iOS (arm64 only) - Android (arm32 and arm64) - WebAssembly (wasm32 only) “Kotlin/Native is currently in development; preview releases are available for you to try”
  3. #droidconvn Deploying Create Project Google Cloud gcloud auth login gcloud

    config set project Project_ID ./gradlew appengineDeploy https://kotlin-client-server.appspot.com/_ah/api/kotlin/v2/trades/1
  4. #droidconvn Problems Retrofit class CallWrapper( private val request: Request, private

    var executed: Boolean = false, private var cancelled: Boolean = false ) : Call
  5. #droidconvn Problems Retrofit class CallWrapper( private val request: Request, private

    var executed: Boolean = false, private var cancelled: Boolean = false ) : Call .callFactory(CallFactoryWrapper())
  6. #droidconvn Advanced Example Cron class CronService : HttpServlet() { override

    fun doGet(req: HttpServletRequest?, resp: HttpServletResponse?) {
  7. #droidconvn server Client Integration client core Domain Entities Uses Cases

    Repository Abstractions Modules Abstractions Dependencies