I was trying to use AutoDispose https://github.com/uber/AutoDispose to dispose of my Rx streams in android.
But I am having an issue when I add it to my activity/fragment. I think it is a kotlin issue but I am not able to figure out what.
when I add AndroidLifecycleScopeProvider.from(lifecycle) I get an error on the from method in Android Studio and it won't compile.
This is the stack trace
None of the following functions can be called with the arguments supplied:
public final fun from(p0: (() -> Lifecycle)!): AndroidLifecycleScopeProvider! defined in com.uber.autodispose.android.lifecycle.AndroidLifecycleScopeProvider
public open fun from(p0: Lifecycle!): AndroidLifecycleScopeProvider! defined in com.uber.autodispose.android.lifecycle.AndroidLifecycleScopeProvider
public open fun from(p0: LifecycleOwner!): AndroidLifecycleScopeProvider! defined in com.uber.autodispose.android.lifecycle.AndroidLifecycleScopeProvider
The same code works with there sample app.