package Ġcom . jr ask a . github . client Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . test . platform . app . Instrumentation Registry Ċ import Ġcom . jr ask a . github . client . core . android . Base App Ċ import Ġcom . jr ask a . github . client . core . android . ServiceModel Ċ import Ġcom . jr ask a . github . client . http . Fake Http Module Ċ import Ġcom . jr ask a . github . client . android . test . Deep Link Recording Component Ċ import Ġcom . jr ask a . github . client . android . test . Fake Android Core Module Ċ import Ġcom . jr ask a . github . client . android . test . Fake Deep Link Recording Module Ċ import Ġdagger . Bind s Instance Ċ import Ġdagger . Component Ċ import Ġjavax . inject . Singleton Ċ Ċ class ĠTest UIT est App Ġ: ĠBase App () Ġ{ ĊĠ Ġprivate Ġval Ġdecor ated Service Factory Ġby Ġlazy Ġ{ ĊĠĠĠ ĠDecor ated ServiceModel Factory ( super . service Model Factory ()) ĊĠ Ġ} ĊĊĠ Ġoverride Ġval Ġapp Component : ĠTest App Component Ġby Ġlazy Ġ{ ĊĠĠĠ ĠD agger Test App Component . factory (). create ( this ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġservice Model Factory (): ĠService Model . Factory Ġ{ ĊĠĠĠ Ġreturn Ġdecor ated Service Factory ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġfun Ġget (): ĠTest UIT est App Ġ{ ĊĠĠĠĠĠ Ġreturn ĠInstrument ation Registry . get Instrumentation (). target Context . application Context Ġas ĠTest UIT est App ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ @ Singleton Ċ @ Component ( ĊĠ Ġmodules Ġ= Ġ[ ĊĠĠĠ ĠShared Modules :: class , ĊĠĠĠ ĠFake Core Module :: class , ĊĠĠĠ ĠFake Http Module :: class , ĊĠĠĠ ĠFake Android Core Module :: class , ĊĠĠĠ ĠFake Deep Link Recording Module :: class ĊĠ Ġ] Ċ ) Ċ interface ĠTest App Component Ġ: ĠApp Component , ĠDeep Link Recording Component Ġ{ ĊĠ Ġval Ġconfig : ĠFake Config ĊĊĠ Ġ@ Component . Factory ĊĠ Ġinterface ĠFactory Ġ{ ĊĠĠĠ Ġfun Ġcreate (@ Bind s Instance Ġcontext : ĠContext ): ĠTest App Component ĊĠ Ġ} Ċ } Ċ