Commit d0957e9 1 parent d5c806e commit d0957e9 Copy full SHA for d0957e9
File tree 3 files changed +9
-11
lines changed
eventbus-api/src/main/java/com/shizhefei/eventbus
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ greenrobot的EventBus是通过 onEvent的方式,然后定义Event实体类
13
13
14
14
```
15
15
//eventbus 核心api
16
- compile 'com.shizhefei:eventbus-api:1.1 .0'
16
+ compile 'com.shizhefei:eventbus-api:1.2 .0'
17
17
//eventbus 注解
18
- compile 'com.shizhefei:eventbus-annotation:1.1 .0'
18
+ compile 'com.shizhefei:eventbus-annotation:1.2 .0'
19
19
```
20
20
21
21
在定义Event接口的Module添加,以便于生成Event接口的代理
22
22
23
23
```
24
- annotationProcessor 'com.shizhefei:eventbus-compiler:1.1 .0'
24
+ annotationProcessor 'com.shizhefei:eventbus-compiler:1.2 .0'
25
25
```
26
26
27
27
# 在Application初始化
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ allprojects {
22
22
}
23
23
24
24
ext {
25
- VERSION_NAME = ' 1.1 .0'
26
- VERSION_CODE = 11
25
+ VERSION_NAME = ' 1.2 .0'
26
+ VERSION_CODE = 12
27
27
}
28
28
29
29
task clean (type : Delete ) {
Original file line number Diff line number Diff line change 14
14
15
15
/**
16
16
* 主进程的service,所有进程和主进程连接,其它进程互不连接
17
- * processA 发送事件到main, processA -> main 绑定主进程的EventBusService,通过aidl发送事件到main
18
- * main 发送事件到processA, main -> processA 判断processA 是否有连接,没有连接就不需要发布事件,有连接就取到processA的进程的aidl的binder对象发布事件
19
- * processA发送事件到processB, processA -> main -> processB 绑定主进程的EventBusService,判断processB 是否有连接,没有连接就不需要发布事件,有连接就取到processB的进程的aidl的binder对象发布事件
20
- * processA发送事件到processB, processB -> main -> processA 绑定主进程的EventBusService,判断processA 是否有连接,没有连接就不需要发布事件,有连接就取到processA的进程的aidl的binder对象发布事件
21
- * <p>
17
+ * processA 发送事件到main, processA -) main 绑定主进程的EventBusService,通过aidl发送事件到main
18
+ * main 发送事件到processA, main -) processA 判断processA 是否有连接,没有连接就不需要发布事件,有连接就取到processA的进程的aidl的binder对象发布事件
19
+ * processA发送事件到processB, processA -) main -) processB 绑定主进程的EventBusService,判断processB 是否有连接,没有连接就不需要发布事件,有连接就取到processB的进程的aidl的binder对象发布事件
20
+ * processA发送事件到processB, processB -) main -) processA 绑定主进程的EventBusService,判断processA 是否有连接,没有连接就不需要发布事件,有连接就取到processA的进程的aidl的binder对象发布事件
22
21
* 非主进程的EventBus.register和EventBus.postRemote的时候去绑定主进程的EventBusService,也就是说其他进程要发布事件到该进程,如果该进程没有绑定说明该进程没有注册接收者,根本不需要发送事件到该进程
23
- * <p/>
24
22
*/
25
23
public class EventBusService extends Service {
26
24
You can’t perform that action at this time.
0 commit comments