/* Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 2 1 . ĠM ats uda , ĠA ki hit Ġ( ak ih ito 1 0 4 ) Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . fresh digit able . ud on road 2 . data . local . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . room . Room Ċ import Ġcom . fresh digit able . ud on road 2 . data . App Setting DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . OAuth Token DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . Relation DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . Tweet DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . Twitter Card DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . User DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . App Database Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . Conversation List Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . Custom Timeline Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . Custom Timeline List Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . Media Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . Relationship Local DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . Tweet List Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . UserList Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . dao . User Local Source Ċ import Ġcom . fresh digit able . ud on road 2 . data . db . entity . List Dao Ċ import Ġcom . fresh digit able . ud on road 2 . data . local . Shared Preference DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . local . Tweet Local DataSource Ċ import Ġcom . fresh digit able . ud on road 2 . data . local . Twitter Card Local Source Ċ import Ġdagger . Bind s Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ object ĠDatabase Module Ġ{ ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide App Database ( app : ĠApplication ): ĠApp Database Ġ= ĊĠĠĠĠĠĠĠ ĠRoom . database Builder ( app , ĠApp Database :: class . java , Ġ" twitter _ storage ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. fallback To Dest ruct ive Migration () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () Ċ } Ċ Ċ @ Module ( includes Ġ= Ġ[ Dao Module :: class , ĠLocal Source Module Internal :: class ]) Ċ interface ĠLocal Source Module Ċ Ċ @ Module Ċ internal Ġobject ĠDao Module Ġ{ ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Tweet List Dao ( db : ĠApp Database ): ĠTweet List Dao Ġ= ĠTweet List Dao ( db ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Conversation List Dao ( ĊĠĠĠĠĠĠĠ Ġdb : ĠApp Database , ĊĠĠĠĠĠĠĠ Ġtweet List Dao : ĠTweet List Dao , ĊĠĠĠ Ġ): ĠCon versation List Dao Ġ= ĠCon versation List Dao ( db , Ġtweet List Dao ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide UserList Dao ( db : ĠApp Database ): ĠUser List Dao Ġ= ĠUser List Dao ( db ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Custom Timeline Dao ( db : ĠApp Database ): ĠCustom Timeline Dao Ġ= Ġdb . custom Timeline Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Custom Timeline List Dao ( db : ĠApp Database ): ĠCustom Timeline List Dao Ġ= ĊĠĠĠĠĠĠĠ ĠCustom Timeline List Dao ( db ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Media Dao ( db : ĠApp Database ): ĠMedia Dao Ġ= Ġdb . media Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide List Dao ( db : ĠApp Database ): ĠList Dao Ġ= Ġdb . list Dao () Ċ } Ċ Ċ @ Module ( includes Ġ= Ġ[ SharedPreferences Module :: class ]) Ċ internal Ġinterface ĠLocal Source Module Internal Ġ{ ĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind UserRepository Local Source ( source : ĠUser Local Source ): ĠUser DataSource . Local ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind OAuth DataSource Local ( source : ĠShared Preference DataSource ): ĠOAuth Token DataSource . Local ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind App Setting DataSource Local ( ĊĠĠĠĠĠĠĠ Ġsource : ĠShared Preference DataSource , ĊĠĠĠ Ġ): ĠApp Setting DataSource . Local ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind Tweet DataSource Local ( source : ĠTweet Local DataSource ): ĠTweet DataSource . Local ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind Relation DataSource Local ( source : ĠRelationship Local DataSource ): ĠRelation DataSource . Local ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind Twitter Card Local Source ( source : ĠTwitter Card Local Source ): ĠTwitter Card DataSource . Local Ċ } Ċ