Skip to content

Commit 6a602b5

Browse files
fix: use EXPAND_FRAMES for GeneratorAdapter compatibility
GeneratorAdapter extends LocalVariablesSorter which requires expanded frames. Changed ClassReader.accept flag from 0 to EXPAND_FRAMES to resolve LocalVariablesSorter error while maintaining proper stack map frames for R8. Signed-off-by: androidacy-user <[email protected]>
1 parent 37875bd commit 6a602b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99

1010
allprojects {
1111
group = "com.github.Androidacy.LSParanoid"
12-
version = "0.9.4"
12+
version = "0.9.5"
1313

1414
plugins.withType(JavaPlugin::class.java) {
1515
extensions.configure(JavaPluginExtension::class.java) {

processor/src/main/kotlin/org/lsposed/lsparanoid/processor/Patcher.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class Patcher(
116116
it
117117
)
118118
}
119-
reader.accept(patcher, 0)
119+
reader.accept(patcher, ClassReader.EXPAND_FRAMES)
120120
jar.createFile(name, writer.toByteArray())
121121
return true
122122
}

0 commit comments

Comments
 (0)