From 88967cadf720a8cfa5bf0b0ca198d762d7342c16 Mon Sep 17 00:00:00 2001 From: alexander Date: Sun, 28 Nov 2021 08:06:39 +0000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D0=B5=D1=80=D0=B8=D0=B0=D0=BB=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D1=80=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/build.gradle | 1 + client/src/commonMain/kotlin/dev/inmo/postssystem/client/DI.kt | 2 ++ server/build.gradle | 1 + server/src/main/java/dev/inmo/postssystem/server/DI.kt | 2 ++ 4 files changed, 6 insertions(+) diff --git a/client/build.gradle b/client/build.gradle index 9c2f2a2d..ded10e89 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -22,6 +22,7 @@ kotlin { api project(":postssystem.features.roles.manager.client") api project(":postssystem.features.content.client") api project(":postssystem.features.content.text.client") + api project(":postssystem.features.content.binary.client") api "dev.inmo:micro_utils.fsm.common:$microutils_version" api "dev.inmo:micro_utils.fsm.repos.common:$microutils_version" api "dev.inmo:micro_utils.crypto:$microutils_version" diff --git a/client/src/commonMain/kotlin/dev/inmo/postssystem/client/DI.kt b/client/src/commonMain/kotlin/dev/inmo/postssystem/client/DI.kt index 92bbff6e..94712f95 100644 --- a/client/src/commonMain/kotlin/dev/inmo/postssystem/client/DI.kt +++ b/client/src/commonMain/kotlin/dev/inmo/postssystem/client/DI.kt @@ -26,6 +26,7 @@ import dev.inmo.postssystem.client.settings.auth.AuthSettings import dev.inmo.postssystem.client.settings.auth.DefaultAuthSettings import dev.inmo.postssystem.features.common.common.SerializersModuleConfigurator import dev.inmo.postssystem.features.common.common.singleWithRandomQualifier +import dev.inmo.postssystem.features.content.binary.common.BinaryContentSerializerModuleConfigurator import dev.inmo.postssystem.features.content.common.ContentSerializersModuleConfigurator import dev.inmo.postssystem.features.content.common.OtherContentSerializerModuleConfigurator import dev.inmo.postssystem.features.content.text.common.TextContentSerializerModuleConfigurator @@ -69,6 +70,7 @@ fun baseKoin( module { singleWithRandomQualifier { OtherContentSerializerModuleConfigurator } singleWithRandomQualifier { TextContentSerializerModuleConfigurator } + singleWithRandomQualifier { BinaryContentSerializerModuleConfigurator } singleWithRandomQualifier { ContentSerializersModuleConfigurator(getAll()) } single { SerializersModuleConfigurator(getAll()) } diff --git a/server/build.gradle b/server/build.gradle index 0506e90e..50cf3367 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -20,6 +20,7 @@ dependencies { api project(":postssystem.features.roles.manager.server") api project(":postssystem.features.content.server") api project(":postssystem.features.content.text.server") + api project(":postssystem.features.content.binary.server") api "io.ktor:ktor-server-netty:$ktor_version" api "io.ktor:ktor-websockets:$ktor_version" api "org.jetbrains.exposed:exposed-jdbc:$kotlin_exposed_version" diff --git a/server/src/main/java/dev/inmo/postssystem/server/DI.kt b/server/src/main/java/dev/inmo/postssystem/server/DI.kt index 84a7ac1b..6fc9f6ff 100644 --- a/server/src/main/java/dev/inmo/postssystem/server/DI.kt +++ b/server/src/main/java/dev/inmo/postssystem/server/DI.kt @@ -25,6 +25,7 @@ import dev.inmo.micro_utils.ktor.server.createKtorServer import dev.inmo.micro_utils.repos.exposed.keyvalue.ExposedKeyValueRepo import dev.inmo.micro_utils.repos.exposed.onetomany.ExposedOneToManyKeyValueRepo import dev.inmo.postssystem.features.common.common.* +import dev.inmo.postssystem.features.content.binary.common.BinaryContentSerializerModuleConfigurator import dev.inmo.postssystem.features.content.common.ContentSerializersModuleConfigurator import dev.inmo.postssystem.features.content.common.OtherContentSerializerModuleConfigurator import dev.inmo.postssystem.features.content.text.common.TextContentSerializerModuleConfigurator @@ -73,6 +74,7 @@ fun getDIModule( return module { singleWithRandomQualifier { OtherContentSerializerModuleConfigurator } singleWithRandomQualifier { TextContentSerializerModuleConfigurator } + singleWithRandomQualifier { BinaryContentSerializerModuleConfigurator } singleWithRandomQualifier { ContentSerializersModuleConfigurator(getAll()) } single { SerializersModuleConfigurator(getAll()) }