Skip to content

Commit 431b72a

Browse files
mvanbeusekomadsonpleal
authored andcommitted
Update camera_platform_interface to 1.2.0 (flutter#3376)
1 parent bf4c9fd commit 431b72a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.3+3
2+
3+
* Updated dependency on camera_platform_interface to ^1.2.0.
4+
15
## 0.6.3+2
26

37
* Fixes crash on Android which occurs after video recording has stopped just before taking a picture.

packages/camera/camera/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: camera
22
description: A Flutter plugin for getting information about and controlling the
33
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
44
and streaming image buffers to dart.
5-
version: 0.6.3+2
5+
version: 0.6.3+3
66
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
77

88
dependencies:
99
flutter:
1010
sdk: flutter
11-
camera_platform_interface: ^1.0.4
11+
camera_platform_interface: ^1.2.0
1212

1313
dev_dependencies:
1414
path_provider: ^0.5.0

packages/camera/camera/test/camera_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ get mockAvailableCameras => [
2626

2727
get mockInitializeCamera => 13;
2828

29-
get mockOnCameraInitializedEvent => CameraInitializedEvent(13, 75, 75);
29+
get mockOnCameraInitializedEvent =>
30+
CameraInitializedEvent(13, 75, 75, ExposureMode.auto, false);
3031

3132
get mockOnCameraClosingEvent => null;
3233

@@ -641,7 +642,8 @@ class MockCameraPlatform extends Mock
641642
: Future.value(mockTakePicture);
642643

643644
@override
644-
Future<XFile> startVideoRecording(int cameraId) =>
645+
Future<XFile> startVideoRecording(int cameraId,
646+
{Duration maxVideoDuration}) =>
645647
Future.value(mockVideoRecordingXFile);
646648
}
647649

0 commit comments

Comments
 (0)