You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by jc...@apache.org on 2017/10/21 15:28:00 UTC

cordova-plugin-camera git commit: CB-13332 (iOS): document NSPhotoLibraryAddUsageDescription

Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master 9f480b10c -> 51d665a7a


CB-13332 (iOS): document NSPhotoLibraryAddUsageDescription

 This closes #296


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/51d665a7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/51d665a7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/51d665a7

Branch: refs/heads/master
Commit: 51d665a7a1cfcab1a0e1a4803a53369f665e6c99
Parents: 9f480b1
Author: Julio César <jc...@gmail.com>
Authored: Sat Oct 21 17:00:13 2017 +0200
Committer: Julio César <jc...@gmail.com>
Committed: Sat Oct 21 17:27:52 2017 +0200

----------------------------------------------------------------------
 README.md            | 13 ++++++++++---
 jsdoc2md/TEMPLATE.md | 13 ++++++++++---
 2 files changed, 20 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/51d665a7/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index c1053c1..27bf6f5 100644
--- a/README.md
+++ b/README.md
@@ -80,9 +80,10 @@ Since iOS 10 it's mandatory to provide an usage description in the `info.plist`
 
 This plugins requires the following usage descriptions:
 
-- `NSCameraUsageDescription` describes the reason that the app accesses the user's camera.
-- `NSPhotoLibraryUsageDescription` describes the reason the app accesses the user's photo library. 
-- `NSLocationWhenInUseUsageDescription` describes the reason the app accesses the user's location. (Set it if you have `CameraUsesGeolocation` preference set to `true`)
+- `NSCameraUsageDescription` specifies the reason for your app to access the device's camera.
+- `NSPhotoLibraryUsageDescription` specifies the reason for your app to access the user's photo library.
+- `NSLocationWhenInUseUsageDescription` specifies the reason for your app to access the user's location information while your app is in use. (Set it if you have `CameraUsesGeolocation` preference set to `true`)
+- `NSPhotoLibraryAddUsageDescription` specifies the reason for your app to get write-only access to the user's photo library
 
 To add these entries into the `info.plist`, you can use the `edit-config` tag in the `config.xml` like this:
 
@@ -104,6 +105,12 @@ To add these entries into the `info.plist`, you can use the `edit-config` tag in
 </edit-config>
 ```
 
+```
+<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
+    <string>need to photo library access to save pictures there</string>
+</edit-config>
+```
+
 ---
 
 # API Reference <a name="reference"></a>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/51d665a7/jsdoc2md/TEMPLATE.md
----------------------------------------------------------------------
diff --git a/jsdoc2md/TEMPLATE.md b/jsdoc2md/TEMPLATE.md
index ea30282..d2e6b22 100644
--- a/jsdoc2md/TEMPLATE.md
+++ b/jsdoc2md/TEMPLATE.md
@@ -22,9 +22,10 @@ Since iOS 10 it's mandatory to provide an usage description in the `info.plist`
 
 This plugins requires the following usage descriptions:
 
-- `NSCameraUsageDescription` describes the reason that the app accesses the user's camera.
-- `NSPhotoLibraryUsageDescription` describes the reason the app accesses the user's photo library. 
-- `NSLocationWhenInUseUsageDescription` describes the reason the app accesses the user's location. (Set it if you have `CameraUsesGeolocation` preference set to `true`)
+- `NSCameraUsageDescription` specifies the reason for your app to access the device's camera.
+- `NSPhotoLibraryUsageDescription` specifies the reason for your app to access the user's photo library.
+- `NSLocationWhenInUseUsageDescription` specifies the reason for your app to access the user's location information while your app is in use. (Set it if you have `CameraUsesGeolocation` preference set to `true`)
+- `NSPhotoLibraryAddUsageDescription` specifies the reason for your app to get write-only access to the user's photo library
 
 To add these entries into the `info.plist`, you can use the `edit-config` tag in the `config.xml` like this:
 
@@ -46,6 +47,12 @@ To add these entries into the `info.plist`, you can use the `edit-config` tag in
 </edit-config>
 ```
 
+```
+<edit-config target="NSPhotoLibraryAddUsageDescription" file="*-Info.plist" mode="merge">
+    <string>need to photo library access to save pictures there</string>
+</edit-config>
+```
+
 ---
 
 # API Reference <a name="reference"></a>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org