Skip to content

Commit c878f8e

Browse files
committed
Rename method
1 parent 70a30d2 commit c878f8e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ While we are working on Bintray support, Scarlet is available via [JitPack][jitp
8787
<dependency>
8888
<groupId>com.github.tinder.scarlet</groupId>
8989
<artifactId>scarlet</artifactId>
90-
<version>0.2.3-alpha1</version>
90+
<version>0.2.4-alpha1</version>
9191
</dependency>
9292
```
9393

@@ -98,7 +98,7 @@ repositories {
9898
maven { url "https://jitpack.io" }
9999
}
100100
101-
implementation 'com.github.tinder.scarlet:scarlet:$0.2.3-alpha1'
101+
implementation 'com.github.tinder.scarlet:scarlet:$0.2.4-alpha1'
102102
```
103103

104104
### Plug-in Roadmap

demo/src/main/java/com/tinder/service/ChatRoomSocketIoService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ChatRoomSocketIoService : LifecycleService() {
4040
super.onCreate()
4141

4242
val config = Scarlet.Configuration(
43-
lifecycle = AndroidLifecycle.ofLifecycleServiceForeground(application, this),
43+
lifecycle = AndroidLifecycle.ofLifecycleServiceStarted(application, this),
4444
messageAdapterFactories = listOf(MoshiMessageAdapter.Factory()),
4545
streamAdapterFactories = listOf(RxJava2StreamAdapterFactory())
4646
)
@@ -106,7 +106,7 @@ class ChatRoomSocketIoService : LifecycleService() {
106106
Timber.e(e)
107107
})
108108

109-
Flowable.fromPublisher(AndroidLifecycle.ofLifecycleServiceForeground(application, this))
109+
Flowable.fromPublisher(AndroidLifecycle.ofLifecycleServiceStarted(application, this))
110110
.subscribe({
111111
Timber.d("chatroom lifecycle: $it")
112112

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
android.enableJetifier=true
66
android.useAndroidX=true
7-
version=0.2.3-alpha1
7+
version=0.2.4-alpha1

scarlet-lifecycle-android/src/main/java/com/tinder/scarlet/lifecycle/android/AndroidLifecycle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object AndroidLifecycle {
4343

4444
@JvmStatic
4545
@JvmOverloads
46-
fun ofLifecycleServiceForeground(
46+
fun ofLifecycleServiceStarted(
4747
application: Application,
4848
lifecycleOwner: LifecycleOwner,
4949
throttleTimeoutMillis: Long = ACTIVITY_THROTTLE_TIMEOUT_MILLIS

0 commit comments

Comments
 (0)