Releases: uber/AutoDispose
Releases · uber/AutoDispose
2.2.1
2.2.0
- 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
- Update various dependencies by @ZacSweers in #462
- Improve RxJava versions support documentation by @alexfu in #464
- lint lenient mode support kotlin lambda/when/if expressions by @sanggggg in #466
- [Coroutines Interop] Dispose the handle returned by
Job.invokeOnCompletion
when Rx subscription is disposed. by @psteiger in #470 - Modernize repo by @ZacSweers in #471
New Contributors
- @alexfu made their first contribution in #464
- @sanggggg made their first contribution in #466
- @psteiger made their first contribution in #470
Full Changelog: 2.1.1...2.2.0
2.1.1
- 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
- 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 partyandroidx.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!