Skip to content

Commit 5d3b8c0

Browse files
committed
kee[: taglib signatures in proguard-rules.pro #57
1 parent 066ec15 commit 5d3b8c0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

repository/proguard-rules.pro

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@
1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
22+
23+
# TagLibMetadata is instantiated directly from JNI (native C++ code) by calling
24+
# its constructor via reflection-like JNI lookup. R8 has no way to detect this
25+
# usage during shrinking, so without this rule it renames or removes the class
26+
# and its constructor, causing a NoSuchMethodError at runtime in release builds.
27+
-keep class app.simple.felicity.repository.metadata.TagLibMetadata { *; }
28+

0 commit comments

Comments
 (0)