Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
zhxnlai committed Jan 18, 2019
1 parent 70a30d2 commit c878f8e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ While we are working on Bintray support, Scarlet is available via [JitPack][jitp
<dependency>
<groupId>com.github.tinder.scarlet</groupId>
<artifactId>scarlet</artifactId>
<version>0.2.3-alpha1</version>
<version>0.2.4-alpha1</version>
</dependency>
```

Expand All @@ -98,7 +98,7 @@ repositories {
maven { url "https://jitpack.io" }
}
implementation 'com.github.tinder.scarlet:scarlet:$0.2.3-alpha1'
implementation 'com.github.tinder.scarlet:scarlet:$0.2.4-alpha1'
```

### Plug-in Roadmap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ChatRoomSocketIoService : LifecycleService() {
super.onCreate()

val config = Scarlet.Configuration(
lifecycle = AndroidLifecycle.ofLifecycleServiceForeground(application, this),
lifecycle = AndroidLifecycle.ofLifecycleServiceStarted(application, this),
messageAdapterFactories = listOf(MoshiMessageAdapter.Factory()),
streamAdapterFactories = listOf(RxJava2StreamAdapterFactory())
)
Expand Down Expand Up @@ -106,7 +106,7 @@ class ChatRoomSocketIoService : LifecycleService() {
Timber.e(e)
})

Flowable.fromPublisher(AndroidLifecycle.ofLifecycleServiceForeground(application, this))
Flowable.fromPublisher(AndroidLifecycle.ofLifecycleServiceStarted(application, this))
.subscribe({
Timber.d("chatroom lifecycle: $it")

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

android.enableJetifier=true
android.useAndroidX=true
version=0.2.3-alpha1
version=0.2.4-alpha1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object AndroidLifecycle {

@JvmStatic
@JvmOverloads
fun ofLifecycleServiceForeground(
fun ofLifecycleServiceStarted(
application: Application,
lifecycleOwner: LifecycleOwner,
throttleTimeoutMillis: Long = ACTIVITY_THROTTLE_TIMEOUT_MILLIS
Expand Down

0 comments on commit c878f8e

Please sign in to comment.