Skip to content

Instantly share code, notes, and snippets.

@pfmaggi
Created March 31, 2020 17:36
Show Gist options
  • Select an option

  • Save pfmaggi/7d27562f7ded2bd4b5453920cd99b31a to your computer and use it in GitHub Desktop.

Select an option

Save pfmaggi/7d27562f7ded2bd4b5453920cd99b31a 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 */
@Singleton
@Component(modules = [AppModule::class])
interface AppComponent {
@Component.Factory
interface Factory {
fun create(@BindsInstance context: Context): AppComponent
}
fun inject(application: MyApplication)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment