RBusarow / Dispatch

Automatic CoroutineDispatcher injection and extensions for kotlinx.coroutines

Home Page:https://rbusarow.github.io/Dispatch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create an Android Lint rule for disallowing use of the androidx viewModelScope

RBusarow opened this issue · comments

The dispatch.android.lifecycle.viewmodel package is meant to replace all use of viewModelScope from androidx.

There should be a standalone Lint rule to prevent usage of the Android version.

Since the Dispatch version of viewModelScope wound up being a member property inside an abstract class, it would be impossible to accidentally use the Androidx version.