0Pricing
Kotlin Multiplatform Academy · レッスン

AndroidとiOSのCIパイプライン

両方のアプリを自動でビルド、テスト、アセンブルします

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

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

One Codebase, Two Pipelines

KMP shares code but still ships two apps. Good CI builds, tests and packages both Android and iOS automatically on every push.

Tests Run on the Shared Layer

Your biggest win is shared logic. Run the commonTest suite in CI so a broken rule is caught once, before it reaches either app.

./gradlew allTests

Build the Android App

For Android, CI assembles the APK or bundle. The assembleRelease task produces the artifact your release step will later upload.

./gradlew assembleRelease

Build the iOS App

iOS jobs must run on a macOS runner with Xcode. Linux cannot compile the Kotlin/Native framework or build the iOS app.

Cache Gradle Between Runs

Fresh runners are slow. Caching the Gradle home and Kotlin/Native dependencies across jobs avoids redownloading the world each time.

Cache CocoaPods Too

If iOS uses pods, cache the Pods folder. Skipping a full pod install on every run shaves real minutes off the iOS job.

Separate Jobs, Shared Triggers

Keep Android and iOS as separate jobs so one failing platform does not hide the other, yet both fire from the same push.

Sign Builds with Secrets

Release builds need keys. Store the keystore and certificates as encrypted secrets, never committed in the repository.

Fail Fast on Lint

Run lint and formatting checks early. Catching style and obvious bugs up front saves expensive build minutes on doomed runs.

./gradlew lint detekt

Publish Artifacts

Save the APK and iOS artifact from each run. Testers can grab a build directly instead of waiting for a manual export.

Branch and PR Rules

Run the full suite on every pull request and block merges until it is green, so main stays releasable at all times.

Quick Check

Recall the runner requirement for the iOS pipeline.

Recap

You ran shared tests in CI, built both apps with Android on Linux and iOS on macOS, cached dependencies, signed with secrets, and gated merges on green. ✅

よくある質問

「AndroidとiOSのCIパイプライン」レッスンは無料ですか?

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

「AndroidとiOSのCIパイプライン」で何を学びますか?

両方のアプリを自動でビルド、テスト、アセンブルします ブラウザで直接実行するハンズオンコードでKotlin Multiplatform Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

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

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

「AndroidとiOSのCIパイプライン」レッスンにはどのくらい時間がかかりますか?

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

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

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

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

  1. GradleとiOSのビルドを高速化する
  2. iOSフレームワークをプロファイルして縮小する
  3. AndroidとiOSのCIパイプライン
  4. クラッシュレポートとストアリリース
← Kotlin Multiplatform Academyに戻る