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

Kotlin: Server-Client

Kotlin: Server-Client

Iñaki Villar

May 23, 2018
Tweet

More Decks by Iñaki Villar

Other Decks in Technology

Transcript

  1. Thailand Kotlin Developer Group - 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
  2. Thailand Kotlin Developer Group - 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” Kotlin Native
  3. Thailand Kotlin Developer Group - 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) https://medium.com/@kpgalligan/droidcon-nyc-on-ios-with-kotlin-native-5a6a2749057e https://github.com/jetbrains/kotlinconf-spinner https://github.com/JetBrains/kotlin-native/tree/master/samples https://github.com/JetBrains/kotlin-native Kotlin Native
  4. Thailand Kotlin Developer Group - 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 https://blog.jetbrains.com/kotlin/2018/04/kotlinnative-plugin-for-appcode/
  5. Thailand Kotlin Developer Group SDK Google Cloud SDK App Engine

    Java gcloud components install app-engine-java
  6. Thailand Kotlin Developer Group SDK Google Cloud SDK App Engine

    Java Android Studio/IJ App Engine Gradle Plugin https://github.com/GoogleCloudPlatform/app-gradle-plugin
  7. Thailand Kotlin Developer Group create Project Google Cloud gcloud auth

    login gcloud config set project Project_ID Deploying
  8. Thailand Kotlin Developer Group create Project Google Cloud gcloud auth

    login gcloud config set project Project_ID ./gradlew appengineDeploy https://kotlin-client-server.appspot.com/kotlin/v1/trades/1 Deploying
  9. Thailand Kotlin Developer Group local server repository domain remote Datastore

    Retrofit GetTrades Sync Cron Cloud Endpoints Server
  10. Thailand Kotlin Developer Group local server repository domain remote Datastore

    Retrofit GetTrades Sync Cron Cloud Endpoints Objectify Server
  11. Thailand Kotlin Developer Group local server repository domain remote Retrofit

    GetTrades Sync Cron Cloud Endpoints Datastore Server
  12. Thailand Kotlin Developer Group local server repository domain remote Retrofit

    GetTrades Sync Cron Cloud Endpoints Datastore Server
  13. Thailand Kotlin Developer Group local server repository domain remote Retrofit

    GetTrades Sync Cron Cloud Endpoints Datastore Server
  14. Thailand Kotlin Developer Group local server repository domain remote Retrofit

    GetTrades Sync Cron Cloud Endpoints Datastore Server
  15. Thailand Kotlin Developer Group Retrofit class CallWrapper( private val request:

    Request, private var executed: Boolean = false, private var cancelled: Boolean = false ) : Call Problems
  16. Thailand Kotlin Developer Group Retrofit class CallWrapper( private val request:

    Request, private var executed: Boolean = false, private var cancelled: Boolean = false ) : Call .callFactory(CallFactoryWrapper()) Problems
  17. Thailand Kotlin Developer Group Cron class CronService : HttpServlet() {

    override fun doGet(req: HttpServletRequest?, resp: HttpServletResponse?) { Problems