From 8f4fa1e447265172f4b5e989e43534d36a4faffa Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 5 Aug 2021 23:50:35 +0600 Subject: [PATCH] actualization witn WithOptionalLanguageCode --- docs/build.gradle | 22 ++++++++++---------- tgbotapi.core/build.gradle | 2 +- tgbotapi.core/src/jvmTest/kotlin/Temporal.kt | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/build.gradle b/docs/build.gradle index babb90dfde..5359641bba 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -77,17 +77,17 @@ Object callback = { } } - named("commonMain") { - sourceRoots.setFrom(findSourcesWithName("commonMain")) - } - - named("jsMain") { - sourceRoots.setFrom(findSourcesWithName("jsMain")) - } - - named("jvmMain") { - sourceRoots.setFrom(findSourcesWithName("jvmMain")) - } +// named("commonMain") { +// sourceRoots.setFrom(findSourcesWithName("commonMain")) +// } +// +// named("jsMain") { +// sourceRoots.setFrom(findSourcesWithName("jsMain")) +// } +// +// named("jvmMain") { +// sourceRoots.setFrom(findSourcesWithName("jvmMain")) +// } } } diff --git a/tgbotapi.core/build.gradle b/tgbotapi.core/build.gradle index 6a8a112d06..4ba8e29f59 100644 --- a/tgbotapi.core/build.gradle +++ b/tgbotapi.core/build.gradle @@ -112,7 +112,7 @@ kapt { // "dev.inmo.tgbotapi.types.message.ChatEvents.abstracts.ChatEvent", // "dev.inmo.tgbotapi.types.passport.decrypted.abstracts.SecureValue", // "dev.inmo.tgbotapi.types.message.content.abstracts.ResendableContent", - "dev.inmo.tgbotapi.types.message.abstracts.Message", + "dev.inmo.tgbotapi.CommonAbstracts.WithOptionalLanguageCode", // "dev.inmo.tgbotapi.types.passport.encrypted_data.abstracts.EncryptedPassportElement", // "dev.inmo.tgbotapi.types.passport.PassportElementError", // "dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery", diff --git a/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt b/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt index 7fff96de03..7b6c37f04d 100644 --- a/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt +++ b/tgbotapi.core/src/jvmTest/kotlin/Temporal.kt @@ -43,7 +43,7 @@ val result = mutableMapOf, Set>>() fun main() { - result[Message::class] = KlassIndex.getSubclasses(Message::class).toSet() + result[Message::class] = KlassIndex.getSubclasses(dev.inmo.tgbotapi.CommonAbstracts.WithOptionalLanguageCode::class).toSet() println("import dev.inmo.tgbotapi.utils.PreviewFeature") val importsToFuns = result.keys.flatMap { println("import ${it.qualifiedName}")