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

Remove deprecated Freezing API #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package co.touchlab.kampkit.data.dog

import co.touchlab.stately.ensureNeverFrozen
import io.ktor.client.HttpClient
import io.ktor.client.call.body
import io.ktor.client.engine.HttpClientEngine
Expand Down Expand Up @@ -40,10 +39,6 @@ class DogApiImpl(private val log: KermitLogger, engine: HttpClientEngine) : DogA
}
}

init {
ensureNeverFrozen()
}

override suspend fun getJsonFromApi(): DogResult {
log.d { "Fetching Breeds from network" }
return client.get {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package co.touchlab.kampkit.data.dog
import co.touchlab.kampkit.domain.breed.Breed
import co.touchlab.kampkit.domain.breed.BreedRepository
import co.touchlab.kermit.Logger
import co.touchlab.stately.ensureNeverFrozen
import com.russhwolf.settings.Settings
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.first
Expand All @@ -24,10 +23,6 @@ class NetworkBreedRepository(
internal const val DB_TIMESTAMP_KEY = "DbTimestampKey"
}

init {
ensureNeverFrozen()
}

override fun getBreeds(): Flow<List<Breed>> {
return dbHelper.selectAllItems().map { list ->
list.map { dbBreed -> dbBreed.toDomain() }
Expand Down
Loading