1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-28 20:37:48 +00:00

now for extensions api system environment will be checked too

This commit is contained in:
InsanusMokrassar 2020-02-17 11:49:48 +06:00
parent 51fc33960a
commit 51dac40e45

View File

@ -37,7 +37,7 @@ kotlin {
commonMain {
dependencies {
implementation kotlin('stdlib')
if (project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") {
if ((project.hasProperty('RELEASE_MODE') && project.property('RELEASE_MODE') == "true") || System.getenv('RELEASE_MODE') == "true") {
api "${project.group}:TelegramBotAPI:$library_version"
} else {
implementation project(":TelegramBotAPI")