Skip to content

Commit 1f472be

Browse files
authored
[camera] Bump minimum Flutter version and iOS deployment target (flutter#4327)
1 parent 3fd82b9 commit 1f472be

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

packages/camera/camera/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.9.3
2+
3+
* Update minimum Flutter SDK to 2.5 and iOS deployment target to 9.0.
4+
15
## 0.9.2+2
26

37
* Ensure that setting the exposure offset returns the new offset value on Android.

packages/camera/camera/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A Flutter plugin for iOS and Android allowing access to the device cameras.
66

77
*Note*: This plugin is still under development, and some APIs might not be available yet. We are working on a refactor which can be followed here: [issue](https://github.com/flutter/flutter/issues/31225)
88

9-
## Features:
9+
## Features
1010

1111
* Display live camera preview in a widget.
1212
* Snapshots can be captured and saved to a file.
@@ -19,7 +19,9 @@ First, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.
1919

2020
### iOS
2121

22-
iOS 10.0 of higher is needed to use the camera plugin. If compiling for any version lower than 10.0 make sure to check the iOS version before using the camera plugin. For example, using the [device_info_plus](https://pub.dev/packages/device_info_plus) plugin.
22+
The camera plugin functionality works on iOS 10.0 or higher. If compiling for any version lower than 10.0,
23+
make sure to programmatically check the version of iOS running on the device before using any camera plugin features.
24+
The [device_info_plus](https://pub.dev/packages/device_info_plus) plugin, for example, can be used to check the iOS version.
2325

2426
Add two rows to the `ios/Runner/Info.plist`:
2527

packages/camera/camera/example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
<string>arm64</string>
2626
</array>
2727
<key>MinimumOSVersion</key>
28-
<string>8.0</string>
28+
<string>9.0</string>
2929
</dict>
3030
</plist>

packages/camera/camera/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@
504504
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
505505
GCC_WARN_UNUSED_FUNCTION = YES;
506506
GCC_WARN_UNUSED_VARIABLE = YES;
507-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
507+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
508508
MTL_ENABLE_DEBUG_INFO = YES;
509509
ONLY_ACTIVE_ARCH = YES;
510510
SDKROOT = iphoneos;
@@ -554,7 +554,7 @@
554554
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
555555
GCC_WARN_UNUSED_FUNCTION = YES;
556556
GCC_WARN_UNUSED_VARIABLE = YES;
557-
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
557+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
558558
MTL_ENABLE_DEBUG_INFO = NO;
559559
SDKROOT = iphoneos;
560560
TARGETED_DEVICE_FAMILY = "1,2";

packages/camera/camera/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ description: Demonstrates how to use the camera plugin.
33
publish_to: none
44

55
environment:
6-
sdk: ">=2.12.0 <3.0.0"
7-
flutter: ">=1.22.0"
6+
sdk: ">=2.14.0 <3.0.0"
7+
flutter: ">=2.5.0"
88

99
dependencies:
1010
camera:

packages/camera/camera/ios/camera.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ A Flutter plugin to use the camera from your Flutter app.
1717
s.public_header_files = 'Classes/**/*.h'
1818
s.dependency 'Flutter'
1919

20-
s.platform = :ios, '8.0'
20+
s.platform = :ios, '9.0'
2121
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
2222
end

packages/camera/camera/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ 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.2+2
7+
version: 0.9.3
88

99
environment:
10-
sdk: ">=2.12.0 <3.0.0"
11-
flutter: ">=2.0.0"
10+
sdk: ">=2.14.0 <3.0.0"
11+
flutter: ">=2.5.0"
1212

1313
flutter:
1414
plugin:

0 commit comments

Comments
 (0)