mirror of
https://github.com/recloudstream/cloudstream.git
synced 2025-05-17 19:25:55 +08:00
Fix debug exceptions in releases (#1168)
This commit is contained in:
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user