Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koitharu/workinspector
Library for inspecting Android WorkManager jobs
https://github.com/koitharu/workinspector
android-library android-workmanager work-manager workmanager
Last synced: 4 months ago
JSON representation
Library for inspecting Android WorkManager jobs
- Host: GitHub
- URL: https://github.com/koitharu/workinspector
- Owner: Koitharu
- License: gpl-3.0
- Created: 2024-04-30T11:00:38.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-05-03T06:40:05.000Z (10 months ago)
- Last Synced: 2024-05-03T12:19:24.510Z (10 months ago)
- Topics: android-library, android-workmanager, work-manager, workmanager
- Language: Kotlin
- Homepage:
- Size: 1.41 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WorkInspector
Library to inspect the Android WorkManager jobs. Like an App inspector, but on a device.
[](https://jitpack.io/#koitharu/workinspector)  
### Screenshots
|  |  |  |
|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------|## Usage
1. Add it to your root build.gradle at the end of repositories:
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```2. Add the dependency
```groovy
dependencies {
debugImplementation("com.github.koitharu:workinspector:$version")
}
```Versions are available on [JitPack](https://jitpack.io/#koitharu/workinspector)
3. Usage
The WorkInspector will be available via the launcher icon.
Alternatively, you can disable the launcher icon and open it programmatically:
```xml
false
``````kotlin
// 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)
}
```