Skip to content

Commit

Permalink
fix: add info.plist document~
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonz1987 committed Sep 2, 2024
1 parent fabee08 commit 1a9a54a
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/guide/capacitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ Since Capacitor does not support Hook, you need to manually add the `tools` tag
```

![img](/public/images/android.png)


### Modify Xcode Info.plist

Add the `NSCameraUsageDescription` key and your description to the Xcode Info.plist

![img](/public/images/xcode-1.png)
5 changes: 5 additions & 0 deletions docs/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
cordova plugin add ../cordova-plugin-barcode-scanner
```

you can customize your camera description

```shell
cordova plugin add ../cordova-plugin-barcode-scanner --variable CAMERA_USAGE_DESCRIPTION="using camera to scan barcode"
```

## Remove the Plugin

Expand Down
Binary file added docs/public/images/xcode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/public/images/xcode-2.png
Binary file not shown.
Binary file removed docs/public/images/xcode-3.png
Binary file not shown.
7 changes: 7 additions & 0 deletions docs/zh/guide/capacitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ npm install ../cordova-plugin-barcode-scanner
```

![img](/public/images/android.png)


### 修改 Xcode Info.plist

在 Info.plist 里添加 `NSCameraUsageDescription` 健值和你的描述内容

![img](/public/images/xcode-1.png)
5 changes: 5 additions & 0 deletions docs/zh/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
cordova plugin add ../cordova-plugin-barcode-scanner
```

另外可自定义相机描述

```shell
cordova plugin add ../cordova-plugin-barcode-scanner --variable CAMERA_USAGE_DESCRIPTION="using camera to scan barcode"
```

## 移除插件

Expand Down

0 comments on commit 1a9a54a

Please sign in to comment.