package Ġcom . example . dk al ita . pip ed rive api . inject Ċ Ċ import Ġcom . example . dk al ita . pip ed rive api . activity . Details Activity Ċ import Ġcom . example . dk al ita . pip ed rive api . activity . MainActivity Ċ import Ġcom . example . dk al ita . pip ed rive api . view model . Login ViewModel Ċ import Ġdagger . Component Ċ import Ġdagger . Sub component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ @ Component ( modules Ġ= Ġ[ Application Module :: class ]) Ċ interface ĠApplication Component Ġ{ ĊĊ ĉ fun Ġlogin Activity Component (): ĠLogin Activity Component ĊĊ ĉ fun Ġmain Activity Component (): ĠMainActivity Component ĊĊ ĉ fun Ġdetails Activity Component (): ĠDetails Activity Component Ċ } Ċ Ċ @ Sub component Ċ interface ĠLogin Activity Component Ġ{ ĊĊ ĉ fun Ġget Login ViewModel (): ĠLogin ViewModel Ċ } Ċ Ċ @ Sub component Ċ interface ĠMainActivity Component Ġ{ ĊĊ ĉ fun Ġinject ( activity : ĠMainActivity ) Ċ } Ċ Ċ @ Sub component Ċ interface ĠDetails Activity Component Ġ{ ĊĊ ĉ fun Ġinject ( activity : ĠDetails Activity ) Ċ } Ċ