uber / AutoDispose

Automatic binding+disposal of RxJava streams.
https://uber.github.io/AutoDispose/
Apache License 2.0
3.37k stars 226 forks source link

Lint Check with RxBinding Conflict #323

Closed liangjingkanji closed 5 years ago

liangjingkanji commented 5 years ago

i don't requirement lint check

how do close it

ShaishavGandhi commented 5 years ago

There technically isn't any conflict since RxBinding also exposes Observable's whose subscriptions should be handled safely.

If you're already handling those subscriptions by capturing a Disposable like:

fun bindViews() {
  val disposable = RxView.clicks(button).subscribe()  
}

consider enabling lenient mode for AutoDispose by adding in your gradle.properties file.

autodispose.lenient=true

More on the lint configuration here.

If you want to disable lint fully, there are a few options as prescribed in the Android documentation. You can choose to disable certain checks also.

ZacSweers commented 5 years ago

Yep, if you feel it's wrong then please file a bug with an example code that's wrong.

liangjingkanji commented 5 years ago

thank you