Skip to content

Commit 6f5109c

Browse files
mvanbeusekomMinyewoo
authored andcommitted
Update camera_platform_interface to 1.2.0 (flutter#3376)
1 parent d97ffab commit 6f5109c

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ description: A Flutter plugin for getting information about and controlling the
66

77

88

9-
version: 0.6.3+2
9+
version: 0.6.3+3
1010
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera
1111
dependencies:
1212
flutter:
1313
sdk: flutter
1414

15+
1516
#TODO(BeMacized): Replace with reference to pub.dev version once updated platform interface has been published.
1617
camera_platform_interface:
1718
git:

packages/camera/camera/test/camera_test.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ get mockAvailableCameras => [
2727

2828
get mockInitializeCamera => 13;
2929

30+
3031
get mockOnCameraInitializedEvent => CameraInitializedEvent(
3132
13,
3233
75,
@@ -580,7 +581,7 @@ void main() {
580581
verify(CameraPlatform.instance
581582
.setFlashMode(cameraController.cameraId, FlashMode.always))
582583
.called(1);
583-
});
584+
});
584585

585586
test('setFlashMode() throws $CameraException on $PlatformException',
586587
() async {
@@ -1040,7 +1041,8 @@ class MockCameraPlatform extends Mock
10401041
: Future.value(mockTakePicture);
10411042

10421043
@override
1043-
Future<XFile> startVideoRecording(int cameraId) =>
1044+
Future<XFile> startVideoRecording(int cameraId,
1045+
{Duration maxVideoDuration}) =>
10441046
Future.value(mockVideoRecordingXFile);
10451047
}
10461048

0 commit comments

Comments
 (0)