0Pricing
Kotlin Multiplatform Academy · レッスン

現時点で共有できるもの、できないもの

現在の本番KMPにおけるコード共有の現実的な境界を学びます

「現時点で共有できるもの、できないもの」はCoddyKit上の無料Kotlin Multiplatform Academyレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはKotlin Multiplatform Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Kotlin Multiplatform Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Know the Boundaries

KMP shares a lot, but not everything. Knowing the real boundaries keeps your expectations honest on a production team. 🧱

Share: Business Logic

Pure rules and calculations share beautifully. Your business logic has no platform ties, so it runs the same everywhere.

Share: Data Models

Your data models, the classes that describe a user or an order, are easy wins. Define them once and use them on every target.

data class User(
    val id: String,
    val name: String
)

Share: Networking

HTTP calls and JSON parsing share well using multiplatform libraries. Your whole networking layer can live in shared code.

Share: Local Storage

Databases and key-value stores have multiplatform options too. So your storage layer is also a strong candidate for sharing.

Often Native: The UI

Most teams keep the UI native for the best feel. You can share it with Compose Multiplatform, but it stays a real choice.

Native: Platform Features

Camera, sensors, and OS dialogs differ per platform. These platform features need native code, often behind a shared interface.

The expect/actual Bridge

For things that differ per platform, KMP offers expect/actual. You declare a common API and give each platform its own version.

expect fun platformName(): String

Some Libraries Are JVM-Only

Not every Kotlin library is multiplatform. JVM-only libraries cannot go in common code, so check support before adding one.

A Healthy Default

A common starting line: share logic, data, and networking; keep UI native. Adjust the split as your team gains confidence.

It Keeps Improving

The KMP ecosystem grows fast, so what is shareable keeps expanding. More libraries go multiplatform every year.

Quick Check

Let's test the sharing boundaries.

Recap

Share logic, models, networking, and storage freely; keep UI and device features native. Use expect/actual to bridge the gaps. 🎉

よくある質問

「現時点で共有できるもの、できないもの」レッスンは無料ですか?

はい。「現時点で共有できるもの、できないもの」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Kotlin Multiplatform Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Kotlin Multiplatform Academyコースには全4レッスンが含まれています。

「現時点で共有できるもの、できないもの」で何を学びますか?

現在の本番KMPにおけるコード共有の現実的な境界を学びます ブラウザで直接実行するハンズオンコードでKotlin Multiplatform Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Kotlin Multiplatform Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのKotlin Multiplatform Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「現時点で共有できるもの、できないもの」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このKotlin Multiplatform Academyレッスンでコードを書いて実行できますか?

はい。すべてのKotlin Multiplatform Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. ロジックを共有し、UIは共有しない:KMPの約束
  2. KMP、Flutter、React Nativeの比較
  3. ターゲット:Android、iOS、Desktop、Web、Server
  4. 現時点で共有できるもの、できないもの
← Kotlin Multiplatform Academyに戻る