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

Scoped storage #2521

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Scoped storage #2521

wants to merge 3 commits into from

Conversation

paulmasters
Copy link
Contributor

@paulmasters paulmasters commented Aug 10, 2020

Thanks for submitting a PR! Please read these instructions carefully:

  • Explain the motivation for making this change.
  • Provide a test plan demonstrating that the code is solid.
  • Match the code formatting of the rest of the codebase.
  • Target the master branch

Motivation (required)

What existing problem does the pull request solve?

#2455
Access to file URIs is deprecated and MediaStore.Images.ImageColumns.DATA is deprecated so will fail in Android 10.
If we remove this and simply use the contentURL directly to open a stream that should work fine

Test Plan (required)

I did not get time to make a nice test case.

A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI or updates the website. See What is a Test Plan? to learn more.

If you have added code that should be tested, add tests.

Next Steps

Sign the CLA, if you haven't already.

Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.

Make sure all tests pass on Circle CI. PRs that break tests are unlikely to be merged.

For more info, see the Contributing guide.

@wizh
Copy link
Contributor

wizh commented Aug 11, 2020

Thanks for the pull request! Could you please split the separate changes to the sample app target SDK into a different PR? Could you please also provide a test plan for your change to verify that this doesn't break loading local URIs?

@paulmasters
Copy link
Contributor Author

Separate PR for samples #2522

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@defHLT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ravirajn22
Copy link

What is the status of this commit ? react-native uses this library for image component but android 10 and above is not supported. Since there are many layers of abstraction in react-native its time consuming to debug from where the issue happens.

Request team to fix on priority basis.

@wizh
Copy link
Contributor

wizh commented Feb 22, 2021

@paulmasters Could you please provide a test plan for your change to verify that this doesn't break loading local URIs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants