{"id":26296151,"url":"https://github.com/rohancyberops/sunflowerapp","last_synced_at":"2025-07-18T03:04:29.735Z","repository":{"id":275582493,"uuid":"926518480","full_name":"RohanCyberOps/SunflowerApp","owner":"RohanCyberOps","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-03T12:14:37.000Z","size":4378,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T19:51:30.533Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RohanCyberOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T11:58:15.000Z","updated_at":"2025-02-03T14:22:49.000Z","dependencies_parsed_at":"2025-02-03T13:35:38.849Z","dependency_job_id":null,"html_url":"https://github.com/RohanCyberOps/SunflowerApp","commit_stats":null,"previous_names":["rohancyberops/sunflowerapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FSunflowerApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FSunflowerApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FSunflowerApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FSunflowerApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanCyberOps","download_url":"https://codeload.github.com/RohanCyberOps/SunflowerApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681043,"owners_count":20330155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-15T04:17:07.012Z","updated_at":"2025-03-15T04:17:07.670Z","avatar_url":"https://github.com/RohanCyberOps.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Sunflower with Compose\n\nWarning: The Sunflower repository is no longer under maintenance, We are prioritizing https://github.com/android/compose-samples as the up-to-date source of truth for Compose best practises. Please use that repository and sample set to continue learning about Jetpack Compose. If you'd like to continue using Sunflower, we encourage you to maintain your own fork of the sample. \n\nA gardening app illustrating Android development best practices with migrating a View-based app to\nJetpack Compose. To learn about how Sunflower was migrated to Compose, see the \n[migration journey](https://github.com/android/sunflower/blob/main/docs/MigrationJourney.md) document.\n\n\u003e [!Note]\n\u003e To see the original View implementation of Sunflower, checkout the [`views`](https://github.com/android/sunflower/tree/views) branch.\n\n## Screenshots\n\n\u003cimg src=\"screenshots/SunflowerM3Screenshots.png\"/\u003e\n\n## Features\n\nThis sample showcases how to migrate an existing View-based app (Material 2) to Compose (Material 3). \nSee the linked migration journey doc above to learn more.\n\n\u003e [!Note]\n\u003e As Compose cannot render HTML code in `Text` yet. The \n\u003e `AndroidViewBinding` API is used to embed a `TextView` in Compose. See the \n\u003e `PlantDescription` composable in the\n\u003e [PlantDetailView file](app/src/main/java/com/google/samples/apps/sunflower/compose/plantdetail/PlantDetailView.kt).\n\n## Requirements\n\n### Unsplash API key\n\nSunflower uses the [Unsplash API](https://unsplash.com/developers) to load pictures on the gallery\nscreen. To use the API, you will need to obtain a free developer API key. See the\n[Unsplash API Documentation](https://unsplash.com/documentation) for instructions.\n\nOnce you have the key, add this line to the `gradle.properties` file, either in your user home\ndirectory (usually `~/.gradle/gradle.properties` on Linux and Mac) or in the project's root folder:\n\n```\nunsplash_access_key=\u003cyour Unsplash access key\u003e\n```\n\nThe app is still usable without an API key, though you won't be able to navigate to the gallery screen.\n\nAndroid Studio IDE setup\n------------------------\nFor development, the latest version of Android Studio is required. The latest version can be\ndownloaded from [here](https://developer.android.com/studio/).\n\nSunflower uses [ktlint](https://ktlint.github.io/) to enforce Kotlin coding styles.\nHere's how to configure it for use with Android Studio (instructions adapted\nfrom the ktlint [README](https://github.com/shyiko/ktlint/blob/master/README.md)):\n\n- Close Android Studio if it's open\n\n- Download ktlint using these [installation instructions](https://github.com/pinterest/ktlint/blob/master/README.md#installation)\n\n- Apply ktlint settings to Android Studio using these [instructions](https://github.com/pinterest/ktlint/blob/master/README.md#-with-intellij-idea)\n\n- Start Android Studio\n\nAdditional resources\n--------------------\nCheck out these Wiki pages to learn more about Android Sunflower:\n\n- [Notable Community Contributions](https://github.com/android/sunflower/wiki/Notable-Community-Contributions)\n\n- [Publications](https://github.com/android/sunflower/wiki/Sunflower-Publications)\n\nNon-Goals\n---------\nPreviously, this sample app was focused on demonstrating best practices for\nmultiple Jetpack libraries. However, this is no longer the case and development\nwill instead be focused on how to adopt Compose in an existing View-based app.\nSo, there are no plans to implement features outside of this scope. Keep this\nin mind when making contributions to this library.\n\nSupport\n-------\n\n- Stack Overflow:\n  - https://stackoverflow.com/questions/tagged/android-jetpack-compose\n\nIf you've found an error in this sample, please file an issue:\nhttps://github.com/android/sunflower/issues\n\nPatches are encouraged, and may be submitted by forking this project and submitting a pull request\nthrough GitHub.\n\nThird Party Content\n-------------------\nSelect text used for describing the plants (in `plants.json`) are used from Wikipedia via CC BY-SA 3.0 US (license in `ASSETS_LICENSE`).\n\n\"[seed](https://thenounproject.com/search/?q=seed\u0026i=1585971)\" by [Aisyah](https://thenounproject.com/aisyahalmasyira/) is licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/us/legalcode)\n\n Contributors\n\nWe want to give a huge shoutout to everyone who has contributed to the project! Your hard work and dedication help make this app better every day. \n\n\u003ca href=\"https://github.com/RohanCyberOps/sunflowerapp/graphs/contributors\"\u003e\n  \u003cimg alt=\"SunflowerApp contributors\" height='48' src=\"https://contrib.rocks/image?repo=RohanCyberOps/sunflowerapp\u0026columns=24\" /\u003e\n\u003c/a\u003e\n\nThank you all for your amazing contributions! Let's keep building together. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fsunflowerapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohancyberops%2Fsunflowerapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fsunflowerapp/lists"}