fixed gradle deps

This commit is contained in:
000Sanya 2020-09-21 10:23:13 +10:00
parent dbfe2f6661
commit dc9529310c
4 changed files with 7 additions and 0 deletions

View File

@ -9,5 +9,7 @@ ktor_version=1.4.0
gradle_bintray_plugin_version=1.8.5 gradle_bintray_plugin_version=1.8.5
uuidVersion=0.2.2
group=dev.inmo group=dev.inmo
version=0.1.0 version=0.1.0

View File

@ -9,7 +9,10 @@ kotlin {
sourceSets { sourceSets {
commonMain { commonMain {
dependencies { dependencies {
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
api internalProject("micro_utils.pagination.common") api internalProject("micro_utils.pagination.common")
api "com.benasher44:uuid:$uuidVersion"
} }
} }
} }

View File

@ -2,6 +2,7 @@ package dev.inmo.micro_utils.repos
import dev.inmo.micro_utils.pagination.Pagination import dev.inmo.micro_utils.pagination.Pagination
import dev.inmo.micro_utils.pagination.PaginationResult import dev.inmo.micro_utils.pagination.PaginationResult
import kotlinx.coroutines.flow.Flow
interface ReadStandardCRUDRepo<ObjectType, IdType> : Repo { interface ReadStandardCRUDRepo<ObjectType, IdType> : Repo {
suspend fun getByPagination(pagination: Pagination): PaginationResult<ObjectType> suspend fun getByPagination(pagination: Pagination): PaginationResult<ObjectType>

View File

@ -2,6 +2,7 @@ package dev.inmo.micro_utils.repos
import dev.inmo.micro_utils.pagination.Pagination import dev.inmo.micro_utils.pagination.Pagination
import dev.inmo.micro_utils.pagination.PaginationResult import dev.inmo.micro_utils.pagination.PaginationResult
import kotlinx.coroutines.flow.Flow
interface StandardReadKeyValueRepo<Key, Value> : Repo { interface StandardReadKeyValueRepo<Key, Value> : Repo {
suspend fun get(k: Key): Value? suspend fun get(k: Key): Value?