Skip to content

Commit bc6dd91

Browse files
jmagmanamantoux
authored andcommitted
[camera] Remove iOS 9 availability check around ultra high capture sessions (flutter#4362)
1 parent f47c108 commit bc6dd91

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

packages/camera/camera/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.3+1
2+
3+
* Remove iOS 9 availability check around ultra high capture sessions.
4+
15
## 0.9.3
26

37
* Update minimum Flutter SDK to 2.5 and iOS deployment target to 9.0.

packages/camera/camera/ios/Classes/CameraPlugin.m

+4-6
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,10 @@ - (void)setCaptureSessionPreset:(ResolutionPreset)resolutionPreset {
532532
switch (resolutionPreset) {
533533
case max:
534534
case ultraHigh:
535-
if (@available(iOS 9.0, *)) {
536-
if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset3840x2160]) {
537-
_captureSession.sessionPreset = AVCaptureSessionPreset3840x2160;
538-
_previewSize = CGSizeMake(3840, 2160);
539-
break;
540-
}
535+
if ([_captureSession canSetSessionPreset:AVCaptureSessionPreset3840x2160]) {
536+
_captureSession.sessionPreset = AVCaptureSessionPreset3840x2160;
537+
_previewSize = CGSizeMake(3840, 2160);
538+
break;
541539
}
542540
if ([_captureSession canSetSessionPreset:AVCaptureSessionPresetHigh]) {
543541
_captureSession.sessionPreset = AVCaptureSessionPresetHigh;

packages/camera/camera/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Flutter plugin for getting information about and controlling the
44
and streaming image buffers to dart.
55
repository: https://github.com/flutter/plugins/tree/master/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.9.3
7+
version: 0.9.3+1
88

99
environment:
1010
sdk: ">=2.14.0 <3.0.0"

0 commit comments

Comments
 (0)