Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaofei-it committed Aug 31, 2016
1 parent 2790406 commit 675152f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 156 deletions.
4 changes: 2 additions & 2 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void showText(String text) {

```
dependencies {
compile 'xiaofei.library:hermes-eventbus:0.1.1'
compile 'xiaofei.library:hermes-eventbus:0.2.0'
}
```

Expand All @@ -61,7 +61,7 @@ dependencies {
<dependency>
<groupId>xiaofei.library</groupId>
<artifactId>hermes-eventbus</artifactId>
<version>0.1.1</version>
<version>0.2.0</version>
<type>pom</type>
</dependency>
```
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Add the following into your gradle file:

```
dependencies {
compile 'xiaofei.library:hermes-eventbus:0.1.6'
compile 'xiaofei.library:hermes-eventbus:0.2.0'
}
```

Expand All @@ -74,7 +74,7 @@ For maven, please use the following:
<dependency>
<groupId>xiaofei.library</groupId>
<artifactId>hermes-eventbus</artifactId>
<version>0.1.6</version>
<version>0.2.0</version>
<type>pom</type>
</dependency>
```
Expand Down
8 changes: 4 additions & 4 deletions hermes-eventbus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ext {
siteUrl = 'https://github.com/Xiaofei-it/HermesEventBus-OriginalRepo'
gitUrl = 'https://github.com/Xiaofei-it/HermesEventBus-OriginalRepo.git'

libraryVersion = '0.1.6'
libraryVersion = '0.2.0'

developerId = 'Xiaofei-it'
developerName = 'Eric Zhao'
Expand All @@ -31,8 +31,8 @@ android {
defaultConfig {
minSdkVersion 8
targetSdkVersion 23
versionCode 2
versionName "0.1.6"
versionCode 3
versionName "0.2.0"
}
buildTypes {
release {
Expand All @@ -48,7 +48,7 @@ dependencies {
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'xiaofei.library:hermes:0.6.1'
compile 'xiaofei.library:concurrent-utils:0.1.3'
compile 'xiaofei.library:concurrent-utils:0.1.4'
}

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import org.greenrobot.eventbus.EventBus;

import xiaofei.library.concurrentutils.ObjectCanary;
import xiaofei.library.concurrentutils.ObjectCanary2;
import xiaofei.library.concurrentutils.util.Action;
import xiaofei.library.concurrentutils.util.Function;
import xiaofei.library.hermes.Hermes;
Expand Down Expand Up @@ -61,27 +61,21 @@ public class HermesEventBus {
private volatile int mState = STATE_DISCONNECTED;

/**
* TODO
*
* 1. Consider more about the interleaving, especially when the service is being connected or disconnected.
*
* 2. I should solve the following problems in the future:
* 2. Pay attention to the following cases:
*
* (1) Before the connection succeeds, e1, e2 and e3 are put into the queue.
* Then when the connection succeeds, they are posted one by one.
* However, after e1 is posted, we post another event e4.
* How can I guarantee that e4 is posted after e3?
* I should guarantee that e4 is posted after e3.
*
* (2) Before the connection succeeds, some sticky events (e1, e2 and e3)
* are put into the queue.
* Then when the connection succeeds, they are posted one by one.
* However, after e1 is posted, we get a sticky event.
* How can I guarantee that we get e3 rather than e1?
*
* I have made some modifications in the concurrent library but has not imported it
* into HermesEventBus.
* Work remains to be done in the future.
*
* I should guarantee that we get e3 rather than e1.
*/

private HermesEventBus() {
Expand Down

This file was deleted.

0 comments on commit 675152f

Please sign in to comment.