Skip to content
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
4 changes: 4 additions & 0 deletions packages/camera/camera_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.0+1

* Add `implements` to pubspec.

## 0.1.0

* Initial release
Expand Down
4 changes: 2 additions & 2 deletions packages/camera/camera_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: camera_web
description: A Flutter plugin for getting information about and controlling the camera on Web.
repository: https://github.com/flutter/plugins/tree/master/packages/camera/camera_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
version: 0.1.0
version: 0.1.0+1

# This plugin is under development and will be published
# when the first working web camera implementation is added.
Expand Down Expand Up @@ -30,4 +30,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
pedantic: ^1.11.1
pedantic: ^1.11.1
4 changes: 4 additions & 0 deletions packages/connectivity/connectivity_for_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.0+1

* Add `implements` to pubspec.

## 0.4.0

* Migrate to null-safety
Expand Down
3 changes: 2 additions & 1 deletion packages/connectivity/connectivity_for_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: connectivity_for_web
description: An implementation for the web platform of the Flutter `connectivity` plugin. This uses the NetworkInformation Web API, with a fallback to Navigator.onLine.
repository: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity_for_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+connectivity%22
version: 0.4.0
version: 0.4.0+1

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0"

flutter:
plugin:
implements: connectivity
platforms:
web:
pluginClass: ConnectivityPlugin
Expand Down
3 changes: 2 additions & 1 deletion packages/connectivity/connectivity_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT
## 0.2.1+2

* Add Swift language version to podspec.
* Fix `implements` package name in pubspec.

## 0.2.1+1

Expand Down
4 changes: 2 additions & 2 deletions packages/connectivity/connectivity_macos/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: connectivity_macos
description: macOS implementation of the connectivity plugin.
repository: https://github.com/flutter/plugins/tree/master/packages/connectivity/connectivity_macos
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+connectivity%22
version: 0.2.1+1
version: 0.2.1+2

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0"

flutter:
plugin:
implements: connectivity_platform_interface
implements: connectivity
platforms:
macos:
pluginClass: ConnectivityPlugin
Expand Down
4 changes: 4 additions & 0 deletions packages/file_selector/file_selector_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.8.1+2

* Add `implements` to pubspec.

# 0.8.1+1

- Updated installation instructions in README.
Expand Down
3 changes: 2 additions & 1 deletion packages/file_selector/file_selector_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: file_selector_web
description: Web platform implementation of file_selector
repository: https://github.com/flutter/plugins/tree/master/packages/file_selector/file_selector_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
version: 0.8.1+1
version: 0.8.1+2

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"

flutter:
plugin:
implements: file_selector
platforms:
web:
pluginClass: FileSelectorWeb
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.0+4

* Add `implements` to pubspec.

## 0.3.0+3

* Update the `README.md` usage instructions to not be tied to explicit package versions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: google_maps_flutter_web
description: Web platform implementation of google_maps_flutter
repository: https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter/google_maps_flutter_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+maps%22
version: 0.3.0+3
version: 0.3.0+4

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"

flutter:
plugin:
implements: google_maps_flutter
platforms:
web:
pluginClass: GoogleMapsPlugin
Expand Down
4 changes: 4 additions & 0 deletions packages/google_sign_in/google_sign_in_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.10.0+2

* Add `implements` to pubspec.

## 0.10.0+1

* Updated installation instructions in README.
Expand Down
3 changes: 2 additions & 1 deletion packages/google_sign_in/google_sign_in_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ description: Flutter plugin for Google Sign-In, a secure authentication system
for signing in with a Google account on Android, iOS and Web.
repository: https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
version: 0.10.0+1
version: 0.10.0+2

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"

flutter:
plugin:
implements: google_sign_in
platforms:
web:
pluginClass: GoogleSignInPlugin
Expand Down
4 changes: 4 additions & 0 deletions packages/image_picker/image_picker_for_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.3

* Add `implements` to pubspec.

## 2.1.2

* Updated installation instructions in README.
Expand Down
3 changes: 2 additions & 1 deletion packages/image_picker/image_picker_for_web/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: image_picker_for_web
description: Web platform implementation of image_picker
repository: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker_for_web
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
version: 2.1.2
version: 2.1.3

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"

flutter:
plugin:
implements: image_picker
platforms:
web:
pluginClass: ImagePickerPlugin
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.3.0

* Updated `LostDataResponse` to include a `files` property, in case more than one file was recovered.

## 2.2.0

* Added new methods that return `XFile` (from `package:cross_file`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ class MethodChannelImagePicker extends ImagePickerPlatform {

@override
Future<LostDataResponse> getLostData() async {
final Map<String, dynamic>? result =
List<XFile>? pickedFileList;

Map<String, dynamic>? result =
await _channel.invokeMapMethod<String, dynamic>('retrieve');

if (result == null) {
Expand All @@ -254,10 +256,20 @@ class MethodChannelImagePicker extends ImagePickerPlatform {

final String? path = result['path'];

final pathList = result['pathList'];
if (pathList != null) {
pickedFileList = [];
// In this case, multiRetrieve is invoked.
for (String path in pathList) {
pickedFileList.add(XFile(path));
}
}

return LostDataResponse(
file: path != null ? XFile(path) : null,
exception: exception,
type: retrieveType,
files: pickedFileList,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ abstract class ImagePickerPlatform extends PlatformInterface {
throw UnimplementedError('pickVideo() has not been implemented.');
}

/// Retrieve the lost [PickedFile] file when [pickImage] or [pickVideo] failed because the MainActivity is destroyed. (Android only)
/// Retrieves any previously picked file, that was lost due to the MainActivity being destroyed.
/// In case multiple files were lost, only the last file will be recovered. (Android only).
///
/// Image or video can be lost if the MainActivity is destroyed. And there is no guarantee that the MainActivity is always alive.
/// Call this method to retrieve the lost data and process the data according to your APP's business logic.
Expand Down Expand Up @@ -233,8 +234,7 @@ abstract class ImagePickerPlatform extends PlatformInterface {
throw UnimplementedError('getVideo() has not been implemented.');
}

/// Retrieve the lost [XFile] file when [getImage], [getMultiImage] or [getVideo] failed because the MainActivity is
/// destroyed. (Android only)
/// Retrieves any previously picked files, that were lost due to the MainActivity being destroyed. (Android only)
///
/// Image or video can be lost if the MainActivity is destroyed. And there is no guarantee that the MainActivity is
/// always alive. Call this method to retrieve the lost data and process the data according to your APP's business logic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ import 'package:image_picker_platform_interface/src/types/types.dart';
class LostDataResponse {
/// Creates an instance with the given [file], [exception], and [type]. Any of
/// the params may be null, but this is never considered to be empty.
LostDataResponse({this.file, this.exception, this.type});
LostDataResponse({
this.file,
this.exception,
this.type,
this.files,
});

/// Initializes an instance with all member params set to null and considered
/// to be empty.
LostDataResponse.empty()
: file = null,
exception = null,
type = null,
_empty = true;
_empty = true,
files = null;

/// Whether it is an empty response.
///
Expand Down Expand Up @@ -50,4 +56,11 @@ class LostDataResponse {
final RetrieveType? type;

bool _empty = false;

/// The list of files that were lost in a previous [getMultiImage] call due to MainActivity being destroyed.
///
/// When [files] is populated, [file] will refer to the last item in the [files] list.
///
/// Can be null if [exception] exists.
final List<XFile>? files;
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repository: https://github.com/flutter/plugins/tree/master/packages/image_picker
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+image_picker%22
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
version: 2.2.0
version: 2.3.0

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,22 @@ void main() {
expect(response.file!.path, '/example/path');
});

test('getLostData should successfully retrieve multiple files', () async {
picker.channel.setMockMethodCallHandler((MethodCall methodCall) async {
return <String, dynamic>{
'type': 'image',
'path': '/example/path1',
'pathList': ['/example/path0', '/example/path1'],
};
});
final LostDataResponse response = await picker.getLostData();
expect(response.type, RetrieveType.image);
expect(response.file, isNotNull);
expect(response.file!.path, '/example/path1');
expect(response.files!.first.path, '/example/path0');
expect(response.files!.length, 2);
});

test('getLostData get error response', () async {
picker.channel.setMockMethodCallHandler((MethodCall methodCall) async {
return <String, String>{
Expand Down
4 changes: 4 additions & 0 deletions packages/in_app_purchase/in_app_purchase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.8

* Fix repository link in pubspec.yaml.

## 1.0.7

* Remove references to the Android V1 embedding.
Expand Down
4 changes: 2 additions & 2 deletions packages/in_app_purchase/in_app_purchase/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: in_app_purchase
description: A Flutter plugin for in-app purchases. Exposes APIs for making in-app purchases through the App Store and Google Play.
repository: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase
repository: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/in_app_purchase
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 1.0.7
version: 1.0.8

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## NEXT
## 0.1.4+5

* Add `implements` to pubspec.
* Updated Android lint settings.

## 0.1.4+4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: in_app_purchase_android
description: An implementation for the Android platform of the Flutter `in_app_purchase` plugin. This uses the Android BillingClient APIs.
repository: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/in_app_purchase_android
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 0.1.4+4
version: 0.1.4+5

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"

flutter:
plugin:
implements: in_app_purchase
platforms:
android:
package: io.flutter.plugins.inapppurchase
Expand Down
4 changes: 4 additions & 0 deletions packages/in_app_purchase/in_app_purchase_ios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.3+3

* Add `implements` to pubspec.

# 0.1.3+2

* Removed dependency on the `test` package.
Expand Down
3 changes: 2 additions & 1 deletion packages/in_app_purchase/in_app_purchase_ios/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: in_app_purchase_ios
description: An implementation for the iOS platform of the Flutter `in_app_purchase` plugin. This uses the iOS StoreKit Framework.
repository: https://github.com/flutter/plugins/tree/master/packages/in_app_purchase/in_app_purchase_ios
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+in_app_purchase%22
version: 0.1.3+2
version: 0.1.3+3

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"

flutter:
plugin:
implements: in_app_purchase
platforms:
ios:
pluginClass: InAppPurchasePlugin
Expand Down
3 changes: 2 additions & 1 deletion packages/ios_platform_images/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT
## 0.2.0+1

* Add iOS unit test target.
* Fix repository link in pubspec.yaml.

## 0.2.0

Expand Down
4 changes: 2 additions & 2 deletions packages/ios_platform_images/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: ios_platform_images
description: A plugin to share images between Flutter and iOS in add-to-app setups.
repository: https://github.com/flutter/plugins/tree/master/packages/ios_platform_images/ios_platform_images
repository: https://github.com/flutter/plugins/tree/master/packages/ios_platform_images
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+ios_platform_images%22
version: 0.2.0
version: 0.2.0+1

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
Loading