Skip to content

Commit

Permalink
Change platform interface dependency (#3377)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeMacized committed Dec 29, 2020
1 parent 65d041f commit 72cc8e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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+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

0 comments on commit 72cc8e2

Please sign in to comment.