0Pricing
Kotlin Multiplatform Academy · レッスン

生成されたフォルダーを見てみる

テンプレート内の各モジュールとディレクトリの役割を学びます

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

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

Know Where Things Live

The template looks busy at first. Once you learn what each folder is for, you will always know where your code belongs. 🗺️

The shared Module

The shared module is the heart of KMP. The Kotlin you write here is reused by both the Android and iOS apps.

commonMain

Inside shared, commonMain holds platform-independent Kotlin. Code here must compile for every target you chose.

androidMain

androidMain is for shared code that needs Android-only APIs. It is your place for platform-specific actual implementations.

iosMain

iosMain mirrors androidMain for the Apple side. It holds Kotlin that touches iOS-only frameworks and platform details.

The Android App Module

The androidApp module is a normal Android project. It depends on the shared module and contains the Android UI and entry point.

The iOS App Folder

The iosApp folder is an Xcode project. You open it in Xcode, and it links the framework built from your shared module.

Gradle Files

The build.gradle.kts files configure each module. The shared one declares your targets and dependencies, so you will edit it often.

settings.gradle.kts

settings.gradle.kts lists which modules belong to the build. It is how Gradle knows shared and androidApp are part of one project.

gradle.properties

gradle.properties holds project-wide flags, like JVM memory and KMP options. Small tweaks here affect the whole build.

A Mental Map

Shared code goes in the shared module, platform UI lives in the app modules, and Gradle files glue it all together. That map carries you far.

Quick Check

Where should you put Kotlin code that must work on every target?

Recap

You toured the layout: the shared module with commonMain, androidMain and iosMain, the two app modules, and the Gradle files that bind them. ✅

よくある質問

「生成されたフォルダーを見てみる」レッスンは無料ですか?

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

「生成されたフォルダーを見てみる」で何を学びますか?

テンプレート内の各モジュールとディレクトリの役割を学びます ブラウザで直接実行するハンズオンコードで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. JDK、Android Studio、KMP Plugin
  2. iOS側のXcodeとCocoaPods
  3. KMP Wizardでプロジェクトを生成する
  4. 生成されたフォルダーを見てみる
← Kotlin Multiplatform Academyに戻る