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

[camera] Revert platform interface dependency to lower version #3377

Merged
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+4

* Revert previous dependency update: Changed dependency on camera_platform_interface to >=1.04 <1.1.0.

## 0.6.3+3

* Updated dependency on camera_platform_interface to ^1.2.0.
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+3
version: 0.6.3+4
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
flutter:
sdk: flutter
camera_platform_interface: ^1.2.0
camera_platform_interface: ">=1.0.4 <1.1.0"

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

get mockInitializeCamera => 13;

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

get mockOnCameraClosingEvent => null;

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

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

Expand Down