Skip to content

Commit

Permalink
Change platform interface dependency (flutter#3377)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeMacized authored and Minyewoo committed Jan 12, 2021
1 parent 6f5109c commit 74fd685
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 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
3 changes: 2 additions & 1 deletion packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ description: A Flutter plugin for getting information about and controlling the



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



#TODO(BeMacized): Replace with reference to pub.dev version once updated platform interface has been published.
camera_platform_interface:
git:
Expand Down
5 changes: 3 additions & 2 deletions packages/camera/camera/test/camera_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ get mockAvailableCameras => [
get mockInitializeCamera => 13;




get mockOnCameraInitializedEvent => CameraInitializedEvent(
13,
75,
Expand Down Expand Up @@ -1041,8 +1043,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 74fd685

Please sign in to comment.