Skip to content

Commit 297f65a

Browse files
mrsimplemrsimple
authored andcommitted
add android studio intergration
1 parent c7af569 commit 297f65a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)