Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update Pigeon
  • Loading branch information
stuartmorgan-g committed Mar 16, 2023
commit 058dd70788440bdf05679e605ea55d344c76e2e6
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v9.0.5), do not edit directly.
// Autogenerated from Pigeon (v9.1.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import

Expand Down Expand Up @@ -243,15 +243,15 @@ class ImagePickerApi {
SourceSpecification arg_source,
ImageSelectionOptions arg_options,
bool arg_allowMultiple,
bool arg_useAndroidPhotoPicker) async {
bool arg_usePhotoPicker) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
'dev.flutter.pigeon.ImagePickerApi.pickImages', codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel.send(<Object?>[
arg_source,
arg_options,
arg_allowMultiple,
arg_useAndroidPhotoPicker
arg_usePhotoPicker
]) as List<Object?>?;
if (replyList == null) {
throw PlatformException(
Expand Down Expand Up @@ -282,15 +282,15 @@ class ImagePickerApi {
SourceSpecification arg_source,
VideoSelectionOptions arg_options,
bool arg_allowMultiple,
bool arg_useAndroidPhotoPicker) async {
bool arg_usePhotoPicker) async {
final BasicMessageChannel<Object?> channel = BasicMessageChannel<Object?>(
'dev.flutter.pigeon.ImagePickerApi.pickVideos', codec,
binaryMessenger: _binaryMessenger);
final List<Object?>? replyList = await channel.send(<Object?>[
arg_source,
arg_options,
arg_allowMultiple,
arg_useAndroidPhotoPicker
arg_usePhotoPicker
]) as List<Object?>?;
if (replyList == null) {
throw PlatformException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,16 @@ abstract class ImagePickerApi {
/// Elements must not be null, by convention. See
/// https://github.com/flutter/flutter/issues/97848
@async
List<String?> pickImages(
SourceSpecification source,
ImageSelectionOptions options,
bool allowMultiple,
bool useAndroidPhotoPicker);
List<String?> pickImages(SourceSpecification source,
ImageSelectionOptions options, bool allowMultiple, bool usePhotoPicker);

/// Selects video and returns their paths.
///
/// Elements must not be null, by convention. See
/// https://github.com/flutter/flutter/issues/97848
@async
List<String?> pickVideos(
SourceSpecification source,
VideoSelectionOptions options,
bool allowMultiple,
bool useAndroidPhotoPicker);
List<String?> pickVideos(SourceSpecification source,
VideoSelectionOptions options, bool allowMultiple, bool usePhotoPicker);

/// Returns results from a previous app session, if any.
CacheRetrievalResult? retrieveLostResults();
Expand Down
2 changes: 1 addition & 1 deletion packages/image_picker/image_picker_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ dev_dependencies:
flutter_test:
sdk: flutter
mockito: ^5.0.0
pigeon: ^9.0.0
pigeon: ^9.1.0
28 changes: 11 additions & 17 deletions packages/image_picker/image_picker_android/test/test_api.g.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Autogenerated from Pigeon (v9.0.5), do not edit directly.
// Autogenerated from Pigeon (v9.1.0), do not edit directly.
// See also: https://pub.dev/packages/pigeon
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import
// ignore_for_file: avoid_relative_lib_imports
Expand Down Expand Up @@ -63,21 +63,15 @@ abstract class TestHostImagePickerApi {
///
/// Elements must not be null, by convention. See
/// https://github.com/flutter/flutter/issues/97848
Future<List<String?>> pickImages(
SourceSpecification source,
ImageSelectionOptions options,
bool allowMultiple,
bool useAndroidPhotoPicker);
Future<List<String?>> pickImages(SourceSpecification source,
ImageSelectionOptions options, bool allowMultiple, bool usePhotoPicker);

/// Selects video and returns their paths.
///
/// Elements must not be null, by convention. See
/// https://github.com/flutter/flutter/issues/97848
Future<List<String?>> pickVideos(
SourceSpecification source,
VideoSelectionOptions options,
bool allowMultiple,
bool useAndroidPhotoPicker);
Future<List<String?>> pickVideos(SourceSpecification source,
VideoSelectionOptions options, bool allowMultiple, bool usePhotoPicker);

/// Returns results from a previous app session, if any.
CacheRetrievalResult? retrieveLostResults();
Expand Down Expand Up @@ -106,11 +100,11 @@ abstract class TestHostImagePickerApi {
final bool? arg_allowMultiple = (args[2] as bool?);
assert(arg_allowMultiple != null,
'Argument for dev.flutter.pigeon.ImagePickerApi.pickImages was null, expected non-null bool.');
final bool? arg_useAndroidPhotoPicker = (args[3] as bool?);
assert(arg_useAndroidPhotoPicker != null,
final bool? arg_usePhotoPicker = (args[3] as bool?);
assert(arg_usePhotoPicker != null,
'Argument for dev.flutter.pigeon.ImagePickerApi.pickImages was null, expected non-null bool.');
final List<String?> output = await api.pickImages(arg_source!,
arg_options!, arg_allowMultiple!, arg_useAndroidPhotoPicker!);
arg_options!, arg_allowMultiple!, arg_usePhotoPicker!);
return <Object?>[output];
});
}
Expand All @@ -137,11 +131,11 @@ abstract class TestHostImagePickerApi {
final bool? arg_allowMultiple = (args[2] as bool?);
assert(arg_allowMultiple != null,
'Argument for dev.flutter.pigeon.ImagePickerApi.pickVideos was null, expected non-null bool.');
final bool? arg_useAndroidPhotoPicker = (args[3] as bool?);
assert(arg_useAndroidPhotoPicker != null,
final bool? arg_usePhotoPicker = (args[3] as bool?);
assert(arg_usePhotoPicker != null,
'Argument for dev.flutter.pigeon.ImagePickerApi.pickVideos was null, expected non-null bool.');
final List<String?> output = await api.pickVideos(arg_source!,
arg_options!, arg_allowMultiple!, arg_useAndroidPhotoPicker!);
arg_options!, arg_allowMultiple!, arg_usePhotoPicker!);
return <Object?>[output];
});
}
Expand Down