1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-27 12:38:45 +00:00

actualization witn WithOptionalLanguageCode

This commit is contained in:
InsanusMokrassar 2021-08-05 23:50:35 +06:00
parent 25cf660791
commit 8f4fa1e447
3 changed files with 13 additions and 13 deletions

View File

@ -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"))
// }
}
}

View File

@ -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",

View File

@ -43,7 +43,7 @@ val result = mutableMapOf<KClass<*>, Set<KClass<*>>>()
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}")