Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sloaix committed Dec 11, 2017
1 parent de8e29e commit cc06025
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ depend these in your build.gralde.
dependencies {
compile "io.reactivex:rxandroid:2.0.1"
compile "com.github.lsxiao.Apollo:core:1.0.0-rc.4"
compile "com.github.lsxiao.Apollo:ipc:1.0.0-rc.4"
annotationProcessor "com.github.lsxiao.Apollo:processor:1.0.0-rc.4"
compile "com.github.lsxiao.Apollo:core:1.0.0-rc.6"
compile "com.github.lsxiao.Apollo:ipc:1.0.0-rc.6"
annotationProcessor "com.github.lsxiao.Apollo:processor:1.0.0-rc.6"
//for kotlin
kapt "com.github.lsxiao.Apollo:processor:1.0.0-rc.4"
kapt "com.github.lsxiao.Apollo:processor:1.0.0-rc.6"
}
```

Expand All @@ -45,7 +45,7 @@ dependencies {
`ApolloBinderGeneratorImpl`在编译时生成。

```java
Apollo.init(AndroidSchedulers.mainThread(), ApolloBinderGeneratorImpl.instance(), this);
Apollo.init(AndroidSchedulers.mainThread(), this);
```

### bind/unbind
Expand Down Expand Up @@ -90,7 +90,7 @@ public void onEvent(String message){
### ipc
default is closed,you can enable it.
```
Apollo.init(AndroidSchedulers.mainThread(), ApolloBinderGeneratorImpl.instance(),this,true);
Apollo.init(AndroidSchedulers.mainThread(), this,true);
```

your data object which need to ipc must has a non-parameter-constructor,because apollo used kory to serialize object.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ dependencies {
compile "io.reactivex:rxandroid:2.0.1"
//Apollo的核心库
compile "com.github.lsxiao.Apollo:core:1.0.0-rc.4"
compile "com.github.lsxiao.Apollo:core:1.0.0-rc.6"
//ipc
compile "com.github.lsxiao.Apollo:ipc:1.0.0-rc.4"
compile "com.github.lsxiao.Apollo:ipc:1.0.0-rc.6"
//Apollo的编译时注解处理器
annotationProcessor "com.github.lsxiao.Apollo:processor:1.0.0-rc.4"
annotationProcessor "com.github.lsxiao.Apollo:processor:1.0.0-rc.6"
//如果你使用的是kotlin,请使用kapt
kapt "com.github.lsxiao.Apollo:processor:1.0.0-rc.4"
kapt "com.github.lsxiao.Apollo:processor:1.0.0-rc.6"
}
```

Expand All @@ -51,7 +51,7 @@ dependencies {
`ApolloBinderGeneratorImpl`在编译时生成。

```java
Apollo.init(AndroidSchedulers.mainThread(), ApolloBinderGeneratorImpl.instance(), this);
Apollo.init(AndroidSchedulers.mainThread(), this);
```

### 绑定/解绑
Expand Down Expand Up @@ -98,7 +98,7 @@ public void onEvent(String message){

默认关闭,要开启请设置第四个参数为true
```
Apollo.init(AndroidSchedulers.mainThread(), ApolloBinderGeneratorImpl.instance(), this,true);
Apollo.init(AndroidSchedulers.mainThread(), this,true);
```

**!!!注意:**由于默认采用kryo序列化,所以任何需要在进程间传输的数据对象,自己包括其内部的成员对象都必须有一个默认的无参构造函数!!!
Expand Down

0 comments on commit cc06025

Please sign in to comment.