Commit e5cfc9d
Change to discardOldestFileIfNeeded sorting (#2189)
* change to discardOldestFileIfNeeded sorting
* update changelog
* cached lastmodified
* linting
* Created Comparable class
* linting
* Update bugsnag-android-core/src/main/java/com/bugsnag/android/FileStore.kt
Co-authored-by: Jason <lemnik@users.noreply.github.com>
* Update bugsnag-android-core/src/main/java/com/bugsnag/android/FileStore.kt
Co-authored-by: Jason <lemnik@users.noreply.github.com>
* fixed unresolved reference
* avoid unnecessary .map { it.file}
* unresolved ref
* Update bugsnag-android-core/src/main/java/com/bugsnag/android/FileStore.kt
Co-authored-by: Jason <lemnik@users.noreply.github.com>
* chore(FileStore): moved FileWithTimestamp to inside FileStore, and inverted the `isStorageDirValid` of `discardOldestFileIfNeeded`
---------
Co-authored-by: Jason <lemnik@users.noreply.github.com>1 parent 465b827 commit e5cfc9d
2 files changed
Lines changed: 42 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
Lines changed: 40 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
| |||
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
191 | 213 | | |
0 commit comments