{"id":3605,"url":"https://github.com/square/otto","last_synced_at":"2025-12-30T06:30:59.558Z","repository":{"id":3738321,"uuid":"4812336","full_name":"square/otto","owner":"square","description":"An enhanced Guava-based event bus with emphasis on Android support.","archived":true,"fork":false,"pushed_at":"2018-12-17T16:07:14.000Z","size":703,"stargazers_count":5169,"open_issues_count":18,"forks_count":850,"subscribers_count":315,"default_branch":"master","last_synced_at":"2024-04-13T17:52:12.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://square.github.io/otto/","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/square.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-27T19:06:49.000Z","updated_at":"2024-04-12T06:47:59.000Z","dependencies_parsed_at":"2022-09-26T22:00:58.480Z","dependency_job_id":null,"html_url":"https://github.com/square/otto","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fotto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fotto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fotto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/square%2Fotto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/square","download_url":"https://codeload.github.com/square/otto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234575215,"owners_count":18854924,"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-01-05T20:16:46.213Z","updated_at":"2025-09-29T00:31:04.120Z","avatar_url":"https://github.com/square.png","language":"Java","funding_links":[],"categories":["Pub/Sub","Libraries","CN","Java","Index","Libs","库","进程间通信"],"sub_categories":["Utility","[Square](https://github.com/square)","EventBus","Event Buses","\u003cA NAME=\"EventBus\"\u003e\u003c/A\u003eEventBus","[](https://github.com/JStumpp/awesome-android/blob/master/readme.md#utility)框架"],"readme":"Otto - An event bus by Square\n=============================\n\nAn enhanced Guava-based event bus with emphasis on Android support.\n\nOtto is an event bus designed to decouple different parts of your application\nwhile still allowing them to communicate efficiently.\n\nForked from Guava, Otto adds unique functionality to an already refined event\nbus as well as specializing it to the Android platform.\n\n*For usage instructions please see [the website][1].*\n\nDeprecated!\n-----------\n\nThis project is deprecated in favor of [RxJava](https://github.com/ReactiveX/RxJava) and\n[RxAndroid](https://github.com/ReactiveX/RxAndroid). These projects permit the same event-driven\nprogramming model as Otto, but they’re more capable and offer better control of threading.\n\nIf you’re looking for guidance on migrating from Otto to Rx, [this post](http://blog.kaush.co/2014/12/24/implementing-an-event-bus-with-rxjava-rxbus/)\nis a good start.\n\nDownload\n--------\n\nDownloadable .jars can be found on the [GitHub download page][2].\n\nYou can also depend on the .jar through Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.squareup\u003c/groupId\u003e\n  \u003cartifactId\u003eotto\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.8\u003c/version\u003e\n\u003c/dependency\u003e\n```\nor Gradle:\n```groovy\nimplementation 'com.squareup:otto:1.3.8'\n```\n\nSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap].\n\n\n\nLicense\n-------\n\n    Copyright 2012 Square, Inc.\n    Copyright 2010 Google, 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\n\n\n [1]: http://square.github.com/otto/\n [2]: http://github.com/square/otto/downloads\n [snap]: https://oss.sonatype.org/content/repositories/snapshots/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fotto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquare%2Fotto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquare%2Fotto/lists"}