package Ġcom . she ve lev . my _ foot prints _ re master ed . services . sync _ worker Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . work . Worker Ċ import Ġandroidx . work . Worker Parameters Ċ import Ġcom . she ve lev . my _ foot prints _ re master ed . application . App Ċ import Ġcom . she ve lev . my _ foot prints _ re master ed . services . di . Services Component Ċ import Ġcom . she ve lev . my _ foot prints _ re master ed . sync . sync _ core . Sync Core Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠSync Worker ( ĊĠĠĠ Ġcontext Ġ: ĠContext , ĊĠĠĠ Ġparams Ġ: ĠWorker Parameters Ċ ) Ġ: ĠWorker ( context , Ġparams ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠIN JECTION _ KEY Ġ= Ġ" IN JECTION _ KEY _ SYNC _ WORK ER " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ ĠApp . injection s . get < Services Component >( IN JECTION _ KEY ). inject ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġinternal Ġlateinit Ġvar Ġcore : ĠSync Core ĊĊĠĠĠ Ġoverride Ġfun Ġdo Work (): ĠResult Ġ= Ġif ( core . sync ()) ĠResult . success () Ġelse ĠResult . retry () ĊĊĠĠĠ Ġoverride Ġfun Ġon Stopped () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Stopped () ĊĠĠĠĠĠĠĠ ĠApp . injection s . release < Services Component >( IN JECTION _ KEY ) ĊĠĠĠ Ġ} Ċ }