From c03cc00a1963dee5d47474f9c3c959e8751096d2 Mon Sep 17 00:00:00 2001 From: Mikhail Novoseltsev <51940183+Sameri11@users.noreply.github.com> Date: Tue, 30 Jul 2024 23:22:48 +0500 Subject: [PATCH] [path_provider] fix 151823: update minimum required path_provider_android 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 https://github.com/flutter/packages/pull/4708 *List which issues are fixed by this PR. You must list at least one issue.* [#151823](https://github.com/flutter/flutter/issues/151823) --- packages/path_provider/path_provider/CHANGELOG.md | 5 ++++- packages/path_provider/path_provider/README.md | 2 +- packages/path_provider/path_provider/pubspec.yaml | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/path_provider/path_provider/CHANGELOG.md b/packages/path_provider/path_provider/CHANGELOG.md index 63d58809c218..2accbe2d2b51 100644 --- a/packages/path_provider/path_provider/CHANGELOG.md +++ b/packages/path_provider/path_provider/CHANGELOG.md @@ -1,5 +1,8 @@ -## NEXT +## 2.1.4 +* Updates minimum required `path_provider_android` to 2.2.0 to ensure support for `getDownloadsDirectory()` on Android. +* Updates supported platforms and paths matrix to indicate that downloads + are supported on Android. * Updates minimum supported SDK version to Flutter 3.16/Dart 3.2. ## 2.1.3 diff --git a/packages/path_provider/path_provider/README.md b/packages/path_provider/path_provider/README.md index 5a4bfe4a6ce4..3ff47ab52eaa 100644 --- a/packages/path_provider/path_provider/README.md +++ b/packages/path_provider/path_provider/README.md @@ -35,7 +35,7 @@ Directories support by platform: | External Storage | ✔️ | ❌ | ❌ | ❌️ | ❌️ | | External Cache Directories | ✔️ | ❌ | ❌ | ❌️ | ❌️ | | External Storage Directories | ✔️ | ❌ | ❌ | ❌️ | ❌️ | -| Downloads | ❌ | ✔️ | ✔️ | ✔️ | ✔️ | +| Downloads | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ## Testing diff --git a/packages/path_provider/path_provider/pubspec.yaml b/packages/path_provider/path_provider/pubspec.yaml index c6a07a768edf..5f3241fa828d 100644 --- a/packages/path_provider/path_provider/pubspec.yaml +++ b/packages/path_provider/path_provider/pubspec.yaml @@ -2,7 +2,7 @@ name: path_provider description: Flutter plugin for getting commonly used locations on host platform file systems, such as the temp and app data directories. repository: https://github.com/flutter/packages/tree/main/packages/path_provider/path_provider issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22 -version: 2.1.3 +version: 2.1.4 environment: sdk: ^3.2.0 @@ -25,7 +25,7 @@ flutter: dependencies: flutter: sdk: flutter - path_provider_android: ^2.1.0 + path_provider_android: ^2.2.0 path_provider_foundation: ^2.3.2 path_provider_linux: ^2.2.0 path_provider_platform_interface: ^2.1.0