Skip to content

Commit ceb458b

Browse files
committed
R8: also forbid inlining anything in FluentLogger
The keep rule already pins the class, and with it its factory method; -neverinline says the same thing in R8's own terms, so the release build cannot lose the frame Flogger looks for even if R8's treatment of kept methods changes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJZ4CPwzPsVKKuoCecZwdq
1 parent 7052481 commit ceb458b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎app/proguard-rules.pro‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
# class keeps the method as it is.
3434
-keep class com.google.common.flogger.** { *; }
3535
-dontwarn com.google.common.flogger.**
36+
# Belt and braces for the same thing: nothing in FluentLogger may be inlined into its callers.
37+
-neverinline class com.google.common.flogger.FluentLogger { *; }
3638

3739
# Keep source file + line numbers for readable production stack traces, but
3840
# hide the original source file name from the class file.

0 commit comments

Comments
 (0)