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
iOSDC2025_ソニーのKMP/CMP挑戦記
Search
ソニー株式会社
September 19, 2025
1
840
iOSDC2025_ソニーのKMP/CMP挑戦記
ソニー株式会社
September 19, 2025
Tweet
Share
More Decks by ソニー株式会社
See All by ソニー株式会社
KotlinConf 2025_イベントレポート
sony
1
170
GitHubを使いこなすためにソニーの開発現場が取り組んでいるプラクティス
sony
0
44
FinOps_の考えをベースにした継続的なコスト改善の取り組み
sony
0
10
ハードとともに歩むアジャイル開発
sony
0
6
Fultterによるクロスプラットフォーム開発_bravia_connect
sony
0
10
コード共通化の取り組み_headphones_connect
sony
0
8
Kotlin Multiplatformで実現するクロスプラットフォームの卓越性
sony
0
34
ソニーにおけるプロダクトマネジメント事例紹介
sony
0
12
社内kaggleコミュニティを立ち上げた話
sony
0
7
Featured
See All Featured
Designing for Performance
lara
610
69k
The Straight Up "How To Draw Better" Workshop
denniskardys
237
140k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
How STYLIGHT went responsive
nonsquared
100
5.8k
Balancing Empowerment & Direction
lara
4
660
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
950
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
Faster Mobile Websites
deanohume
310
31k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.7k
4 Signs Your Business is Dying
shpigford
185
22k
Transcript
@sergiocarrilho Sergio Carrilho ソニーのKMP/CMP挑戦記 Sony’s Story with KMP/CMP TechLead |
Sony
iOSエンジニアの可能性を広げる ソニーがKotlin/Compose Multiplatformに挑戦した理由 (あなたもぜひ)
iOSエンジニアの可能性を広げる ソニーがKotlin/Compose Multiplatformに挑戦した理由 (あなたもぜひ????)
01 Why KMP/CMP 02 How we did it? 03 Should
you do it?
None
2018
>>Next project...
UI UI Biz Logic Biz Logic Until now
UI UI Goal Biz Logic
Sensing trigger Context Action data
Requirement 1.iOS & Android 2.High performance 3.Platform APIs (BLE, GPS,
BG...)
Why
UI UI Business/Domain Data/Core iOS APIs Android APIs iOS Android
KMP (shared)
Native UIs Bytecode LLVM Kotlin Multiplatform JVM Kotlin/Native
Bytecode LLVM Kotlin Multiplatform JVM Kotlin/Native iOS framework
expect fun / class actual fun / class actual fun
/ class Common
expect fun randomUUID(): String import java.util.* actual fun randomUUID() =
UUID.randomUUID().toString() import platform.Foundation.NSUUID actual fun randomUUID(): String = NSUUID().UUIDString() Common
HOW Part 2
Hexagonal Architecture
None
Core: Biz logic, platform agnostic
Core: Biz logic, platform agnostic Platform: iOS/Android
Platform: iOS/Android Core: Biz logic, platform agnostic External / cloud:
Sensor, biz intelligence
Platform: iOS/Android Core: Biz logic, platform agnostic Adapters External /
cloud: Sensor, biz intelligence
2021 2023
2023
2023 Sony | Headphones Connect Sony | Sound Connect
Compose Multiplatform
UI UI Business/Domain Data/Core Presentation Presentation iOS Android KMP(shared) Kotlin
Multiplatform
iOS specific Android specific Business/Domain Data/Core iOS Android KMP(shared) Compose
Multiplatform UI Presentation
None
None
iOS Android
None
Maps
None
Results
55 55% % iOS iOS users P E R P
L AT FO R M
Code L A N G U AG E D I
ST. 80 20 Multiplatform Native
SHOULD YOU DO IT? Part 3
it depends...
Stick to iOS if... You want full iOS UX Target
market is iOS
Try KMP/CMP if... iOS Dev → Mobile Dev Expand to
other platforms A lot of common biz logic (>10%)
start
None
None
Kotlin/Swift Mapping Kotlin Swift Class Class Interface Protocol Constructor Initializer
Property Property Method Method null nil Kotlin Swift Unit Void String String List Array Set Set Map Dictionary Function type Function type
suspend vs async
None
iOS/Android dev Development Duplication Unification Mobile dev Users
TRY IT just
None