Commit f1e4795
committed
fix(crash): Add rate limit to crash reporting
To prevent spamming the crash report endpoint, a 4-hour cooldown period has been implemented.
This is achieved by storing the timestamp of the last successful report in SharedPreferences. Subsequent crash reports will only be sent if the current time is at least 4 hours after the last one was sent.1 parent 079b04b commit f1e4795
File tree
1 file changed
+19
-0
lines changed- app/src/main/java/com/github/droidworksstudio/mlauncher
1 file changed
+19
-0
lines changedLines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
68 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
69 | 86 | | |
| 87 | + | |
70 | 88 | | |
71 | 89 | | |
72 | 90 | | |
| |||
118 | 136 | | |
119 | 137 | | |
120 | 138 | | |
| 139 | + | |
121 | 140 | | |
122 | 141 | | |
123 | 142 | | |
| |||
0 commit comments