{"id":22986058,"url":"https://github.com/dora4/dora-apollo-support","last_synced_at":"2025-08-13T20:32:52.828Z","repository":{"id":181409151,"uuid":"666186052","full_name":"dora4/dora-apollo-support","owner":"dora4","description":"🧩 Dora MVVM框架扩展包 - 用于整合Apollo消息通信框架","archived":false,"fork":false,"pushed_at":"2025-05-17T19:09:37.000Z","size":133,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T21:44:22.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dora4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-07-13T23:20:20.000Z","updated_at":"2025-05-17T19:09:41.000Z","dependencies_parsed_at":"2023-07-15T12:35:28.787Z","dependency_job_id":"c26e54c3-99a4-49d7-be33-937113b35267","html_url":"https://github.com/dora4/dora-apollo-support","commit_stats":null,"previous_names":["dora4/dora-apollo-support"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dora4/dora-apollo-support","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-apollo-support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-apollo-support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-apollo-support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-apollo-support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dora4","download_url":"https://codeload.github.com/dora4/dora-apollo-support/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dora4%2Fdora-apollo-support/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270305842,"owners_count":24562109,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":[],"created_at":"2024-12-15T03:38:54.231Z","updated_at":"2025-08-13T20:32:52.802Z","avatar_url":"https://github.com/dora4.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"dora-apollo-support\n![Release](https://jitpack.io/v/dora4/dora-apollo-support.svg)\n--------------------------------\n\n#### gradle依赖配置\n\n```groovy\n// 添加以下代码到项目根目录下的build.gradle\nallprojects {\n    repositories {\n        maven { url \"https://jitpack.io\" }\n    }\n}\n// 添加以下代码到app模块的build.gradle.kts\ndependencies {\n    // 扩展包必须在有主框架dora的情况下使用\n    implementation(\"com.github.dora4:dora:1.3.14\")\n    implementation(\"com.github.dora4:dora-apollo-support:1.4\")\n    // Apollo的编译时注解处理器\n    kapt(\"com.github.lsxiao.Apollo:processor:1.0.2\")\n}\n```\n\n#### 使用方式\n\n在AndroidManifest中加入配置。\n```xml\n\u003capplication\u003e\n        \u003cmeta-data\n            android:name=\"dora.lifecycle.config.ApolloGlobalConfig\"\n            android:value=\"GlobalConfig\"/\u003e\n\u003c/application\u003e\n```\n你可以使用Apollo.emit()发送事件，并在Activity和Fragment中可以直接接收事件，在其他类需要在初始化的时候手动调用Apollo.bind(this)才能接收到事件。\n```kotlin\n@Receive(ApolloEvent.YOUR_CUSTOM_EVENT)\nfun onReceiveEvent()\n    // 你的事件处理逻辑\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdora-apollo-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdora4%2Fdora-apollo-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdora4%2Fdora-apollo-support/lists"}