Skip to content

Instantly share code, notes, and snippets.

@pfmaggi
Created March 31, 2020 16:27
Show Gist options
  • Save pfmaggi/6637aeb0b451e34f3e8663a3ce4c4bfb to your computer and use it in GitHub Desktop.
Save pfmaggi/6637aeb0b451e34f3e8663a3ce4c4bfb to your computer and use it in GitHub Desktop.
Code for the Medium article: "Customizing WorkManager"
/* Copyright 2020 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
class MyApplication : Application(), Configuration.Provider {
override fun getWorkManagerConfiguration(): Configuration =
Configuration.Builder()
.setMinimumLoggingLevel(android.util.Log.DEBUG)
.setWorkerFactory(MyWorkerFactory(DesignerNewsService))
.build()
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment