mirror of
https://github.com/VibedByKaKi/sdmaid-se.git
synced 2026-11-12 17:47:16 +01:00
The receiver-typed Any.log() overload derives its tag from the receiver's class
name via logTagViaCallSite(). Under obfuscation that name becomes the
R8-assigned one, so gplay logs would show tags like "a.b.c" and lose the
grouping that makes debug logs readable.
All 104 production call sites now pass an explicit tag. Files that had no tag
in scope get a file-level `private val TAG = logTag(...)`, matching the
existing convention. Messages and priorities are unchanged. Any.log() itself
stays, test sources keep using it.
ViewModel2/ViewModel4 had the same problem in defaultTag(): `this` in a
companion object is the companion, so the fallback tag was "Companion", not
the subclass name. It is now a fixed logTag("ViewModel"), and the seven
ViewModels that relied on the default pass their own companion TAG instead.
|
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| consumer-rules.pro | ||