Skip to content

Commit

Permalink
7.4.0 (#273)
Browse files Browse the repository at this point in the history
* Supported Telegram API [7.11](https://core.telegram.org/bots/api-changelog#october-31-2024).
* Removed `onCommand(Regex)` from FunctionalDSL since `common` is already covering its case and the functionality was
  removed anyway and the feature remained by chance :)
* Exposed updates flow `bot.update.flow` [🔬].
* Little improvements to logging process.
* Added `linuxX64` + `mingwX64` targets to `botctx-redis` module.
  • Loading branch information
vendelieu authored Nov 1, 2024
1 parent 3db0aef commit 18ea4cf
Show file tree
Hide file tree
Showing 126 changed files with 14,973 additions and 1,293 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
# Telegram-bot (KtGram) Changelog

## 7.4.0

* Supported Telegram API [7.11](https://core.telegram.org/bots/api-changelog#october-31-2024).
* Removed `onCommand(Regex)` from FunctionalDSL since `common` is already covering its case and the functionality was
removed anyway and the feature remained by chance :)
* Exposed updates flow `bot.update.flow` [🔬].
* Little improvements to logging process.
* Added `linuxX64` + `mingwX64` targets to `botctx-redis` module.

### 7.3.1

* Add missing `user` and `text` references for `PurchasedPaidMediaUpdate`.

## 7.3.0

* Supported Telegram API [7.10](https://core.telegram.org/bots/api-changelog#september-6-2024)
* Supported Telegram API [7.10](https://core.telegram.org/bots/api-changelog#september-6-2024).
* Added option to auto clean state in `@InputChain` as annotation parameter [🔬].
* Added option to set chaining strategy for `@InputChain` links, to have more control over flow.
* Added option to set custom argument parser for specific activities (`@CommandHandler`, `@CommonHandler`).
* Removed special deeplink case handling, now will need to use the basic mechanism (can be caught by ordered parameters).
* Removed special deeplink case handling, now will need to use the basic mechanism (can be caught by ordered
parameters).

### 7.2.2

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ in [native-example](https://github.com/ktgram/native-example/blob/master/build.g
<details>
<summary><i>Snapshots</i></summary>

[![Snapshot version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fv229149.hosted-by-vdsina.ru%2Fsnap-ver%2Ftelegram-bot&query=%24%5B0%5D.name&logo=github&label=SNAPSHOT&link=https%3A%2F%2Fgithub.com%2Fvendelieu%3Ftab%3Dpackages%26repo_name%3Dtelegram-bot)](https://github.com/vendelieu?tab=packages&repo_name=telegram-bot)
[![Snapshot version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Frx.vendeli.eu%2Fsnap-ver%2Ftelegram-bot&query=%24%5B0%5D.name&logo=github&label=SNAPSHOT&link=https%3A%2F%2Fgithub.com%2Fvendelieu%3Ftab%3Dpackages%26repo_name%3Dtelegram-bot)](https://github.com/vendelieu?tab=packages&repo_name=telegram-bot)

To install snapshot versions, add snapshot repository,
if you're using plugin just use `addSnapshotRepo` parameter:
Expand Down
Binary file added assets/logo-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions assets/logo-styles.css

This file was deleted.

File renamed without changes
12 changes: 11 additions & 1 deletion buildSrc/src/main/kotlin/ConfiguredKotlinExt.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import org.gradle.api.Project
import org.gradle.kotlin.dsl.assign
import org.gradle.kotlin.dsl.configure
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension

private val jvmTargetVer = JvmTarget.JVM_17
private val optIns: Array<String> = arrayOf(
"-opt-in=eu.vendeli.tgbot.annotations.internal.KtGramInternal",
"-opt-in=eu.vendeli.tgbot.annotations.internal.ExperimentalFeature"
)

private fun KotlinMultiplatformExtension.configureJvm() {
jvm {
Expand All @@ -13,7 +18,7 @@ private fun KotlinMultiplatformExtension.configureJvm() {
compileTaskProvider.configure {
compilerOptions {
jvmTarget.set(jvmTargetVer)
freeCompilerArgs = listOf("-Xjsr305=strict")
freeCompilerArgs = listOf("-Xjsr305=strict", *optIns)
}
}
}
Expand All @@ -34,6 +39,11 @@ fun Project.configuredKotlin(block: KotlinMultiplatformExtension.() -> Unit) {
plugins.apply("kotlin-multiplatform")

configure<KotlinMultiplatformExtension> {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs = optIns.toList()
}

configureJvm()
js { nodejs() }
mingwX64()
Expand Down
Loading

0 comments on commit 18ea4cf

Please sign in to comment.