2023/01/28 ~ 2023/02/03 のもくもく日記
もくもく 前回までは
2023/01/21 ~ 2023/01/27 のもくもく日記 をご覧ください。
途中経過
その1
Android Studio でプロジェクト新規作成する際に、そういえばKotlin Multiplatform 関連の選択肢が無いなと思っていたけど、どうやらIDE プラグインをインストールする必要があったみたい👀
Kotlin Multiplatform Mobile plugin releases | Kotlin Documentation
その2
kotlin の言語仕様としてのdatetime はまだまだalpha......
ロジックとして日付を取り扱いたいケース(例: 有効期限の表記) って多いと思うので、ここが使えるかどうかは一つの判断ポイントになりそうな気がする(※個人の感想ですw)
GitHub - Kotlin/kotlinx-datetime: KotlinX multiplatform date/time library
その3
ふむふむ👀
SwiftPM with KMMをprivateなGitHub Releaseで運用する - Speaker Deck
その4
iOS Simulator でKMM アプリを動かそうとしたのだけど、そもそもSimulator が起動しなかったorz
KMM と関係ないところで躓いているなうw
Xcode キャッシュを削除したり、Simulator を作り直してもこんな感じなので、弱った……
今日は諦めよう、そうしようw
その5
ふむふむ👀 Swift 側からKotlin Coroutines をリスナー形式で呼び出せる雰囲気だけど、キャンセルはどうするんだろ🤔
https://kotlinlang.org/docs/native-ios-integration.html#deinitilizers
Swift or Objective-C からKotlin Coroutines で実装されてものを呼び出す際は、main スレッドから呼び出さないといけない制限があるっぽい
それを回避するオプションもあるようなので、状況を見つつ、試してみるのはありかも
https://kotlinlang.org/docs/native-ios-integration.html#calling-kotlin-suspending-functions
その6
GitHub Actions を調整していたのだけど、github-script@v6 で使えるuploadReleaseAssets()
を実行しても上手く成果物を配置できなかった……
で、これを参考に書き換えたら上手くいったのだけど、失敗していた理由がさっぱり分からんw
その7
自作VSCode 拡張機能をnpm workspace を使ってモノレポ構成にしてみたのだけど、vsce package の時にこけて何でかなと思っていたら、Issue あるやん……
https://github.com/microsoft/vscode-vsce/issues/580
今回の成果
※関連Tweet
- https://x.com/shion_engineer/status/1619143142502174720
- https://x.com/shion_engineer/status/1619180623670964225
- https://x.com/shion_engineer/status/1619183075753353217
- https://x.com/shion_engineer/status/1619271796632748033
- https://x.com/shion_engineer/status/1619693255599489024
- https://x.com/shion_engineer/status/1619983475788120068
- https://x.com/shion_engineer/status/1620181804903972865
- https://x.com/shion_engineer/status/1620427890134487041