# commons-observer **Repository Path**: fszeng/commons-observer ## Basic Information - **Project Name**: commons-observer - **Description**: 观察者模式,事件分发 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-02-29 - **Last Updated**: 2023-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 代码托管 [![Maven Central](https://maven-badges.herokuapp.com/maven-central/cn.wandersnail/common-observer/badge.svg)](https://maven-badges.herokuapp.com/maven-central/cn.wandersnail/common-observer) [![Download](https://api.bintray.com/packages/wandersnail/androidx/common-observer/images/download.svg) ](https://bintray.com/wandersnail/androidx/common-observer/_latestVersion) ## 使用 1. module的build.gradle中的添加依赖,自行修改为最新版本,需要哪个就依赖哪个,同步后通常就可以用了: ``` dependencies { ... implementation 'com.github.wandersnail:common-observer:latestVersion' implementation 'com.github.wandersnail:common-poster:latestVersion' } ``` 2. 如果从jcenter下载失败。在project的build.gradle里的repositories添加内容,最好两个都加上,添加完再次同步即可。 ``` allprojects { repositories { ... mavenCentral() maven { url 'https://dl.bintray.com/wandersnail/androidx/' } } } ``` ## 功能 - 使用观察者模式发布事件,类似EventBus