Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions android/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ android {
versionName = version
archivesBaseName = archiveName
ndkVersion = "28.2.13676358"
consumerProguardFiles 'consumer-rules.pro'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
4 changes: 4 additions & 0 deletions android/lib/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# JNA rules - required for Vosk to work with R8/ProGuard minification
-keep class com.sun.jna.** { *; }
-keepclassmembers class * extends com.sun.jna.** { public *; }
-dontwarn java.awt.**