Fix debug exceptions in releases (#1168)

This commit is contained in:
CranberrySoup
2024-07-03 01:42:10 +00:00
committed by GitHub
parent d17111c1c1
commit 5f64e40a7e
2 changed files with 14 additions and 4 deletions

View File

@ -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"
}
}
}
}