package Ġcom . coder . d agger _ kotlin . di . module Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . content . Context Ċ import Ġcom . coder . d agger _ kotlin . di . ApplicationContext Ċ import Ġcom . coder . d agger _ kotlin . di . Database Info Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ Ċ @ Module Ċ class ĠApplication Module Ġconstructor ( var Ġapplication : ĠApplication ) Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ ApplicationContext ĊĠĠĠ Ġfun Ġprovide Context (): ĠContext Ġ= Ġapplication ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Application () Ġ= Ġapplication ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Database Info ĊĠĠĠ Ġfun Ġprovide Database Name () Ġ= Ġ" demo - d agger . db " ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Database Info ĊĠĠĠ Ġfun Ġprovide Database Version () Ġ= Ġ 1 ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Shared Prefs () Ġ= Ġapplication . get SharedPreferences (" demo - prefs ", ĠContext . MODE _ PRIVATE ) Ċ Ċ }