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 0ae02cd commit 30a61d3Copy full SHA for 30a61d3
1 file changed
examples/whisper.android/app/build.gradle
@@ -22,12 +22,21 @@ android {
22
}
23
24
buildTypes {
25
+ debug {
26
+ // When the AGP build type is Debug, the native (NDK/CMake) build does not run
27
+ // compiler optimizations by default, causing a critical performance issue.
28
+ // We force CMAKE_BUILD_TYPE to Release here so native code stays optimized
29
+ // even in Debug AGP builds.
30
+ arguments "-DCMAKE_BUILD_TYPE=Release"
31
+ }
32
+
33
release {
34
signingConfig signingConfigs.debug
35
minifyEnabled true
36
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
37
38
39
40
compileOptions {
41
sourceCompatibility JavaVersion.VERSION_17
42
targetCompatibility JavaVersion.VERSION_17
0 commit comments