-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[path_provider] Fix93198: Added getDownloadsDirectory() for Android #4708
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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.
Thanks for the contribution!
packages/path_provider/path_provider_platform_interface/pubspec.yaml
Outdated
Show resolved
Hide resolved
Merge branch 'main' of https://github.com/flutter/packages into fix4559#
…nto fix4559 pull from origin# Please enter a commit message to explain why this merge is necessary,
@stuartmorgan I have made the changes, please have a look 🙂. |
packages/path_provider/path_provider_android/test/path_provider_android_test.dart
Show resolved
Hide resolved
packages/path_provider/path_provider_android/pigeons/messages.dart
Outdated
Show resolved
Hide resolved
packages/path_provider/path_provider_android/test/path_provider_android_test.dart
Outdated
Show resolved
Hide resolved
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.
Oops, cleared my own review state on accident.
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.
Thanks, just a couple of minor nits.
packages/path_provider/path_provider_android/lib/path_provider_android.dart
Outdated
Show resolved
Hide resolved
packages/path_provider/path_provider_android/test/path_provider_android_test.dart
Outdated
Show resolved
Hide resolved
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.
LGTM
@camsim99 for second approval
packages/path_provider/path_provider_android/test/path_provider_android_test.dart
Outdated
Show resolved
Hide resolved
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.
LGTM!
flutter/packages@64af59e...e7d812c 2023-08-30 [email protected] [path_provider] Fix93198: Added getDownloadsDirectory() for Android (flutter/packages#4708) 2023-08-30 [email protected] [in_app_purchase] Minor lint cleanup (flutter/packages#4818) 2023-08-30 [email protected] [local_auth] Update to pigeon 11 and remove enum wrappers (flutter/packages#4809) 2023-08-30 [email protected] [image_picker] Fix link in README file. (flutter/packages#4775) 2023-08-30 [email protected] [web] Use new APIs from `dart:ui_web` (flutter/packages#4168) 2023-08-30 [email protected] Roll Flutter from 6c95737 to 1fe2495 (24 revisions) (flutter/packages#4817) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@talhakhan1297 Looks like I have tested in android emulator and I was able to get the path. Is that mentioned by mistake in documentation. |
@nirmalraj2000 That was an oversight; I've filed flutter/flutter#151823 to track it. In the future, please use the issue tracker to report issues rather than commenting on old PRs. |
…roid to 2.2.0 (#7181) This PR bumps minimum required path_provider_android to 2.2.0 and updates supported paths matrix since Downloads directory was added to android implementation in version 2.2.0 Was not sure about version bump: when I ran `update-release-info` with `--version=minimal` it didn't update version. But since readme updated, I believe it is worth new version since not everyone reads readme on GitHub. Did not add or change any tests since I think that work was done in #4708 *List which issues are fixed by this PR. You must list at least one issue.* [#151823](flutter/flutter#151823)
This PR adds the Android implementation for the getDownloadsDirectory() function by making getDownloadsDirectory redirect at the Dart level to getExternalStorageDirectories with the downloads directory constant.
List which issues are fixed by this PR. You must list at least one issue.
Fixes #93198
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.