{"id":13461632,"url":"https://github.com/android/architecture-templates","last_synced_at":"2025-04-10T18:48:48.401Z","repository":{"id":58810539,"uuid":"533428706","full_name":"android/architecture-templates","owner":"android","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-09T17:18:46.000Z","size":677,"stargazers_count":2901,"open_issues_count":10,"forks_count":329,"subscribers_count":101,"default_branch":"main","last_synced_at":"2025-04-09T18:33:06.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/android.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-06T17:18:10.000Z","updated_at":"2025-04-09T17:50:34.000Z","dependencies_parsed_at":"2023-11-07T20:47:21.769Z","dependency_job_id":"f74cf3e6-f0d3-4302-aecc-7d73f3c4b666","html_url":"https://github.com/android/architecture-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/architecture-templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248272626,"owners_count":21075958,"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":"2024-07-31T11:00:49.532Z","updated_at":"2025-04-10T18:48:48.355Z","avatar_url":"https://github.com/android.png","language":null,"funding_links":[],"categories":["Others","Misc"],"sub_categories":[],"readme":"Android Architecture Starter Templates\n==================\n\n✅ **What it is**: A collection of templates featuring a layered architecture ready to be used in greenfield projects\nor quick experiments, following the [Guide to app architecture](https://developer.android.com/topic/architecture).\n\n🙅 **What it's not**: These templates are not designed to be educational code samples. For that, check out [Architecture Samples](https://github.com/android/architecture-samples), the [Now In Android sample](https://github.com/android/nowinandroid) or [Compose samples](https://github.com/android/compose-samples).\n\nTemplates are compatible with the latest **stable** version of Android Studio.\n\n| Template  | Description |\n| ------------- | ------------- |\n| [`base`](https://github.com/android/architecture-templates/tree/base)  | Reactive architecture, Compose, database, single module  |\n| [`multimodule`](https://github.com/android/architecture-templates/tree/multimodule)  | Base template + multimodule  |\n\n## Screenshots\n\n\u003cimg src=\"screenshots.png\" alt=\"Screenshot\"\u003e\n\n## Features\n\n### 🖼️ UI\n      \nThe app contains a simple Compose UI that shows a list of \u003cbr\u003e\nsaved strings and lets the user save new ones.\u003cbr\u003e\n      \n### 🧱 Build\n\n* [KTS gradle files](https://docs.gradle.org/current/userguide/kotlin_dsl.html)\n* [Version catalog](https://docs.gradle.org/current/userguide/platforms.html)\n\n### 🏠 Architecture\n\n* [Room Database](https://developer.android.com/training/data-storage/room)\n* Dependency injection with [Hilt](https://developer.android.com/training/dependency-injection/hilt-android)\n* [Jetpack ViewModel](https://developer.android.com/topic/libraries/architecture/viewmodel)\n* UI using [Jetpack Compose](https://developer.android.com/jetpack/compose) and\n[Material3](https://developer.android.com/jetpack/androidx/releases/compose-material3)\n* [Jetpack Navigation](https://developer.android.com/jetpack/compose/navigation)\n* [Reactive data layer](https://developer.android.com/topic/architecture/data-layer)\n* [Kotlin Coroutines and Flow](https://developer.android.com/kotlin/coroutines)\n* [Unit tests](https://developer.android.com/training/testing/local-tests)\n* [UI tests](https://developer.android.com/jetpack/compose/testing) using fake data with\n[Hilt](https://developer.android.com/training/dependency-injection/hilt-testing)\n\n## Usage\n\n1. Clone the repository, optionally choosing a branch and a target directory. For example, to check out the `base` branch:\n\n```\ngit clone https://github.com/android/architecture-templates.git --branch base targetDirectory\n```\n\nFor the customizer to work, dont open the project in Android Studio yet.\n\n2. Run the customizer script:\n\n```\nbash customizer.sh your.package.name DataItemType [YourAppName]\n```\n\n* `your.package.name` is your app ID (should be lowercase)\n* `DataItemType` is used for the name of the screen, exposed state and data base entity\n(should be PascalCase).\n* Optionally, you can specify a name for your application (should be in PascalCase).\n\nNote: the customizer script requires bash 4 and above. You might have to install a modern version\non macOS:\n\n```\nbrew install bash\n```\n\n# License\n\nThis code is distributed under the terms of the Apache License (Version 2.0). See the\n[license](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Farchitecture-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Farchitecture-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Farchitecture-templates/lists"}