# android/sunflower

A gardening app illustrating Android development best practices with migrating a View-based app to Jetpack Compose.

Repository: https://github.com/android/sunflower
Canonical: https://ross.abutalabs.com/products/sunflower
Homepage: https://d.android.com/jetpack
Language: Kotlin
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2024-08-02T10:26:55+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3024, "days_push": 761, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 17765, forks 4772 (observed 2026-08-28T04:11:20.395103+00:00)

## What it is
A gardening-themed Android sample app from Google that demonstrates Android development best practices and documents the migration from a View-based (Material 2) UI to Jetpack Compose (Material 3). The repository is no longer maintained, with compose-samples recommended as the up-to-date alternative.

## Use cases
- learn jetpack compose by example
- see how to migrate a view-based android app to compose
- android app architecture best practices sample
- study material 3 theming in compose
- reference for embedding androidview in compose
- kotlin android sample project to learn from

## When to choose
- you want a real-world example of migrating Views to Jetpack Compose
- you are learning modern Android app architecture with Kotlin
- you need a reference for Material 3 and AndroidViewBinding interop

## When to avoid
- you need an actively maintained Compose sample - use android/compose-samples instead
- you want a production gardening app rather than a learning sample
- you need the original View-based implementation without forking the views branch

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: ui-components, mobile-framework, developer-tools
- domain: android-tools, mobile-development, tutorials, frontend
- platform: jvm
- tags: jetpack-compose, sample-app, android-development, material-3, view-to-compose-migration, kotlin, demo-app, android, mobile

## Member repositories
- android/sunflower (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:20.395103+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-29T17:02:27.817761+00:00, confidence not recorded.
  - readme: https://github.com/android/sunflower (fetched 2026-08-28T04:11:20.395103+00:00, sha a01984242e58)
  - homepage: https://d.android.com/jetpack (fetched 2026-08-29T08:00:44.008658+00:00, sha 4f0668f3efc6)
  - site_page: https://developer.android.com/google/play/installreferrer (fetched 2026-08-29T08:00:44.021907+00:00, sha 0c36cc3c0414)
  - site_page: https://developer.android.com/blog/categories/documentation (fetched 2026-08-29T08:00:44.029001+00:00, sha ebdb8e262578)
  - site_page: https://developer.android.com/jetpack/getting-started (fetched 2026-08-29T08:00:44.030790+00:00, sha 02ec30d0655e)
  - site_page: https://developer.android.com/training/wearables/versions/latest (fetched 2026-08-29T08:00:44.018204+00:00, sha 8396b9ab4b55)
  - site_page: https://developer.android.com/jetpack/androidx/releases/compose (fetched 2026-08-29T08:00:44.020046+00:00, sha 26b81706cc72)
  - site_page: https://developer.android.com/blog/categories/product-news (fetched 2026-08-29T08:00:44.024740+00:00, sha fdad7419318d)
  - site_page: https://developer.android.com/blog/categories/community (fetched 2026-08-29T08:00:44.027049+00:00, sha 3e0edecad2d7)
  - site_page: https://developer.android.com/develop/ui/compose/layouts/adaptive (fetched 2026-08-29T08:00:44.033241+00:00, sha 5976b58b70d2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
