Skip to content

Library for inspecting Android WorkManager jobs

License

Notifications You must be signed in to change notification settings

jakepurple13/WorkInspector

 
 

Repository files navigation

WorkInspector

Library to inspect the Android WorkManager jobs. Like an App inspector, but on a device.

minSdk21 Kotlin

Screenshots

Usage

  1. Add it to your root build.gradle at the end of repositories:

    allprojects {
        repositories {
     	   ...
     	   maven { url 'https://jitpack.io' }
        }
    }
  2. Add the dependency

    dependencies {
        debugImplementation("com.github.koitharu:workinspector:$version")
    }

    Versions are available on JitPack

  3. Usage

    The WorkInspector will be available via the launcher icon.

    Alternatively, you can disable the launcher icon and open it programmatically:

    <bool name="wi_launcher_icon_enabled" tools:node="replace">false</bool>
    // start activity
    context.startActivity(WorkInspector.getIntent(context))
    
    // or alternatively, for the debug-only implementation
    if (BuildConfig.DEBUG) {
      val intent = Intent()
      intent.component = ComponentName(context, "org.koitharu.workinspector.WorkInspectorActivity")
      context.startActivity(intent)
    }

About

Library for inspecting Android WorkManager jobs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%