package Ġcom . fib el att i . pin board . core . di . modules Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . room . Room Ċ import Ġcom . fib el att i . pin board . core . persistence . database . App Database Ċ import Ġcom . fib el att i . pin board . core . persistence . database . DATABASE _ NAME Ċ import Ġcom . fib el att i . pin board . core . persistence . database . getAll Migrations Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ object ĠDatabase Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġapp Database ( application : ĠApplication ): ĠApp Database Ġ= ĊĠĠĠĠĠĠĠ ĠRoom . database Builder ( application , ĠApp Database :: class . java , ĠDATABASE _ NAME ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Migrations (* getAll Migrations ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () Ċ } Ċ