Skip to content

Commit 776e8db

Browse files
fix: yt-dlp not working because of wrong proguard rules
1 parent 4f2d8fa commit 776e8db

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

android/proguard-rules.pro

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
-keepattributes Exceptions
1010
-keepattributes SourceFile,LineNumberTable
1111
-keepattributes RuntimeVisibleAnnotations
12+
-keepattributes EnclosingMethod
1213

1314
# ============ Suppress Warnings ============
1415
-dontwarn io.micrometer.context.**
@@ -59,4 +60,10 @@
5960

6061

6162
-keep class org.apache.commons.compress.** { *; }
62-
-dontwarn org.apache.commons.compress.**
63+
-dontwarn org.apache.commons.compress.**
64+
65+
# ============ Jackson TypeReference ============
66+
-keep class com.fasterxml.jackson.core.type.TypeReference { *; }
67+
-keep class * extends com.fasterxml.jackson.core.type.TypeReference { *; }
68+
-keep @com.fasterxml.jackson.annotation.JsonIgnoreProperties class ** { *; }
69+
-keep @com.fasterxml.jackson.annotation.JsonProperty class ** { *; }

0 commit comments

Comments
 (0)