Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API to allow read data from a specific URI #11

Closed
4 of 5 tasks
alexrintt opened this issue Dec 2, 2021 · 8 comments
Closed
4 of 5 tasks

Add API to allow read data from a specific URI #11

alexrintt opened this issue Dec 2, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@alexrintt
Copy link
Owner

alexrintt commented Dec 2, 2021

Details

The most recent Android API's, handle the files as a database of URI's, so we can handle it by adding support for cursor queries, as required by #10, thanks @ankitparmar007.

Tasks

  • Search and add experimental APIs to allow this usecase.
  • Add support for initialUri.
  • Add copy API to allow export files.
  • Get data dir from a specific app (package id) (Not covered by this package).

Issues

Useful resources

@alexrintt alexrintt self-assigned this Dec 2, 2021
@alexrintt alexrintt added the enhancement New feature or request label Dec 2, 2021
@ankitparmar007
Copy link

@LaksCastro When You are planning for package update ?

@alexrintt
Copy link
Owner Author

When I get some free time on the weekend

@ankitparmar007
Copy link

Great news that package update will be available on this weekend :)

Also Flutter 2.8.0 • channel stable is live on • github.com/flutter/flutter.git

Make sure package is compatible with the latest version.

Huge Thanks in advance :)

@alexrintt
Copy link
Owner Author

Nice!! I did start work right now, later you'll see some updates man and maybe on sunday I'll publish the new release if everything goes fine! thanks for all

alexrintt added a commit that referenced this issue Dec 13, 2021
…mentsContract.getDocumentThumbnail` API
@alexrintt
Copy link
Owner Author

alexrintt commented Dec 13, 2021

Snapshot 13 Dec. 2021

News

  • Added support for large data sets and removed the API DocumentFile.listFiles due to low performance issue
  • Refactor of SAF API: split code into several modules to allow safe and easy refactor and new API implementations
  • DocumentFile.listFiles is now an EventChannel since we load all files lazily
  • Added support to these DocumentsContract and DocumentFile APIs:
const val GET_DOCUMENT_THUMBNAIL = "getDocumentThumbnail"
const val BUILD_DOCUMENT_URI_USING_TREE = "buildDocumentUriUsingTree"
const val BUILD_DOCUMENT_URI = "buildDocumentUri"
const val BUILD_TREE_DOCUMENT_URI = "buildTreeDocumentUri"
  • Added optional argument grantWritePermission to the openDocumentTree API

Missing:

  • Support to copy a document to another location
  • Support to initialDir of the openDocumentTree API
  • Update and improve documentation

Even not done yet, I consider a nice progress, I'll try to continue over the week, thanks

@ankitparmar007
Copy link

Definitely a nice progress ! hopefully on next weekend package will be updated with Missing APIs and version code 0.3.0 :)

@ankitparmar007
Copy link

hey @LaksCastro
Hope You are doing well :)
Btw When are you planning for next package update ?

@alexrintt
Copy link
Owner Author

All features mentioned in this issue are available on v0.4.x except by the last one that doesn't make sense for this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants