File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,34 @@ public class YourActivity extends Activity {
119119 发布事件之后,注册了该事件类型的对象就会接收到响应的事件.
120120
121121
122+ ## 集成
123+ ### jar文件集成
124+ 将jar文件添加到工程中的引用中即可,[ AndroidEventBus.jar下载] ( http://download.csdn.net/detail/bboyfeiyu/8426611 )
125+
126+ ### Android Studio集成
127+ * 在Project的build.gradle中添加仓库地址
128+
129+ ```
130+ allprojects {
131+ repositories {
132+ jcenter()
133+ maven { url 'https://github.com/bboyfeiyu/AndroidEventBus_maven/raw/master/releases' }
134+ }
135+ }
136+ ```
137+
138+ * 在Module的build.gradle添加依赖
139+
140+ ```
141+ dependencies {
142+ compile fileTree(dir: 'libs', include: ['*.jar'])
143+ compile 'com.android.support:appcompat-v7:21.0.3'
144+ // 添加依赖
145+ compile 'org.simple:androideventbus:1.0.1'
146+ }
147+ ```
148+
149+
122150## 感谢
123151 在此非常感谢网友“淡蓝色的星期三”提出的bug以及反馈,也希望更多的朋友能够加入到Android EventBus的开发中来。
124152
You can’t perform that action at this time.
0 commit comments