shubham-x06
shubham-x06
**Describe the bug** `DataProvider.data(from:to:)` (`Model/Utilities/DataStream.swift`) returns `Element?` without throwing, and `DataStreamIterator.next()` returns `await dataProvider.data(from:to:)` directly. When a provider fails to read a chunk and returns `nil` (for example, `ZimContentProvider` when...
**Describe the bug** In [`Model/StripeKiwix.swift`](https://github.com/kiwix/kiwix-apple/blob/main/Model/StripeKiwix.swift#L131), `SelectedPaymentAmount.init(from:emailAddress:deviceName:)` converts the `Double` donation amount to minor currency units (cents) by truncating toward zero: ```swift amount = Int(selectedAmount.value * 100.0) ``` Meanwhile, [`Model/Payment.swift`](https://github.com/kiwix/kiwix-apple/blob/main/Model/Payment.swift#L293) constructs...
### Describe the bug In `DownloadService.restartHeartbeatIfNeeded()`, the method iterates through `downloadTasks` received from `session.getTasksWithCompletionHandler`: ```swift for task in downloadTasks { guard let taskDescription = task.taskDescription, let zimFileID = UUID(uuidString: taskDescription)...