Skip to content

Commit 81b6520

Browse files
ADFA-4632: Exclude auto-value processor jar from app runtime classpath (#1503)
* ADFA-4255: Remove dead tooltip layout and fix WebServer package declaration Deletes layout_tooltip.xml (the original 3-tier prototype layout, unused since the WebView-based popup replaced it). Aligns WebServer.kt's package declaration with its directory (com.itsaky.androidide.localWebServer) and updates the two imports in MainActivity.kt to match. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ADFA-4632: Exclude auto-value processor jar from app runtime classpath com.google.auto.value:auto-value is an annotation processor fat jar that shades ASM, JavaPoet, Guava, and EscapeVelocity under the autovalue.shaded.* prefix. It was leaking onto the app's runtime classpath (via the google-java-format composite build module's annotationProcessor config) and surviving R8 intact due to the -dontshrink rule, adding ~367KB and 1,475 dead classes to the DEX. Each module that needs it runs it at compile time via its own annotationProcessor/kapt configuration; the app module itself has no @autovalue usages and does not need the processor at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 92ba9fb commit 81b6520

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎app/build.gradle.kts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ configurations.matching { it.name.contains("AndroidTest") }.configureEach {
179179

180180
configurations.configureEach {
181181
exclude(group = "org.jetbrains.kotlin", module = "kotlin-android-extensions-runtime")
182+
// auto-value is an annotation processor fat jar (shaded with ASM, JavaPoet, Guava, etc.)
183+
// and must not appear on the runtime classpath. Each module runs it via annotationProcessor/kapt
184+
// during its own compilation; the app module doesn't need it at runtime.
185+
exclude(group = "com.google.auto.value", module = "auto-value")
182186
}
183187

184188
dependencies {

0 commit comments

Comments
 (0)