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