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
KMP / CMP 詳細解説 + ライブデモ(技育 CAMP アカデミア - KMP/CMP ...
Search
Ryo WATANABE
July 30, 2025
Technology
77
0
Share
KMP / CMP 詳細解説 + ライブデモ(技育 CAMP アカデミア - KMP/CMP 勉強会)
Ryo WATANABE
July 30, 2025
More Decks by Ryo WATANABE
See All by Ryo WATANABE
スクリプトの先へ!AIエージェントと組み合わせる モバイルE2Eテスト
error96num
0
220
共有と分離 - Compose Multiplatform "本番導入" の設計指針
error96num
2
3.1k
Compose Multiplatform 製アプリの OSS ライセンス表示
error96num
0
440
Edge-to-edge「強制」への対応
error96num
2
3.1k
Other Decks in Technology
See All in Technology
20年前の「OSS革命」に学ぶ AI時代の生存戦略
samakada
0
430
The Journey of Box Building
tagomoris
4
2.7k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
16k
ハーネスエンジニアリングの概要と設計思想
sergicalsix
9
5k
Shipping AI Agents — Lessons from Production
vvatanabe
0
240
クラウドネイティブな開発 ~ 認知負荷に立ち向かうためのコンテナ活用
literalice
0
130
20260423_執筆の工夫と裏側 技術書の企画から刊行まで / From the planning to the publication of technical book
nash_efp
3
400
#jawsugyokohama 100 LT11, "My AWS Journey 2011-2026 - kwntravel"
shinichirokawano
0
350
AIが書いたコードを信じられない問題 〜レビュー負荷を下げるために変えたこと〜 / The AI Code Trust Gap: Reducing the Review Burden
bitkey
PRO
7
1.3k
No Types Needed, Just Callable Method Check
dak2
1
1.2k
「SaaSの次の時代」に重要性を増すステークホルダーマネジメントの要諦 ~解像度を圧倒的に高めPdMの価値を最大化させる方法~
kakehashi
PRO
2
830
小説執筆のハーネスエンジニアリング
yoshitetsu
0
690
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
10k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
170
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
380
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
270
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Skip the Path - Find Your Career Trail
mkilby
1
110
Transcript
STORES 株式会社 2025年7月30日(水) 技育 CAMP アカデミア Kotlin Multiplatform / Compose
Multiplatform を活用した モバイルアプリ開発の最前線 KMP/CMP 詳細解説 + ライブデモ
• 渡邊 亮 / naberyo (@error96num) • STORES 株式会社 •
Android エンジニア • キッチンディスプレイ開発で KMP/CMP 活用! • 先週モロッコへ行ってきました 2 自己紹介 2
KMP/CMP開発に必要なもの Xcode JDK Android Studio + KMP Plugin 3
開発に必要なもの 4
プロジェクト作成 5
プロジェクト作成 6
プロジェクト作成 7
デモ1
Source sets androidMain : Android のアプリでしか使わないコード iosMain : iOS のアプリでしか使わないコード
commonMain : すべてのプラットフォームで共有されるコード 9
デモ2
宣言的UI - UIを「何をしたいか」で記述 11
宣言的UI - UIを「何をしたいか」で記述 12
宣言的UI - UIを「何をしたいか」で記述 13
宣言的UI - UIを「何をしたいか」で記述 14
デモ3
Source sets と expect/actual androidMain iosMain commonMain expect fun(プラットフォーム非依存のI/F) actual
fun actual fun Android 固有の API iOS 固有の API 16 実装 実装 参照 参照
Source sets と expect/actual - VideoPlayerの例 androidMain iosMain commonMain expect
fun VideoPlayer actual fun VideoPlayer actual fun VideoPlayer ExoPlayer AVPlayer 17 実装 実装 参照 参照
KMP/CMP を使えば プラットフォーム間でコードを共有しつつ expect / actual で柔軟に実装を切り分けられる 18
参考文献 • Kotlin Multiplatform quickstart | Kotlin Multiplatform Documentation •
Create your Compose Multiplatform app | Kotlin Multiplatform Documentation 19