Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ configurations {
}

dependencies {
implementation group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.11.2'
implementation group: 'net.bytebuddy', name: 'byte-buddy-dep', version: '1.12.6'
// byte buddy contains references to jna classes and without them the r8Jar step fails
compileOnly group: 'net.java.dev.jna', name: 'jna', version: '5.8.0'

Expand Down Expand Up @@ -143,11 +143,13 @@ task distJar(type: Jar) {
// Pull raw advice classes from the shadow JAR, unminified:
from (zipTree(shadowJar.getArchiveFile())) {
include "tech/httptoolkit/javaagent/advice/**/*"
include "tech/httptoolkit/relocated/net/bytebuddy/agent/builder/**/*"
}

// Pull other source & bundled dependencies in their minified form, from R8:
from (zipTree(r8Jar.outputs.files[0])) {
exclude "tech/httptoolkit/javaagent/advice/**/*"
exclude "tech/httptoolkit/relocated/net/bytebuddy/agent/builder/**/*"
}
}

Expand Down
3 changes: 3 additions & 0 deletions r8-rules.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
-dontobfuscate
-dontoptimize
-allowaccessmodification
-keepattributes SourceFile, LineNumberTable, *Annotation*

-keep class tech.httptoolkit.relocated.net.bytebuddy.agent.builder.** { *; }

-keep class tech.httptoolkit.javaagent.** { *; }
-keep class tech.httptoolkit.relocated.net.bytebuddy.asm.** { *; }