Scarlet
Scarlet copied to clipboard
java.lang.IllegalArgumentException: Receive method must return ParameterizedType: public abstract io.reactivex.Flowable com.example.demo.DemoWebsocketService.observeCustomInfo()
if isMinifyEnabled = true,app will crash : java.lang.IllegalArgumentException: Receive method must return ParameterizedType: public abstract io.reactivex.Flowable com.example.demo.DemoWebsocketService.observeCustomInfo()
env: gralde 8.7 agp8.5.0 jdk 17
source link: https://github.com/PanPersonalProject/BaseAndroidFramework
i fit this problem,just keep rxjava -keep class io.reactivex.** { *; }
Hello, I am using Scarlet along with kotlin coroutines FlowStreamAdapter. I encountered the same problem, so I note the solution.
java.lang.IllegalArgumentException: Receive method must return ParameterizedType: public abstract kotlinx.coroutines.flow.Flow
-keep class kotlinx.coroutines.flow.Flow { *; }
# From https://github.com/Tinder/Scarlet/issues/155#issuecomment-828994395 thx!
-if interface * { @com.tinder.scarlet.ws.* <methods>; }
-keep,allowobfuscation interface <1>
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@com.tinder.scarlet.ws.* <methods>;
}