package Ġcom . ze yn eler di . app . security . app locker . data . database Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġcom . ze yn eler di . app . security . app locker . data . database . App Locker Database . Companion . M IG RATION _ 1 _ 2 Ċ import Ġcom . ze yn eler di . app . security . app locker . data . database . App Locker Database . Companion . M IG RATION _ 2 _ 3 Ċ import Ġcom . ze yn eler di . app . security . app locker . data . database . App Locker Database . Companion . M IG RATION _ 3 _ 4 Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠDatabase Module Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠDB _ NAME Ġ= Ġ" app locker . db " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Database ( context : ĠContext ) Ġ= ĠRoom ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. database Builder ( context , ĠApp Locker Database :: class . java , ĠDB _ NAME ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. add Migrations ( M IG RATION _ 1 _ 2 , ĠM IG RATION _ 2 _ 3 , ĠM IG RATION _ 3 _ 4 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Locked Apps Dao ( db : ĠApp Locker Database ) Ġ= Ġdb . get Locked Apps Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Pattern Dao ( db : ĠApp Locker Database ) Ġ= Ġdb . get Pattern Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Bookmark Dao ( db : ĠApp Locker Database ) Ġ= Ġdb . get Bookmark Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Vault Media Dao ( db : ĠApp Locker Database ) Ġ= Ġdb . get Vault Media Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Black List Dao ( db : ĠApp Locker Database ) Ġ= Ġdb . get Black List Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Call Log Dao ( db : ĠApp Locker Database ) Ġ= Ġdb . get Call Log Dao () Ċ Ċ }