From 6a43cb32c6aed71a88ce20220f60eef1a7f8f1d1 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 11 Oct 2022 11:43:09 +0600 Subject: [PATCH] init scheduling trigger --- settings.gradle | 1 + .../selector_with_scheduling/build.gradle | 21 +++++++++++++++++++ .../src/commonMain/kotlin/PackageInfo.kt | 1 + .../src/jvmMain/kotlin/Plugin.kt | 11 ++++++++++ .../src/main/AndroidManifest.xml | 1 + 5 files changed, 35 insertions(+) create mode 100644 triggers/selector_with_scheduling/build.gradle create mode 100644 triggers/selector_with_scheduling/src/commonMain/kotlin/PackageInfo.kt create mode 100644 triggers/selector_with_scheduling/src/jvmMain/kotlin/Plugin.kt create mode 100644 triggers/selector_with_scheduling/src/main/AndroidManifest.xml diff --git a/settings.gradle b/settings.gradle index 4cfbdc9..4974edb 100644 --- a/settings.gradle +++ b/settings.gradle @@ -11,6 +11,7 @@ String[] includes = [ ":ratings:gc", ":triggers:command", ":triggers:selector_with_timer", + ":triggers:selector_with_scheduling", ":inlines", // ":settings", ":runner" diff --git a/triggers/selector_with_scheduling/build.gradle b/triggers/selector_with_scheduling/build.gradle new file mode 100644 index 0000000..c3a8634 --- /dev/null +++ b/triggers/selector_with_scheduling/build.gradle @@ -0,0 +1,21 @@ +plugins { + id "org.jetbrains.kotlin.multiplatform" + id "org.jetbrains.kotlin.plugin.serialization" + id "com.android.library" +} + +apply from: "$mppProjectWithSerializationPresetPath" + +kotlin { + sourceSets { + commonMain { + dependencies { + api project(":plaguposter.common") + } + } + jvmMain { + dependencies { + } + } + } +} diff --git a/triggers/selector_with_scheduling/src/commonMain/kotlin/PackageInfo.kt b/triggers/selector_with_scheduling/src/commonMain/kotlin/PackageInfo.kt new file mode 100644 index 0000000..6b58a49 --- /dev/null +++ b/triggers/selector_with_scheduling/src/commonMain/kotlin/PackageInfo.kt @@ -0,0 +1 @@ +package dev.inmo.plaguposter.triggers.selector_with_scheduling diff --git a/triggers/selector_with_scheduling/src/jvmMain/kotlin/Plugin.kt b/triggers/selector_with_scheduling/src/jvmMain/kotlin/Plugin.kt new file mode 100644 index 0000000..d360aa8 --- /dev/null +++ b/triggers/selector_with_scheduling/src/jvmMain/kotlin/Plugin.kt @@ -0,0 +1,11 @@ +package dev.inmo.plaguposter.triggers.selector_with_scheduling + +import dev.inmo.plagubot.Plugin +import kotlinx.serialization.json.* +import org.jetbrains.exposed.sql.Database +import org.koin.core.module.Module + +object Plugin : Plugin { + override fun Module.setupDI(database: Database, params: JsonObject) { + } +} diff --git a/triggers/selector_with_scheduling/src/main/AndroidManifest.xml b/triggers/selector_with_scheduling/src/main/AndroidManifest.xml new file mode 100644 index 0000000..acdf85d --- /dev/null +++ b/triggers/selector_with_scheduling/src/main/AndroidManifest.xml @@ -0,0 +1 @@ +