Commit 4e0d3a1
committed
fix(android-ndk): Support byteProvider-based attachments in NdkScopeObserver
Previously, attachments created with a byteProvider (e.g., via
Attachment.fromByteProvider() or fromScreenshot()) were silently
skipped because both getPathname() and getBytes() return null for
these attachments. This caused data loss for native crash reports.
This fix adds support for byteProvider-based attachments by invoking
the callable on the background thread (via executor service) to
resolve the bytes before passing them to the native scope.1 parent ab36430 commit 4e0d3a1
File tree
1 file changed
+28
-0
lines changed- sentry-android-ndk/src/main/java/io/sentry/android/ndk
1 file changed
+28
-0
lines changedLines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
173 | 201 | | |
174 | 202 | | |
175 | 203 | | |
| |||
0 commit comments