Skip to content

Commit fff50a9

Browse files
committed
refactor(app): Optimize shared settings using ProGuard
This commit adds a ProGuard rule to assume no side effects for the constructors of classes in the `app.revanced.extension.shared.settings` package. This allows R8 to potentially optimize the app by removing these constructor calls if they are deemed unused or redundant during the optimization process.
1 parent 3a81587 commit fff50a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/proguard-rules.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@
2323

2424
# If you keep the line number information, uncomment this to
2525
# hide the original source file name.
26-
#-renamesourcefileattribute SourceFile
26+
#-renamesourcefileattribute SourceFile
27+
28+
-assumenosideeffects class app.revanced.extension.shared.settings.* {
29+
public <init>(...);
30+
}

0 commit comments

Comments
 (0)