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関連の雑な話し)
Search
sobaya
December 14, 2023
Programming
0
400
そば屋のひとりごと(KMP関連の雑な話し)
sobaya
December 14, 2023
Tweet
Share
More Decks by sobaya
See All by sobaya
酒飲んでたらテックリードになった話
spbaya0141
0
330
とある大喜利会社の戦略
spbaya0141
0
95
KMPナニモワカラナイ
spbaya0141
1
300
JetpackSecurityを今さら学んでみた
spbaya0141
0
320
日本三大何をしているか分からない企業の育児制度
spbaya0141
0
870
僕が考えた超最強のKMMアプリの作り方
spbaya0141
0
470
lazy grid layout
spbaya0141
1
480
Androidアプリを1から作る時に 設定したこと
spbaya0141
1
410
JetpackCompose 導入半年で感じた 改善点
spbaya0141
1
450
Other Decks in Programming
See All in Programming
Vue :: Better Testing 2024
up1
1
420
自分だけの世界を創るクリエイティブコーディング / Creative Coding: Creating Your Own World
chobishiba
2
2k
Kubernetes上でOracle_Databaseの運用を楽にするOraOperatorの紹介
nnaka2992
0
170
C#および.NETに対する誤解をひも解く
ymd65536
0
330
2024-10-01 dev2next - Observability for Modern JVM Applications
jonatan_ivanov
1
140
ActiveRecordの力でDBのメタデータを迅速に解析する
lnit
5
1.8k
GrafanaのHTTP API を眺めてみよう
rinchoku
0
440
現場から考えるソフトウェアエンジニアリングの価値と実験
nomuson
1
140
Cloud Adoption Framework にみる組織とクラウド導入戦略
tomokusaba
2
670
Hi, have you met Kotlin Multiplatform? | DevFest Vienna 2024
prof18
0
220
Unlocking Python's Core Magic
leew
0
140
デバッグの話 / Debugging for Beginners
kaityo256
PRO
8
720
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
18
1k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
23k
Imperfection Machines: The Place of Print at Facebook
scottboms
264
13k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Building an army of robots
kneath
302
42k
Optimizing for Happiness
mojombo
375
69k
A designer walks into a library…
pauljervisheath
202
24k
Writing Fast Ruby
sferik
626
60k
Learning to Love Humans: Emotional Interface Design
aarron
272
40k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
664
120k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Transcript
None
株式会社ゆめみ 2日酔い系Androidテックリード 技術広報 Bluesky:sobaya-0141.bsky.social Twitter:sobaya15 そば屋 GitHub:sobaya-0141
KMP関連について雑に 話します
iOSのこと無知すぎた
KMPの修正入れたからiOSの動作見てもらえ ません? 手元では完璧に動いてるから大丈夫だと思っ てる 僕 iOSの人
KMPの修正入れたからiOSの動作見てもらえ ません? 手元では完璧に動いてるから大丈夫だと思っ てる 僕 iOSの人 ビルド通らないけど?何言ってるの? 今日も二日酔い???
二日酔いだけど、ちゃんとビルド通ってるよ スクショどうぞ 僕 iOSの人 ビルド通らないけど?何言ってるの? 今日も二日酔い???
二日酔いだけど、ちゃんとビルド通ってるよ スクショどうぞ 僕 iOSの人 こっちではダメだな〜スクショどうぞ
ライブラリ(SKIE)の不具合でシミュレ ータだけビルドが通らなくなっていた が、自分は実機でのみ確認していた iOSって実機とシミュレータで動作違うのね 01 02 逆に動作確認してくれたiOSの人はシ ミュレータでのみ確認してくれていて 動作に違いがあった
Androidは端末ごとに動作違うけどね!!
Fleetを触ってみた
ショートカットがAndroidStudioに近くて Android開発者としては触りやすい モジュール追加などAndroidStudioでは自動 でやってくれるsettings.gradleの設定などを やってくれない Gradle周りを触る時に厳しい (エラーも読みにくい) 個人的に感じたメリデメ Kotlin/Swift両方が一つのIDEで触れて楽(さ らにiOSアプリ実行時にKMPのデバッグもで
きる)
無理して使う理由は見当たらない
使ってみたい人むけにiOSの実行端末変える方法を調 べたのでハマったら見てください
Repositoryどうする問題
ビルドが早い 1. トラブルがあった時に任意のバージョンが使える 2. 取り込み作業が面倒 3. KMP/Android/iOSで分ける 一つのRepository ビルドが遅い 1.
全てのPRでAndroid/iOSのビルドが確認できる 2.
リソース管理
moko-resorcesを使ってみた
ライブラリバージョン をさくさく上げたかっ た 常にContextを要求 されるの面倒じゃな い? moko-resorces 01 02 自分は気にならないけど、svgをそのまま使えるcoilの方が高画質らしい
Kotlin1.9とCompose1.5に対応していな いので断念
文字リソースについては ゆめみ大技林23(2)を見てね 記事に書いたgradle taskで 各OSに吐き出すのがいいかと思って ます。
OpenAPI Generator
libraryはmultiplatformだよ 踏んだトラップの数々 configOptionsのkotlinx_serialization とlibraryのmultiplatformは混在したらダメだ よ anyof,oneof,allofには対応していないから空 のdata classが作られてしまうよ
OpenAPI Generatorを ラップしてるだけ allof,anyof,oneofに 対応してる 素のOpenAPI Generatorを触るより簡単に導入できた気がします。 moko-networkをソウビシタマエ 01 02
JsonElementとして出力される 1. 変換処理が必要(対象のクラスは出力される) 2. (変換タイミングによるが)キャストが必要 3. 銀の弾丸ではない
SKIEはいいぞ
Enums 1. Sealed Classes 2. Default Arguments 3. Coroutines Interop
4. Flows 5. SKIEの機能
設定しないと利用状況が(匿名で)送信されてしま います。 注意点
別のライブラリからSKIEに移行したい
None
None
None
None
毎週ZennでKMP関連情報をまとめています。 ご清聴ありがとうございました。