We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c0ea8a commit d61e755Copy full SHA for d61e755
1 file changed
examples/whisper.android.java/app/build.gradle
@@ -25,6 +25,18 @@ android {
25
}
26
27
buildTypes {
28
+ debug {
29
+ externalNativeBuild {
30
+ cmake {
31
+ // When the AGP build type is Debug, the native (NDK/CMake) build does not run
32
+ // compiler optimizations by default, causing a critical performance issue.
33
+ // We force CMAKE_BUILD_TYPE to Release here so native code stays optimized
34
+ // even in Debug AGP builds.
35
+ arguments "-DCMAKE_BUILD_TYPE=Release"
36
+ }
37
38
39
+
40
release {
41
signingConfig signingConfigs.debug
42
minifyEnabled true
0 commit comments