Skip to content

Commit 00fb9be

Browse files
authored
Merge pull request #8 from kamko/issue/7
Update Byte Buddy to 1.12.6 (fixes #7)
2 parents 4fec6bb + 682fa0c commit 00fb9be

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ configurations {
2929
}
3030

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

@@ -150,11 +150,13 @@ task distJar(type: Jar) {
150150
// Pull raw advice classes from the shadow JAR, unminified:
151151
from (zipTree(shadowJar.getArchiveFile())) {
152152
include "tech/httptoolkit/javaagent/advice/**/*"
153+
include "tech/httptoolkit/relocated/net/bytebuddy/agent/builder/**/*"
153154
}
154155

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

r8-rules.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
-dontobfuscate
2+
-dontoptimize
23
-allowaccessmodification
34
-keepattributes SourceFile, LineNumberTable, *Annotation*
45

6+
-keep class tech.httptoolkit.relocated.net.bytebuddy.agent.builder.** { *; }
7+
58
-keep class tech.httptoolkit.javaagent.** { *; }
69
-keep class tech.httptoolkit.relocated.net.bytebuddy.asm.** { *; }

0 commit comments

Comments
 (0)