Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Update camera_platform_interface to 1.2.0 (#3376)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom authored Dec 29, 2020
1 parent 1c00905 commit 65d041f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.3+3

* Updated dependency on camera_platform_interface to ^1.2.0.

## 0.6.3+2

* Fixes crash on Android which occurs after video recording has stopped just before taking a picture.
Expand Down
4 changes: 2 additions & 2 deletions packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: camera
description: A Flutter plugin for getting information about and controlling the
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
and streaming image buffers to dart.
version: 0.6.3+2
version: 0.6.3+3
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
flutter:
sdk: flutter
camera_platform_interface: ^1.0.4
camera_platform_interface: ^1.2.0

dev_dependencies:
path_provider: ^0.5.0
Expand Down
6 changes: 4 additions & 2 deletions packages/camera/camera/test/camera_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ get mockAvailableCameras => [

get mockInitializeCamera => 13;

get mockOnCameraInitializedEvent => CameraInitializedEvent(13, 75, 75);
get mockOnCameraInitializedEvent =>
CameraInitializedEvent(13, 75, 75, ExposureMode.auto, false);

get mockOnCameraClosingEvent => null;

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

@override
Future<XFile> startVideoRecording(int cameraId) =>
Future<XFile> startVideoRecording(int cameraId,
{Duration maxVideoDuration}) =>
Future.value(mockVideoRecordingXFile);
}

Expand Down

0 comments on commit 65d041f

Please sign in to comment.