Find Android smells

Proprietary

Search-only Android recipe family covering the deprecated-API surface (Activity / Fragment / Handler / kotlinx.android.synthetic / parcel / Vibrator / registerReceiver), storage-layer footguns (SharedPreferences.commit, Room @Query shape, ContentResolver.query), lifecycle smells (LiveData.observe(this, ...), public MutableLiveData), permissions/security (requestPermissions, MODE_WORLD_*), Android-specific performance (findViewById in onDraw, raw BitmapFactory, Handler.postDelayed, runOnUiThread), WebView smells (loadUrl, setJavaScriptEnabled), logging smells (Log.*, System.out), and modernization candidates (manual Parcelable/Serializable, RxJava, raw Dagger, manual ViewModelProvider, ObjectAnimator, Runtime.exec).

org.openrewrite.kotlin.android.Android$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.Android$KtRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Find deprecated Android APIs
  2. Find Android storage / data-layer smells
  3. Find Android lifecycle / LiveData smells
  4. Find Android permissions / security smells
  5. Find Android-specific performance smells
  6. Find Android WebView smells
  7. Find Android logging smells
  8. Find Android modernization candidates