Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 431cac9

Browse files
[camera] Update README (#4988)
1 parent 86b3621 commit 431cac9

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
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.4+17
2+
3+
* Removes obsolete information from README, and adds OS support table.
4+
15
## 0.9.4+16
26

37
* Fixes a bug resulting in a `CameraAccessException` that prevents image

packages/camera/camera/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
A Flutter plugin for iOS, Android and Web allowing access to the device cameras.
66

7-
*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)
7+
| | Android | iOS | Web |
8+
|----------------|---------|----------|------------------------|
9+
| **Support** | SDK 21+ | iOS 10+* | [See `camera_web `][1] |
810

911
## Features
1012

@@ -19,22 +21,23 @@ First, add `camera` as a [dependency in your pubspec.yaml file](https://flutter.
1921

2022
### iOS
2123

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 camera plugin compiles for any version of iOS, but its functionality
25+
requires iOS 10 or higher. If compiling for iOS 9, make sure to programmatically
26+
check the version of iOS running on the device before using any camera plugin features.
2427
The [device_info_plus](https://pub.dev/packages/device_info_plus) plugin, for example, can be used to check the iOS version.
2528

2629
Add two rows to the `ios/Runner/Info.plist`:
2730

2831
* one with the key `Privacy - Camera Usage Description` and a usage description.
2932
* and one with the key `Privacy - Microphone Usage Description` and a usage description.
3033

31-
Or in text format add the key:
34+
If editing `Info.plist` as text, add:
3235

3336
```xml
3437
<key>NSCameraUsageDescription</key>
35-
<string>Can I use the camera please?</string>
38+
<string>your usage description here</string>
3639
<key>NSMicrophoneUsageDescription</key>
37-
<string>Can I use the mic please?</string>
40+
<string>your usage description here</string>
3841
```
3942

4043
### Android
@@ -132,6 +135,4 @@ class _CameraAppState extends State<CameraApp> {
132135

133136
For a more elaborate usage example see [here](https://github.com/flutter/plugins/tree/main/packages/camera/camera/example).
134137

135-
*Note*: This plugin is still under development, and some APIs might not be available yet.
136-
[Feedback welcome](https://github.com/flutter/flutter/issues) and
137-
[Pull Requests](https://github.com/flutter/plugins/pulls) are most welcome!
138+
[1]: https://pub.dev/packages/camera_web#limitations-on-the-web-platform

packages/camera/camera/pubspec.yaml

Lines changed: 1 addition & 1 deletion
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/plugins/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.9.4+16
7+
version: 0.9.4+17
88

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

0 commit comments

Comments
 (0)