package Ġcat . xo jan . random 1 . injection . component Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . content . Context Ċ import Ġcat . xo jan . random 1 . feature . Base Activity Ċ import Ġcat . xo jan . random 1 . injection . Per Activity Ċ import Ġcat . xo jan . random 1 . injection . module . Base Activity Module Ċ import Ġdagger . Component Ċ Ċ @ Per Activity Ġ// ĠSub types Ġof ĠBase Activity Component Ġshould Ġbe Ġdecor ated Ġwith Ġ@ Per Activity . Ċ @ Component ( dependencies Ġ= Ġ[( App Component :: class )], Ġmodules Ġ= Ġ[( Base Activity Module :: class )]) Ċ interface ĠBase Activity Component Ġ{ ĊĠĠĠ Ġfun Ġinject ( base Activity : ĠBase Activity ) ĊĠĠĠ Ġfun Ġactivity (): ĠActivity Ġ Ġ// ĠEx pose Ġthe Ġactivity Ġto Ġsub - graphs ĊĠĠĠ Ġfun Ġcontext (): ĠContext Ċ }