From 06d61281168e39229e63bce5cccec640fe224efd Mon Sep 17 00:00:00 2001 From: AntsyLich <59261191+AntsyLich@users.noreply.github.com> Date: Wed, 7 Oct 2026 00:53:48 +0600 Subject: [PATCH] Let R8 shrink and optimize app code Names stay as they are, since -dontobfuscate is unchanged. Injekt reads the injected type from the generic superclass of its type tokens, so those keep their Signature attribute. --- app/proguard-rules.pro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index e3b2b24ff..e12c77d95 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -1,8 +1,8 @@ -dontobfuscate --keep,allowoptimization class eu.kanade.** --keep,allowoptimization class tachiyomi.** --keep,allowoptimization class mihon.** +# Injekt reads the injected type from the generic superclass of its type tokens +-keepattributes Signature +-keep,allowshrinking class * extends uy.kohesive.injekt.api.FullTypeReference # Keep common dependencies used in extensions -keep,allowoptimization class androidx.preference.** { public protected *; }