Skip to content

Commit 2230051

Browse files
committed
Work around r8 miscompilation in UpdaterThread exceptions
r8 is deduplicating the exception classes. While they have identical source code class definitions, they are semantically different. Signed-off-by: Andrew Gunnerson <[email protected]>
1 parent 96f94af commit 2230051

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/proguard-rules.pro

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@
5050
-keep class com.chiller3.custota.standalone.* {
5151
*;
5252
}
53+
54+
# These exception classes have no source-level differences, but are absolutely different
55+
# semantically. r8 wants to deduplicate them, which is just wrong.
56+
-keep class com.chiller3.custota.updater.UpdaterThread$*Exception {
57+
*;
58+
}

0 commit comments

Comments
 (0)