Skip to content

Commit ccaac1f

Browse files
[camera] fix CameraLensType export (#9536)
Closes flutter/flutter#171433 ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent afd0434 commit ccaac1f

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 0.11.2
22

33
* Fixes overflowed toggles in the camera example.
4+
* Fixes `CameraLensType` export.
45

56
## 0.11.1
67

packages/camera/camera/lib/camera.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export 'package:camera_platform_interface/camera_platform_interface.dart'
77
CameraDescription,
88
CameraException,
99
CameraLensDirection,
10+
CameraLensType,
1011
ExposureMode,
1112
FlashMode,
1213
FocusMode,

packages/camera/camera/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Flutter plugin for controlling the camera. Supports previewing
44
Dart.
55
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
7-
version: 0.11.1
7+
version: 0.11.2
88

99
environment:
1010
sdk: ^3.6.0
@@ -23,7 +23,7 @@ flutter:
2323
dependencies:
2424
camera_android_camerax: ^0.6.13
2525
camera_avfoundation: ^0.9.18
26-
camera_platform_interface: ^2.9.0
26+
camera_platform_interface: ^2.10.0
2727
camera_web: ^0.3.3
2828
flutter:
2929
sdk: flutter
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright 2013 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// ignore_for_file: unnecessary_statements
6+
7+
import 'package:camera/camera.dart' as main_file;
8+
import 'package:flutter_test/flutter_test.dart';
9+
10+
void main() {
11+
group('camera', () {
12+
test(
13+
'ensure camera.dart exports classes from platform interface',
14+
() {
15+
main_file.CameraDescription;
16+
main_file.CameraException;
17+
main_file.CameraLensDirection;
18+
main_file.CameraLensType;
19+
main_file.ExposureMode;
20+
main_file.FlashMode;
21+
main_file.FocusMode;
22+
main_file.ImageFormatGroup;
23+
main_file.ResolutionPreset;
24+
main_file.XFile;
25+
},
26+
);
27+
});
28+
}

0 commit comments

Comments
 (0)