{"id":13411594,"url":"https://github.com/android/architecture-components-samples","last_synced_at":"2025-04-23T20:52:15.842Z","repository":{"id":37705996,"uuid":"90792131","full_name":"android/architecture-components-samples","owner":"android","description":"Samples for Android Architecture Components. ","archived":false,"fork":false,"pushed_at":"2023-12-15T11:40:34.000Z","size":21560,"stargazers_count":23432,"open_issues_count":194,"forks_count":8282,"subscribers_count":901,"default_branch":"main","last_synced_at":"2024-10-29T15:04:57.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://d.android.com/arch","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/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}},"created_at":"2017-05-09T21:09:14.000Z","updated_at":"2024-10-28T09:01:11.000Z","dependencies_parsed_at":"2023-10-20T17:16:12.061Z","dependency_job_id":"a9ad65d6-3c76-413f-9b5b-c40d69ec119b","html_url":"https://github.com/android/architecture-components-samples","commit_stats":null,"previous_names":["googlesamples/android-architecture-components"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-components-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-components-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-components-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Farchitecture-components-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/architecture-components-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514756,"owners_count":21443208,"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-30T20:01:14.809Z","updated_at":"2025-04-23T20:52:15.819Z","avatar_url":"https://github.com/android.png","language":"Kotlin","funding_links":[],"categories":["Kotlin","Samples","Android 应用"],"sub_categories":["网络服务_其他"],"readme":"Android Architecture Components samples\n===================================\n\nA collection of samples using the [Architecture Components](https://developer.android.com/arch):\n\n- [Room](https://developer.android.com/topic/libraries/architecture/room)\n- [Lifecycle-aware components](https://developer.android.com/topic/libraries/architecture/lifecycle)\n- [ViewModels](https://developer.android.com/topic/libraries/architecture/viewmodel)\n- [LiveData](https://developer.android.com/topic/libraries/architecture/livedata)\n- [Paging](https://developer.android.com/topic/libraries/architecture/paging/)\n- [Navigation](https://developer.android.com/topic/libraries/architecture/navigation/)\n- [ViewBinding](https://developer.android.com/topic/libraries/view-binding)\n- [WorkManager](https://developer.android.com/topic/libraries/architecture/workmanager/)\n\n### Samples\n\n* **[BasicSample](https://github.com/googlesamples/android-architecture-components/blob/master/BasicSample)** - Shows how to persist data using a SQLite database and Room. Also uses ViewModels and LiveData.\n\n* **[PersistenceContentProviderSample](https://github.com/googlesamples/android-architecture-components/blob/master/PersistenceContentProviderSample)** - Shows how to expose data via a Content Provider using Room.\n\n* **[GithubBrowserSample](https://github.com/googlesamples/android-architecture-components/blob/master/GithubBrowserSample)** - An **advanced**  sample that uses the Architecture components, Dagger and the Github API, in Kotlin.\n\n* **[BasicRxJavaSample](https://github.com/googlesamples/android-architecture-components/blob/master/BasicRxJavaSample)** - Shows how to use Room with RxJava 2. Also uses ViewModels.\n\n* **[PersistenceMigrationsSample](https://github.com/googlesamples/android-architecture-components/blob/master/PersistenceMigrationsSample)** - Shows how to implement migrations in Room.\n\n* **[BasicRxJavaKotlinSample](https://github.com/googlesamples/android-architecture-components/blob/master/BasicRxJavaSampleKotlin)** - Shows\nhow to use ViewModels and Room together with RxJava, in Kotlin.\n\n * **[PagingSample](https://github.com/googlesamples/android-architecture-components/tree/master/PagingSample)** - Shows\n  how to use the Paging library with Room, in Kotlin.\n\n * **[PagingNetworkSample](https://github.com/googlesamples/android-architecture-components/tree/master/PagingWithNetworkSample)** - Shows\n  how to use the Paging library with a backend API via Retrofit, in Kotlin.\n\n* **[NavigationBasicSample](https://github.com/googlesamples/android-architecture-components/tree/master/NavigationBasicSample)** - Shows\n  how to use Navigation to perform navigation and deep linking in Kotlin.\n\n* **[NavigationAdvancedSample](https://github.com/googlesamples/android-architecture-components/tree/master/NavigationAdvancedSample)** - Shows\n  how to handle multiple back stacks with Navigation and a BottomNavigationView.\n\n* **[LiveDataSample](https://github.com/googlesamples/android-architecture-components/tree/master/LiveDataSample)** - Shows\n  how to integrate Kotlin coroutines with Architecture Components such as `LiveData`.\n\n* **[ViewBindingSample](https://github.com/googlesamples/android-architecture-components/tree/master/ViewBindingSample)** - Shows how to use view bindings in an activity and in fragments.\n\n* **[WorkManagerSample](https://github.com/googlesamples/android-architecture-components/tree/master/WorkManagerSample)** - Shows\n  how to use WorkManager to do background work, in Kotlin.\n\n* **[WorkManagerMultiprocessSample](https://github.com/googlesamples/android-architecture-components/tree/master/WorkManagerMultiprocessSample)** - Shows how to use WorkManager in apps that manage multiple processes.\n\n\n### Reporting Issues\n\nYou can report an [Issue](https://github.com/googlesamples/android-architecture-components/issues) on the samples using this repository. If you find an issue with the Architecture Components, report it using the [Architecture Components Issue Tracker](https://issuetracker.google.com/issues/new?component=197448\u0026template=878802)\n\nLicense\n-------\n\nCopyright 2018 The Android Open Source Project, Inc.\n\nLicensed to the Apache Software Foundation (ASF) under one or more contributor\nlicense agreements.  See the NOTICE file distributed with this work for\nadditional information regarding copyright ownership.  The ASF licenses this\nfile to you under the Apache License, Version 2.0 (the \"License\"); you may not\nuse this file except in compliance with the License.  You may obtain a copy of\nthe License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\nLicense for the specific language governing permissions and limitations under\nthe License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Farchitecture-components-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Farchitecture-components-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Farchitecture-components-samples/lists"}