{"id":48680735,"url":"https://github.com/Anadea/RxBus","last_synced_at":"2026-04-26T20:00:43.258Z","repository":{"id":71792099,"uuid":"80208107","full_name":"Anadea/RxBus","owner":"Anadea","description":"Event bus based on RxJava","archived":false,"fork":false,"pushed_at":"2017-08-01T07:34:39.000Z","size":118,"stargazers_count":59,"open_issues_count":5,"forks_count":9,"subscribers_count":17,"default_branch":"master","last_synced_at":"2026-01-14T04:52:01.054Z","etag":null,"topics":["android","android-library","bus","event-bus","rxandroid","rxjava"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Anadea.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-01-27T13:08:12.000Z","updated_at":"2025-11-25T06:47:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa04ab93-8b2c-4816-af9c-e4333f41c0e6","html_url":"https://github.com/Anadea/RxBus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Anadea/RxBus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anadea%2FRxBus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anadea%2FRxBus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anadea%2FRxBus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anadea%2FRxBus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anadea","download_url":"https://codeload.github.com/Anadea/RxBus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anadea%2FRxBus/sbom","scorecard":{"id":12910,"data":{"date":"2025-08-11","repo":{"name":"github.com/Anadea/RxBus","commit":"58c5fd74f41f2984f38c972d98ca6f4bdcd6377a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 1/9 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T15:00:28.929Z","repository_id":71792099,"created_at":"2025-08-14T15:00:28.930Z","updated_at":"2025-08-14T15:00:28.930Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","android-library","bus","event-bus","rxandroid","rxjava"],"created_at":"2026-04-11T01:00:36.059Z","updated_at":"2026-04-26T20:00:43.253Z","avatar_url":"https://github.com/Anadea.png","language":"Java","readme":"RxBus\n===========\n\nEvent bus based on RxJava and optimized for Android.\n\nUsage\n-------\n\nWe recommend obtaining the single instance of bus through injection or another appropriate mechanism.\n\nOr get singleton like following:\n\n```\nBus bus = BusProvider.getInstance();\n```\n\n#### Subscribing\n\nTo subscribe to an event, declare and annotate a method with @Subscribe. The method should be public and take only a single parameter.\n\n```\n@Subscribe\npublic void onEvent(SomeEvent event) {\n    // TODO: Do something\n}\n```\n\nYou can also create subscription like following:\n\n```\nCustomSubscriber\u003cSomeEvent\u003e customSubscriber = bus.obtainSubscriber(SomeEvent.class,\n    new Consumer\u003cSomeEvent\u003e() {\n        @Override\n        public void accept(SomeEvent someEvent) throws Exception {\n            // TODO: Do something\n        }\n    })\n    .withFilter(new Predicate\u003cSomeEvent\u003e() {\n        @Override\n        public boolean test(SomeEvent someEvent) throws Exception {\n            return \"Specific message\".equals(someEvent.message);\n        }\n    })\n    .withScheduler(Schedulers.trampoline());\n```\n\n#### Register and unregister your observer\n\nTo receive events, a class instance needs to register with the bus.\n\n```\nbus.register(this);\n```\n\nThe customSubscriber also needs to register with the bus.\n\n```\nbus.registerSubscriber(this, customSubscriber);\n```\n\nRemember to also call the unregister method when appropriate.\n```\nbus.unregister(this);\n```\n\n#### Publishing\n\nTo publish a new event, call the post method:\n\n```\nbus.post(new SomeEvent(\"Message\"));\n```\n\n#### Add RxBus to your project\n\nGradle:\n\n```\ncompile 'com.github.anadea:rxbus:1.0.1'\n```\n\nMaven:\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.anadea\u003c/groupId\u003e\n    \u003cartifactId\u003erxbus\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.1\u003c/version\u003e\n    \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n\n```\n\nProGuard\n-------\n\nIf you are using ProGuard, add the following lines to your ProGuard configuration file.\n\n```\n-keepattributes *Annotation*\n-keepclassmembers class ** {\n    @com.anadeainc.rxbus.Subscribe public *;\n}\n```\n\nLicense\n-------\n\n    Copyright (C) 2017 Anadea Inc\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["进程间通信"],"sub_categories":["Spring Cloud框架"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnadea%2FRxBus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAnadea%2FRxBus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAnadea%2FRxBus/lists"}