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

[camera] Update camera_platform_interface dependency to 1.2.0 #3376

Merged
merged 1 commit into from
Dec 29, 2020
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/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