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()) }