Tinder / Scarlet

A Retrofit inspired WebSocket client for Kotlin, Java, and Android
Other
3.23k stars 237 forks source link

Cannot use Scarlet with your Tinder State Machine in the same project. Duplicate library (Scarlet uses State Machine 0.1.2 which is old) #146

Open alin-rosu opened 4 years ago

alin-rosu commented 4 years ago

Because of latest commit in gradle:

settings.gradle Use the latest state machine 2 years ago

Can you pls update it to use State Machine 0.2.0?

aaronweihe commented 4 years ago

which version of Scarlet are you using? 0.1.10 should have statemachine dependency updated to 0.2.0. we haven't published any production artifacts for 0.2.X, only snapshots(0.2.5) are available.

alin-rosu commented 4 years ago

This is what I am using:

implementation 'com.github.tinder.scarlet:scarlet:0.2.4' implementation 'com.github.tinder.scarlet:scarlet-protocol-websocket-okhttp:0.2.4' implementation "com.github.tinder.scarlet:scarlet-stream-adapter-rxjava2:0.2.4" implementation "com.github.tinder.scarlet:scarlet-message-adapter-moshi:0.2.4"

If I add this: implementation 'com.tinder.statemachine:statemachine:0.2.0' I get this error: Duplicate class com.tinder.StateMachine found in modules jetified-statemachine-0.1.2.jar (com.github.tinder:statemachine:0.1.2) and jetified-statemachine-0.2.0.jar (com.tinder.statemachine:statemachine:0.2.0)