{"id":19504802,"url":"https://github.com/yuxingxin/architecture-components-app","last_synced_at":"2026-05-15T08:34:05.754Z","repository":{"id":95867948,"uuid":"110227849","full_name":"yuxingxin/Architecture-Components-App","owner":"yuxingxin","description":"2017 Xi'an GDG DevFest codelab app starter","archived":false,"fork":false,"pushed_at":"2017-11-11T04:50:54.000Z","size":6616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T07:53:34.388Z","etag":null,"topics":["android","architecture-components","lifecycleowner","livedata","room-persistence-library","viewmodel"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuxingxin.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}},"created_at":"2017-11-10T09:20:37.000Z","updated_at":"2017-11-10T12:52:13.000Z","dependencies_parsed_at":"2023-09-01T02:08:59.216Z","dependency_job_id":null,"html_url":"https://github.com/yuxingxin/Architecture-Components-App","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yuxingxin/Architecture-Components-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuxingxin%2FArchitecture-Components-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuxingxin%2FArchitecture-Components-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuxingxin%2FArchitecture-Components-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuxingxin%2FArchitecture-Components-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuxingxin","download_url":"https://codeload.github.com/yuxingxin/Architecture-Components-App/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuxingxin%2FArchitecture-Components-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33059511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","architecture-components","lifecycleowner","livedata","room-persistence-library","viewmodel"],"created_at":"2024-11-10T22:27:17.213Z","updated_at":"2026-05-15T08:34:05.724Z","avatar_url":"https://github.com/yuxingxin.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Architecture-Components-App\n2017 Xi'an GDG DevFest codelab app starter \n\ncodelab地址：[Build an App with Architecture Components Codelab](https://codelabs.developers.google.com/codelabs/build-app-with-arch-components/index.html)\n\n[完整工程地址](https://github.com/yuxingxin/Architecture-Component-App-Finished)\n\n#### 各个包和类的描述\n\n##### `data.network` package\n\n从网络获取数据的相关类\n\n* 网络获取与解析函数已经帮你写好了，你的工作是在正确的时间获取数据并展示结果\n\n* 你无须修改 `NetworkUtils`, `OpenWeatherJsonParser` and `WeatherResponse` 相关类\n\n* `WeatherNetworkDataSource` 管理与网络相关的所有事情，它是一个单例，包含有：\n\n  * `scheduleRecurringFetchWeatherSync()`：使用 `FirebaseJobDispatcher`.来完成一个周期的 `JobService` \n\n    ，这个job最终会在后台同步天气信息数据。\n\n  * `startFetchWeatherService()`：获取即时天气数据的一个IntentService服务\n\n  * `fetchWeather()`：获取天气数据的方法，该类使用 JSON parsing和network classes来发起请求，它不处理任何与获取天气数据相关的事情\n\n##### `data.database` package\n\n所有和本地缓存数据相关的类（现在基本是空的）\n\n* WeatherEntry - 表示一天天气的Java对象\n\n##### `ui` package\n\n所有和展示相关的的activity和adapters\n\n##### ui.detail package\n\n* `DetailActivity` - 展示某一天天气数据的Activity\n\n##### ui.list package\n\n* `MainActivty` - 展示`WeatherEntry`天气列表的Activity\n* `ForecastAdapter` - 展示`WeatherEntry`天气列表的`RecyclerView.Adapter`\n\n### `utilities` package\n\n* 你无须修改 `SunshineDateUtils` 或者 `SunshineWeatherUtils`\n* `SunshineDateUtils` - 跨时区格式化时间的工具方法\n* `SunshineWeatherUtils` - 展示天气相关的工具方法，例如选取图片资源等。\n\n#### AppExectuors class\n\n提供全局的线程池，简而言之，该类可以很容易的在子线程中执行你的代码\n\n#### 迁移\n\n[Android Studio 3 和 Gradle for Plugins 3.0 迁移](https://zhuanlan.zhihu.com/p/30722989)\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuxingxin%2Farchitecture-components-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuxingxin%2Farchitecture-components-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuxingxin%2Farchitecture-components-app/lists"}