Describe the bug
getDocumentContent function "crash" the app if the document is too long.
This happens when trying to read apk files.
To Reproduce
Open the example app and try to click over an apk file card.
Expected behavior
There's some way to asynchronously read the file contents.
Screenshots
Not applicable.
Additional context
Possible solutions:
- Maybe we can refactor the current function to return a
Stream that emits a new event right after each new line rather of reading all lines then returning.
- Do the same above but for a new function.