From 272df545a30a935c2d8d115e1d3bedcb761a85ab Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 9 Sep 2020 00:31:26 +0600 Subject: [PATCH] add PublishingService --- gradle.properties | 4 ++-- .../core/publishing/PublishingService.kt | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 publishing/api/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/publishing/PublishingService.kt diff --git a/gradle.properties b/gradle.properties index 7725b36c..021cc90f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,9 +7,9 @@ kotlin_serialisation_core_version=1.0.0-RC ktor_version=1.4.0 klockVersion=1.12.0 -uuidVersion=0.2.1 +uuidVersion=0.2.2 -exposed_version=0.26.2 +exposed_version=0.27.1 test_sqlite_version=3.32.3.2 javax_activation_version=1.1.1 diff --git a/publishing/api/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/publishing/PublishingService.kt b/publishing/api/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/publishing/PublishingService.kt new file mode 100644 index 00000000..44440029 --- /dev/null +++ b/publishing/api/src/commonMain/kotlin/com/insanusmokrassar/postssystem/core/publishing/PublishingService.kt @@ -0,0 +1,17 @@ +package com.insanusmokrassar.postssystem.core.publishing + +import com.insanusmokrassar.postssystem.core.post.repo.PostsRepo +import com.insanusmokrassar.postssystem.core.publishing.repos.PublishedPostsWriteRepo +import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo + +class PublishingService( + private val postsRepo: PostsRepo, + private val publishedPostsRepo: PublishedPostsWriteRepo, + private val keysRepo: PublishingKeysRepo +) : PublishingRegistrar by BusinessPublishingRegistrar( + keysRepo +), PublishingTrigger by BusinessPublishingTrigger( + postsRepo, + publishedPostsRepo, + keysRepo +)