Build with profile = "release" for Android when appropriate (#2270)

We were building Release builds with the debug profile
This commit is contained in:
Jamil
2023-10-07 14:30:32 -07:00
committed by GitHub
parent 919077058b
commit 1915080740

View File

@@ -88,6 +88,11 @@ fun copyJniShared(task: Task, buildType: String) = task.apply {
}
cargo {
if (gradle.startParameter.taskNames.any{it.toLowerCase().contains("debug")}) {
profile = "debug"
} else {
profile = "release"
}
prebuiltToolchains = true
verbose = true
module = "../"