Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[path_provider] Allow getDownloadsPath for Windows #2849

Closed
wants to merge 35 commits into from
Closed

[path_provider] Allow getDownloadsPath for Windows #2849

wants to merge 35 commits into from

Conversation

technolion
Copy link
Contributor

Description

The path_provider_plugin for Windows is still in the FDE repository and works well but it misses the getDownloadsPath call on Windows which is already available on macOS.
I created a PR that adds the missing call in flutter-desktop-embedding: google/flutter-desktop-embedding#765
PR 765 has to land first.

This PR is about allowing the call on Windows. Code changes here are trivial, which is why I incremented the version number only on the minor.

Related Issues

flutter/flutter#41715

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
  • I updated CHANGELOG.md to add a description of the change.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@technolion
Copy link
Contributor Author

@stuartmorgan could I please ask for this to get merged? It's just a very minor change that allows using getDownloadsPath on Windows. So others can make use of this until #41715 gets fixed.

jiahaog and others added 23 commits August 26, 2020 06:28
* [battery] Fixed typo in README.md (#2944)

* [integration_test] Remove debugging statement (#2963)

Co-authored-by: Yash Johri <yashjohri1200@gmail.com>
Add README instructions for enablePendingPurchases.

If a developer attempts to access this plugin on Android without invoking enablePendingPurchases, an exception is thrown.

Related StackOverflow post:
https://stackoverflow.com/questions/60046903/flutter-in-app-purchase-enablependingpurchases-enablependingpurchases-must
…form side (#2967)

* [integration_test] Show stack trace of widget test errors on the platform side

We keep things simple for now, because this might change once we have a proper test reporter.
This is the first step in the federation of the plugin.
Co-authored-by: Kifah Meeran <23234883+MaskyS@users.noreply.github.com>
Co-authored-by: Aloïs Deniel <alois.deniel@gmail.com>
Co-authored-by: Colin Stewart <colin@owlfish.com>
* screenshot taking works

* squash commits. addressing reviewer comments. making drivercommandmanager->callback manager

* addressing reviewer comment. mostly name changes

* major rename on all files webdriveraction->webdrivercommand

* remove files. use implements

* remove timeout. add onScreenshot callback

* remove remaning timeouts. add an error message for screenshots. use an object instead of strings for status messages

* created a new issue

* remove example screenshot saving since it's failing on android. examples in integration_test package is common

* changing the version and the change log
Allow running incremental_build.sh on Windows under Git Bash. Longer
term this script should be re-written in Dart (#64025), but for now this
allows running the script on Windows bots.
* add json config

* mv to .ci
This cleans up a number of unnecessary differences in the LICENSE files:
- Removes C++ comments ("// ") from the beginnings of all the lines in license files that had them.
- Standardizes on having a blank line after the copyright line.
- Standardizes on having the final newline in the file.
- Standardizes on the indentation of the bulleted conditions.
- Standardizes on the locations of line breaks (re-wrapping the text)

This makes the license bodies--not including the copyright line--in almost all files the same, and matches the exact formatting already used in flutter/flutter and flutter/engine.

The only remaining non-copyright-line differences should now be:
- packages/image_picker/image_picker/LICENSE has an extra license
- packages/google_sign_in/extension_google_sign_in_as_googleapis_auth/LICENSE use "Google LLC" rather than "Google Inc." in the third condition.
* Implement FlutterPlugin interface on the no-op plugin
The url_launcher overrides the deprecated shouldOverrideUrlLoading(WebView view, String url) method to be backwards compatible with versions before Android API 24. This however currently displays the warning "WebViewActivity.java uses or overrides a deprecated API." when building for Android. This is causing some problems for developers who treat these warnings as errors as part of their build configuration.

This PR addresses this issue by annotating the shouldOverrideUrlLoading(WebView view, String url) method with the @SuppressWarnings("deprecation") attribute.

This PR also adds the @RequiresApi(Build.VERSION_CODES.N) annotation to the shouldOverrideUrlLoading(WebView view, WebResourceRequest request) method, which gives the Android/ Java tooling an indication this method should only by used from API 24 and higher.
Makapre and others added 8 commits September 9, 2020 13:00
…sactions from being completed (#2872)

* Fix the bug that prevent restored subscription transactions from being completed

* Update changelog

* increased version

* fixed removing transactions from transactionsSetter

* Fixed CHANGELOGS conflicts

* transactionsSetter code formating updates

* fixed formating
#3010)

Fix a typo in a test name and fix quote consistency.
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@technolion
Copy link
Contributor Author

Googlebot complained:

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors.

I simply rebased my branch with the commits from master that had been added after I created this PR initially. Can someone please explain?

@stuartmorgan-g
Copy link
Contributor

I'm not sure how exactly you did your rebasing, but your branch is in a bad state; as you can see, GitHub is showing your PR as changing 208 files.

You'll need to fix your branch and then re-push.

@technolion
Copy link
Contributor Author

Is it necessary to rebase a branch to master at all when providing a PR?

@technolion
Copy link
Contributor Author

I am closing this pull request and create a new one.

@technolion technolion closed this Sep 10, 2020
@technolion technolion deleted the pathprovider-windows branch September 10, 2020 14:11
@gaaclarke
Copy link
Member

@technolion fyi you can always use git push -f <remote> to reset a github PR to any hash you want if you want to keep the conversation of a PR but reset the code.

@technolion
Copy link
Contributor Author

The new PR can be found here: #3017

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

Successfully merging this pull request may close these issues.