package Ġcom . dam mak . ma h di . di Ċ Ċ import Ġcom . dam mak . ma h di . ui . Details F avour ite Fragment Ċ import Ġcom . dam mak . ma h di . ui . F avour ites List Fragment Ċ import Ġcom . dam mak . ma h di . ui . MainActivity Ċ import Ġdagger . Sub component Ċ Ċ // ĠClasses Ġannotated Ġwith Ġ@ Activity Scope Ġwill Ġhave Ġa Ġunique Ġinstance Ġin Ġthis ĠComponent Ċ @ Activity Scope Ċ @ Sub component ( modules Ġ= Ġ[ F avour ites List Module :: class ]) Ċ interface ĠF avour ite Component Ġ{ ĊĊĠĠĠ Ġ@ Sub component . Factory ĊĠĠĠ Ġinterface ĠFactory Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġcreate (): ĠF avour ite Component ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// ĠClasses Ġthat Ġcan Ġbe Ġinjected Ġby Ġthis ĠComponent ĊĠĠĠ Ġfun Ġinject ( fragment : ĠF avour ites List Fragment ) ĊĠĠĠ Ġfun Ġinject ( activity : ĠMainActivity ) ĊĠĠĠ Ġfun Ġinject ( fragment : ĠDetails F avour ite Fragment ) Ċ } Ċ