Commit 756c74d
committed
feat(ios): replicate Android chunked download reporting
If a download is determined to be using [chunked transfer encoding][1] (through
[`NSURLResponse.expectedContentLength`][2] returning [`NSURLResponseUnknownLength`][3]),
replicate the behaviour in the Android native component of the plugin; reporting:
* (0,-1) for each intermediate progress event, and
* (total,total) for the final progress event
[1]: https://datatracker.ietf.org/doc/html/rfc9112#section-7.1
[2]: https://developer.apple.com/documentation/foundation/nsurlresponse/1413507-expectedcontentlength
[3]: https://developer.apple.com/documentation/foundation/nsurlresponseunknownlength1 parent b6c7f6f commit 756c74d
1 file changed
+32
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
353 | 360 | | |
354 | 361 | | |
355 | | - | |
356 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
357 | 374 | | |
358 | 375 | | |
359 | 376 | | |
360 | | - | |
361 | | - | |
362 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
363 | 381 | | |
364 | 382 | | |
365 | 383 | | |
| |||
392 | 410 | | |
393 | 411 | | |
394 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
395 | 421 | | |
396 | 422 | | |
397 | 423 | | |
| |||
0 commit comments