Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Hello Worlds: A full-stack demo in Multiplatform Kotlin
Search
Russell Wolf
November 09, 2019
Programming
0
53
Hello Worlds: A full-stack demo in Multiplatform Kotlin
Russell Wolf
November 09, 2019
Tweet
Share
More Decks by Russell Wolf
See All by Russell Wolf
A Brief History of Kotlin Multiplatform
russhwolf
0
22
Multiplatform Settings 1.0
russhwolf
0
51
What’s New in Kotlin Multiplatform?
russhwolf
2
300
What's new with Kotlin Multiplatform libraries?
russhwolf
0
130
Building Multiplatform Mobile Apps in Kotlin
russhwolf
1
70
Multiplatform Kotlin Library Development
russhwolf
0
110
Multiplatform Library Development
russhwolf
0
200
Bottom-Up Code-Sharing with Kotlin Multiplatform
russhwolf
2
780
Other Decks in Programming
See All in Programming
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
960
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
340
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
950
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
27
8.3k
Compose-View Interop in Practice (mDevCamp 2024)
stewemetal
0
140
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
Rethinking UI building strategies @ SFI 2024
letelete
0
270
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
150
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
650
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
190
Netty Chicago Java User Group 2024-04-17
sullis
0
180
Featured
See All Featured
Design by the Numbers
sachag
274
18k
Rails Girls Zürich Keynote
gr2m
91
13k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Clear Off the Table
cherdarchuk
84
310k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
A better future with KSS
kneath
231
16k
Adopting Sorbet at Scale
ufuk
68
8.6k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Optimizing for Happiness
mojombo
370
69k
Thoughts on Productivity
jonyablonski
58
3.8k
Embracing the Ebb and Flow
colly
80
4.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
7
1k
Transcript
Hello Worlds A full-stack demo in Multiplatform Kotlin Russell Wolf
11/9/19
Background
Kotlin is ... • Android • Server-side JVM • JS
(frontend or node) • Native (C interop) • iOS (Obj-C interop)
Multiplatform Kotlin • Compile common code to multiple targets •
JVM, JS, Android, Desktop, iOS, Embedded, WASM • Use platform-specific code to access platform APIs
Multiplatform Hello World • https://github.com/russhwolf/ multiplatform-hello • Android, iOS, Server
• ktor, serialization, coroutines
Hello Common Android iOS JVM Swift
Hello Shared Common Android iOS JVM Swift
Hello Shared Server Common Android iOS JVM Swift
Hello Mobile Shared Shared Server Common Android iOS JVM Swift
Hello Mobile Shared Android App iOS App Shared Server Common
Android iOS JVM Swift
Code time!
Lessons • Shared models between frontend and backend • Shared
web calls between mobile clients • Kotlin Everywhere!
Thanks! • Questions? • @RussHWolf ( or ) • https://github.com/russhwolf/multiplatform-hello
• https://kotlinlang.org/docs/reference/multiplatform.html • https://kotlinlang.org/docs/reference/building-mpp-with- gradle.html • https://play.kotlinlang.org/hands-on/overview