Commit e96eba5
committed
fix(analytics): resolve null screen and call site in release error modals
R8 strips Kotlin metadata and source file attributes from coroutine
continuations, causing screenName() and showError() call site capture
to produce null values. Switch screen resolution to Java reflection
with a ProGuard keep rule for AppRoute names, and fall back to the
outer class name when source file info is unavailable.
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent 2275434 commit e96eba5
3 files changed
Lines changed: 12 additions & 4 deletions
File tree
- apps/flipcash/app
- libs/messaging/src/main/kotlin/com/getcode/manager
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | 301 | | |
| |||
0 commit comments