package Ġcom . problems olver . android playground . di Ċ Ċ import Ġandroidx . datastore . DataStore Ċ import Ġandroidx . datastore . preferences . Preferences Ċ import Ġcom . problems olver . android playground . data . remote . Trend ing Api Ċ import Ġcom . problems olver . android playground . data . repository . Local Repository Ċ import Ġcom . problems olver . android playground . data . repository . Local Repository Impl Ċ import Ġcom . problems olver . android playground . data . repository . Trend ing Repository Ċ import Ġcom . problems olver . android playground . data . repository . Trend ing Repository Impl Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . components . Application Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ @ Install In ( Application Component :: class ) Ċ object ĠRepository Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġtrend ing Repository (@ App Module . Trend ing Client Api Ġtrend ing Api : ĠT rend ing Api ): ĠT rend ing Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠT rend ing Repository Impl ( trend ing Api ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġcreate Local Repository (@ App Module . Example DataStore Ġdata Store : ĠData Store < Preferences >): ĠLocal Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLocal Repository Impl ( data Store ) ĊĠĠĠ Ġ} Ċ }