Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/path_provider/path_provider_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.11

* Temporarily reverts the platform channel name change from 2.0.10 in order to
restore compatibility with Flutter versions earlier than 2.8.

## 2.0.10

* Switches to a package-internal implementation of the platform interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public void getApplicationSupportDirectory(@NonNull Result result) {
public PathProviderPlugin() {}

private void setup(BinaryMessenger messenger, Context context) {
String channelName = "plugins.flutter.io/path_provider_android";
String channelName = "plugins.flutter.io/path_provider";
// TODO(gaaclarke): Remove reflection guard when https://github.com/flutter/engine/pull/29147
// becomes available on the stable branch.
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PathProviderAndroid extends PathProviderPlatform {
/// The method channel used to interact with the native platform.
@visibleForTesting
MethodChannel methodChannel =
const MethodChannel('plugins.flutter.io/path_provider_android');
const MethodChannel('plugins.flutter.io/path_provider');

/// Registers this class as the default instance of [PathProviderPlatform].
static void registerWith() {
Expand Down
2 changes: 1 addition & 1 deletion packages/path_provider/path_provider_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: path_provider_android
description: Android implementation of the path_provider plugin.
repository: https://github.com/flutter/plugins/tree/master/packages/path_provider/path_provider_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+path_provider%22
version: 2.0.10
version: 2.0.11

environment:
sdk: ">=2.14.0 <3.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ void main() {
log.clear();
});

// TODO(stuartmorgan): Change this to a test that it uses a different name,
// to avoid potential confusion, once the SDK is changed to 2.8+. See
// https://github.com/flutter/plugins/pull/4617#discussion_r774673962
test('channel name is compatible with shared method channel', () async {
expect(
pathProvider.methodChannel.name, 'plugins.flutter.io/path_provider');
});

test('getTemporaryPath', () async {
final String? path = await pathProvider.getTemporaryPath();
expect(
Expand Down