package Ġcom . example . des af iop it ang . di . component Ċ Ċ import Ġcom . example . des af iop it ang . di . modules . Fragment Module Ċ import Ġcom . example . des af iop it ang . di . modules . Main Module Ċ import Ġcom . example . des af iop it ang . ui . main . MainActivity Ċ import Ġcom . example . des af iop it ang . ui . movie details . Movie Details Activity Ċ import Ġcom . example . des af iop it ang . ui . movie . Movies Fragment Ċ import Ġcom . example . des af iop it ang . ui . movie history . History List Fragment Ċ import Ġdagger . Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Singleton Ċ @ Component ( modules Ġ= Ġ[ Main Module :: class , ĠFragment Module :: class ]) Ċ interface ĠActivity Component Ġ{ ĊĠĠĠ Ġfun Ġinject ( activity : ĠMainActivity ) ĊĠĠĠ Ġfun Ġinject ( activity : ĠMov ies Fragment ) ĊĠĠĠ Ġfun Ġinject ( activity : ĠMovie Details Activity ) ĊĠĠĠ Ġfun Ġinject ( activity : ĠHistory List Fragment ) Ċ }