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 30a61d3 commit 2892f9dCopy full SHA for 2892f9d
1 file changed
examples/whisper.android.java/app/build.gradle
@@ -25,6 +25,14 @@ android {
25
}
26
27
buildTypes {
28
+ debug {
29
+ // When the AGP build type is Debug, the native (NDK/CMake) build does not run
30
+ // compiler optimizations by default, causing a critical performance issue.
31
+ // We force CMAKE_BUILD_TYPE to Release here so native code stays optimized
32
+ // even in Debug AGP builds.
33
+ arguments += "-DCMAKE_BUILD_TYPE=Release"
34
+ }
35
+
36
release {
37
signingConfig signingConfigs.debug
38
minifyEnabled true
0 commit comments