build: remove ProGuard rules for libraries no longer used
- Commit
c0bdda811f190b87e6e67de8651b55733c053635- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-19 03:43 UTC (17 days ago)
- Parents
01048a8
Audited all three proguard-rules.pro files (the root file applies to every app via common-conventions-app; findfamily and youpipe carry app-specific files). Three rule groups target libraries that are no longer dependencies and are removed: - Stockfish keeps/dontwarn: chess replaced the Stockfish library with the in-house Maia engine; no stockfish artifact or code remains. - com.google.re2j dontwarn: no module depends on re2j. - logback-classic/javax.servlet dontwarns: logback arrived only transitively via KeePassJava2-dom, which passwords replaced with the Rust keepass crate. Everything else verified still live: protobuf-lite and gRPC/okhttp (appstore Accrescent, communicate), JGit (code), the JNI keep set (NativeHttpBridge, OfflineRouter, EuiccNative), Room migration keeps, Glance reflective-instantiation keeps, and youpipe media3 / NewPipe extractor keeps. No behavior change; dead rules only.
Diff
proguard-rules.pro
diff --git a/proguard-rules.pro b/proguard-rules.proindex 9d65e82f09..0e4069d7a0 100644--- a/proguard-rules.pro+++ b/proguard-rules.pro@@ -1,4 +1,3 @@--dontwarn com.google.re2j.** -dontwarn java.beans.** -dontobfuscate @@ -58,18 +57,6 @@ public static byte[] transmitApdu(byte[]); } -# Stockfish (com.github.vayun-mathur:Stockfish-Library, used by :games:chess) โ the-# native libstockfish.so calls back into Kotlin via JNI. nativeSetOutputCallback looks-# up Stockfish$OutputCallback.onOutput(String) by name via GetMethodID, and the lambda-# passed to Stockfish.init { } is compiled to a Stockfish$init$1 OutputCallback SAM.-# R8 optimization (horizontal class merging) reroutes that SAM into an unrelated class,-# so the JNI lookup fails with "NoSuchMethodError: no non-static method-# Lkotlin/time/Duration$Companion;.onOutput(Ljava/lang/String;)V". Keep the whole-# Stockfish API + callback interface so the JNI callback resolves.--keep class com.vayunmathur.stockfish.** { *; }--keep interface com.vayunmathur.stockfish.** { *; }--dontwarn com.vayunmathur.stockfish.**- # gRPC + okhttp + protobuf-lite (:appstore Accrescent source). grpc-okhttp is the first # okhttp in the repo. grpc looks up its transport/name-resolver providers via reflection and # META-INF/services; okhttp/okio and grpc reference optional compile-time deps (Conscrypp,@@ -88,13 +75,6 @@ # Accrescent's generated protobuf-lite messages (app.accrescent.appstore.v1, com.android.bundle) # are covered by the GeneratedMessageLite keep above; grpc service descriptors are under io.grpc. -# logback-classic (transitive via KeePassJava2-dom, used by :passwords) is a-# server-side SLF4J backend that references the Servlet API. javax.servlet.*-# doesn't exist on Android, so R8 flags the dangling reference. logback's-# servlet integration is never used on Android; suppress the missing refs.--dontwarn javax.servlet.**--dontwarn ch.qos.logback.classic.servlet.**- # JGit (org.eclipse.jgit, used by :code) is a desktop/server Java library. It references JVM # APIs absent on Android โ JMX (java.lang.management / javax.management), GSS-API/Kerberos # (org.ietf.jgss), java.lang.ProcessHandle, and the SLF4J static binder โ only on code paths