This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[image_picker] Change storage location for camera captures to internal cache on Android, to comply with new Google Play storage requirements. #3956
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7be1c7c
Switch to app-specific folder for writing camera captures.
BeMacized d79bac3
Merge branch 'master' into issue/80502
BeMacized df306e2
Update documentation
BeMacized 467bb5c
Update targetSdkVersion for example. Update tests.
BeMacized b2e902e
Updated changelog and pubspec version
BeMacized 84a5ad1
Update packages/image_picker/image_picker/android/src/main/AndroidMan…
BeMacized 46df81f
Update packages/image_picker/image_picker/example/android/app/src/tes…
BeMacized 15d841d
Update packages/image_picker/image_picker/android/src/main/res/xml/fl…
BeMacized e1cb24e
Implemented PR feedback
BeMacized eafa023
Add test to check if file is created in cache directory
BeMacized aa3c24d
Upgrade PR to breaking change
BeMacized a3c737c
Update packages/image_picker/image_picker/CHANGELOG.md
BeMacized bc3e4d5
Update CHANGELOG.md
BeMacized 121a7ca
Merge branch 'master' into issue/80502
BeMacized 1143108
Removed redundant robolectric.properties
BeMacized bfb2b6a
Fix merge issue
BeMacized e973353
Removed WRITE_EXTERNAL_STORAGE permission completely
BeMacized ca846ba
Remove READ_EXTERNAL_STORAGE permission checks
BeMacized fa3c577
Ran format and removed redundant unit tests
BeMacized 80906ca
Merge branch 'master' into issue/80502
BeMacized File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...es/image_picker/image_picker/android/src/main/res/xml/flutter_image_picker_file_paths.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<paths> | ||
<external-path name="external_files" path="."/> | ||
</paths> | ||
<cache-path name="cached_files" path="."/> | ||
</paths> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if we also check (in another unit test) that calling
delegate.takeImageWithCamera
writes a file to the mock directory.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair point! A test for this has been added.