package Ġs out void . com . D sr Weather App . inter actor . common . jobs Ċ Ċ import Ġandroid . annotation . Suppress Lint Ċ import Ġandroid . app . job . JobService Ċ import Ġandroid . content . Context Ċ import Ġandroid . os . Build Ċ import Ġcom . ag na . fer ro . mvp . component . scope . Per Application Ċ import Ġcom . bir bit . android . job queue . Job Manager Ċ import Ġcom . bir bit . android . job queue . config . Configuration Ċ import Ġcom . bir bit . android . job queue . scheduling . Framework Job Scheduler Service Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġs out void . com . D sr Weather App . app . App Ċ import Ġs out void . com . D sr Weather App . inter actor . triggers . jobs . Base Trigger Job Ċ import Ġs out void . com . D sr Weather App . util . Sdk Util Ċ Ċ @ Module Ċ class ĠJob Manager Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Per Application ĊĠĠĠ Ġfun Ġprovide Job Manager ( context : ĠContext ): ĠJob Manager Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbuilder Ġ= ĠConfiguration . Builder ( context ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. min Consumer Count ( 1 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. max Consumer Count ( 1 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. consumer KeepAlive ( 1 2 0 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. injector ( Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ( it Ġas ĠBase Trigger Job ). inject (( context Ġas ĠApp ). app Component ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠĠĠĠĠ Ġreturn ĠJob Manager ( builder . build ()) ĊĠĠĠ Ġ} Ċ Ċ }