-
Notifications
You must be signed in to change notification settings - Fork 0
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
MKMPT-20 Caching mechanism to store data in local DB from API #9
base: develop
Are you sure you want to change the base?
MKMPT-20 Caching mechanism to store data in local DB from API #9
Conversation
build.gradle.kts
Outdated
@@ -42,7 +42,7 @@ buildscript { | |||
} | |||
} | |||
dependencies { | |||
classpath(libs.sqldelight.plugin) | |||
// classpath(libs.sqldelight.plugin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we delete this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation(libs.ktor.logging) | ||
implementation(libs.ktor.serialization) | ||
implementation(libs.kotlinx.serialization) | ||
implementation(projects.features.currencyexchange.data.remote.mindera.rest.schema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting I hope I did it right
import app.cash.sqldelight.db.SqlDriver | ||
import app.cash.sqldelight.driver.native.NativeSqliteDriver | ||
import com.mindera.currencyexchange.database.AppDatabase | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleanup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -22,7 +22,9 @@ kotlin { | |||
implementation(libs.kotlinx.coroutines.core) | |||
implementation(libs.kotlinx.datetime) | |||
implementation(projects.common.coroutinesKtx) | |||
implementation(projects.common.domain) } | |||
implementation(projects.common.domain) | |||
implementation(projects.features.currencyexchange.data.remote.mindera.rest.schema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting I hope I did it right
implementation( | ||
projects.features.currencyexchange.data.remote.mindera.rest.schema | ||
) | ||
implementation( | ||
projects.features.currencyexchange.data.remote.mindera.rest.sample | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation( | |
projects.features.currencyexchange.data.remote.mindera.rest.schema | |
) | |
implementation( | |
projects.features.currencyexchange.data.remote.mindera.rest.sample | |
) | |
implementation(projects.features.currencyexchange.data.remote.mindera.rest.schema) | |
implementation(projects.features.currencyexchange.data.remote.mindera.rest.sample) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gradle/libs.versions.toml
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
suspend fun getAllCurrencies(): List<DomainCurrencyExchangeResponseItem> | ||
|
||
suspend fun removeAllCurrencies() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suspend fun getAllCurrencies(): List<DomainCurrencyExchangeResponseItem> | |
suspend fun removeAllCurrencies() | |
suspend fun getAllCurrencies(): List<DomainCurrencyExchangeResponseItem> | |
suspend fun removeAllCurrencies() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation( | ||
projects.features.currencyexchange.data.remote.mindera.rest.schema | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation( | |
projects.features.currencyexchange.data.remote.mindera.rest.schema | |
) | |
implementation(projects.features.currencyexchange.data.remote.mindera.rest.schema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build.gradle.kts
Outdated
@@ -42,7 +42,6 @@ buildscript { | |||
} | |||
} | |||
dependencies { | |||
classpath(libs.sqldelight.plugin) | |||
classpath("com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin:11.1.3") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this into the toml file :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation(projects.common.domain) } | ||
implementation(projects.common.domain) | ||
implementation(projects.features.currencyexchange.data.remote.mindera.rest.schema) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might be wrong but the indentation seems weird to me 😅 seems like the curly bracket is not aligned with the dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suspend fun getCurrencyExchange(endpoint: String): List<DomainCurrencyExchangeResponseItem> | ||
|
||
fun insertCurrency(currency: CurrencyExchangeResponseItem) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👾 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JIRA-Ticket
Added SQLDelight to store data
video.webm