From fe11a2119e6897fe62fe4fda889ed0d1040dbfa5 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 16 May 2020 22:24:50 +0600 Subject: [PATCH] Return opts in telegram bot api --- TelegramBotAPI/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/TelegramBotAPI/build.gradle b/TelegramBotAPI/build.gradle index 583e4cf72d..ff5a6c7704 100644 --- a/TelegramBotAPI/build.gradle +++ b/TelegramBotAPI/build.gradle @@ -83,4 +83,12 @@ kotlin { } } } + + targets.all { + compilations.all { + kotlinOptions { + freeCompilerArgs += ["-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi", "-Xopt-in=kotlin.RequiresOptIn"] + } + } + } }