AutoDispose Versions Save

Automatic binding+disposal of RxJava streams.

2.2.1

9 months ago
  • Fix: Don't hold a reference to the view if detach happens before DetachEventCompletable is disposed.

2.2.0

9 months ago
  • Fix: Dispose the handle returned by Job.invokeOnCompletion when Rx subscription is disposed.
  • Fix: The withScope() lint now correctly handles different named arguments order.
  • Fix: Support kotlin if/when/lambda expressions in lint lenient mode.
  • Update AndroidX Lifecycle to 2.6.1.
  • Update Kotlin to 1.9.0.
  • Update RxJava to 3.1.6.
  • Update RxAndroid to 3.0.2.
  • Update lint to 8.0.2/31.0.2.
  • Update error-prone to 2.20.0.
  • Update dokka + fresh coat of paint on API docs on the project site: https://uber.github.io/AutoDispose/api/2.x/

Special thanks to @alexfu, @sanggggg, and @psteiger for contributing to this release!

What's Changed

New Contributors

Full Changelog: https://github.com/uber/AutoDispose/compare/2.1.1...2.2.0

2.1.1

2 years ago
  • Fix: SingleSubscribeProxy#subscribe(BiConsumer) now propagates the correct nullability. Previously, both parameters were implicitly @NonNull. Now they are correctly annotated as @Nullable.
  • Update Kotlin to 1.5.30.
  • Update Error Prone Annotations to 2.9.0.
  • Switch to Error Prone's @DoNotMock annotation.

2.1.0

2 years ago
  • Add @NonNull or : Any to type arguments where appropriate for better nullability contracts in generics.
  • Fix lint using "mainProject" instead of "project", meaning this now supports AGP 7.0.0.
  • Add lint support for RxKotlin extensions or your own extensions
    • See the docs for configuration details!
  • Lint is now published as a dedicated artifact for use in pure JVM projects.
    plugins {
      id "org.jetbrains.kotlin.jvm"
      id "com.android.lint"
    }
    
    dependencies {
      lintChecks "com.uber.autodispose2:autodispose-lint:<version>"
    }
    
  • Deprecate TestLifecycleOwner artifact + its extensions in favor of the first party androidx.lifecycle.testing.TestLifecycleOwner option.
    • See an example migration in this PR.
  • Update to RxJava 3.1.0
  • Update to Kotlin 1.5.21
  • Update to androidx.lifecycle 2.3.1
  • Update to Error-Prone 2.8.1
  • Update to kotlinx.coroutines 1.5.1
  • Update to lint 30.0.0

Note that we are no longer releasing AutoDispose 1.x versions as RxJava 2 reached End of Life in February 2021.

Thanks to @Rajin9601, @ianhanniballake, @rafaeltoledo, and @msridhar for contributing to this release!