mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Update build.gradle.kts
This commit is contained in:
parent
d17111c1c1
commit
829b8691ad
1 changed files with 6 additions and 1 deletions
|
@ -38,6 +38,11 @@ buildkonfig {
|
|||
|
||||
defaultConfigs {
|
||||
val isDebug = kotlin.runCatching { extra.get("isDebug") }.getOrNull() == true
|
||||
if (isDebug) {
|
||||
logger.quiet("Compiling library with debug flag")
|
||||
} else {
|
||||
logger.quiet("Compiling library with release flag")
|
||||
}
|
||||
buildConfigField(FieldSpec.Type.BOOLEAN, "DEBUG", isDebug.toString())
|
||||
}
|
||||
}
|
||||
|
@ -65,4 +70,4 @@ publishing {
|
|||
groupId = "com.lagradost.api"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue