# android/kotlin-multiplatform-samples

Samples showcasing the Kotlin Multiplatform Jetpack libraries

Repository: https://github.com/android/kotlin-multiplatform-samples
Canonical: https://ross.abutalabs.com/products/kotlin-multiplatform-samples
Homepage: https://d.android.com/kmp
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: android, jetpack, kmm, kotlin, kotlin-multiplatform, kmp, samples, sample
Last push: 2026-08-25T16:47:36+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1428, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1298, forks 135 (observed 2026-08-28T04:04:17.300431+00:00)

## What it is
A Google-maintained repository of sample applications showcasing the Kotlin Multiplatform (KMP) Jetpack libraries. Its flagship sample, Fruitties, demonstrates fetching, storing, and displaying data with Multiplatform ViewModel, Room, DataStore, and Ktor across Android and iOS.

## Use cases
- learn how to share code between android and ios using kotlin multiplatform
- example app showing how to use room datastore and ktor in a kmp project
- reference project for kotlin multiplatform viewmodel usage
- sample code for jetpack libraries on kotlin multiplatform
- starting template for building a cross-platform mobile app in kotlin
- see how multiplatform data persistence works in practice

## When to choose
- You want runnable, Google-maintained example code for Kotlin Multiplatform Jetpack libraries like ViewModel, Room, and DataStore
- You are starting a KMP project and need a reference architecture for data fetching, caching, and display
- You want to see how to wire Ktor networking with multiplatform persistence in a real app

## When to avoid
- You need a production library or framework rather than demonstration sample code
- You want step-by-step tutorials or documentation instead of source code examples
- You do not develop in Kotlin or target Android/iOS platforms

## Facets
- artifact type: learning-resource
- maturity: active
- function: mobile-framework, state-management, database, http-client
- domain: mobile-development, cross-platform, tutorials, developer-tools
- platform: cross-platform
- tags: kotlin-multiplatform, kmp, jetpack, sample-apps, kotlin, room-database, datastore, ktor, viewmodel, google, reference-code, android-development, android, ios, mobile

## Member repositories
- android/kotlin-multiplatform-samples (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:17.300431+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:53:49.310460+00:00, confidence not recorded.
  - readme: https://github.com/android/kotlin-multiplatform-samples (fetched 2026-08-28T04:04:17.300431+00:00, sha a8c936b63e12)
  - homepage: https://d.android.com/kmp (fetched 2026-08-29T12:10:19.018001+00:00, sha 6707e9ac9946)
  - site_page: https://developer.android.com/google/play/installreferrer (fetched 2026-08-29T12:10:19.031779+00:00, sha 0c36cc3c0414)
  - site_page: https://developer.android.com/blog/categories/documentation (fetched 2026-08-29T12:10:19.037692+00:00, sha ebdb8e262578)
  - site_page: https://developer.android.com/kotlin/getting-started-resources (fetched 2026-08-29T12:10:19.039305+00:00, sha 581669819ecf)
  - site_page: https://developer.android.com/training/wearables/versions/latest (fetched 2026-08-29T12:10:19.027212+00:00, sha 8396b9ab4b55)
  - site_page: https://developer.android.com/jetpack/androidx/releases/compose (fetched 2026-08-29T12:10:19.029391+00:00, sha 26b81706cc72)
  - site_page: https://developer.android.com/blog/categories/product-news (fetched 2026-08-29T12:10:19.033881+00:00, sha fdad7419318d)
  - site_page: https://developer.android.com/blog/categories/community (fetched 2026-08-29T12:10:19.035988+00:00, sha 3e0edecad2d7)
  - site_page: https://developer.android.com/kotlin/faq (fetched 2026-08-29T12:10:19.040907+00:00, sha 99e47b37a1cf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
