3
3
Fork 1
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:
CranberrySoup 2024-07-03 01:31:18 +00:00 committed by GitHub
parent d17111c1c1
commit 829b8691ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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