Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core refactoring #22

Merged
merged 12 commits into from
Feb 25, 2019
Merged

Core refactoring #22

merged 12 commits into from
Feb 25, 2019

Conversation

rafaelekol
Copy link
Member

Close #21


abstract fun balanceDao(): BalanceDao
abstract fun gasPriceDao(): GasPriceDao
abstract fun lastBlockHeight(): LastBlockHeightDao
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's rename to lastBlockHeightDao()

private fun buildDatabase(context: Context, databaseName: String): KitDatabase {
return Room.databaseBuilder(context, KitDatabase::class.java, databaseName)
.fallbackToDestructiveMigration()
.allowMainThreadQueries()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to allow queries in main thread?

@abdrasulov abdrasulov merged commit 87e1d44 into master Feb 25, 2019
@abdrasulov abdrasulov deleted the implement-room-database branch February 25, 2019 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants