package Ġcom . k urt . example . rick and mort y . core . presentation . app Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . app . Application Ċ import Ġandroid . app . Service Ċ import Ġandroid . content . Context Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġcom . k urt . example . rick and mort y . core . di . Core Component Ċ import Ġcom . k urt . example . rick and mort y . core . di . D agger Core Component Ċ Ċ /** Ċ Ġ* ĠCopyright Ġ 2 0 1 9 , ĠK urt ĠRen zo ĠA cost a , ĠAll Ġrights Ġreserved . Ċ Ġ* Ċ Ġ* Ġ@ author ĠK urt ĠRen zo ĠA cost a Ċ Ġ* Ġ@ since Ġ 0 8 / 0 6 / 2 0 1 9 Ċ Ġ*/ Ċ class ĠR ick And M ort y Application Ġ: ĠApplication () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġcore Component : ĠCore Component Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠ ĠD agger Core Component . create () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġlateinit Ġvar Ġapp Context : ĠContext ĊĠĠĠĠĠĠĠ Ġ@ Jvm Static ĊĠĠĠĠĠĠĠ Ġfun Ġcore Component ( context : ĠContext ) Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ( context . application Context Ġas ĠR ick And M ort y Application ). core Component ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun ĠActivity . core Component () Ġ= ĠR ick And M ort y Application . core Component ( this ) Ċ fun ĠFragment . core Component () Ġ= ĠR ick And M ort y Application . core Component ( require Context ()) Ċ fun ĠService . core Component () Ġ= ĠR ick And M ort y Application . core Component ( this )