cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cordova-plugin-media-capture git commit: Add mandatory iOS 10 privacy description for microphone
Date Thu, 08 Sep 2016 21:51:54 GMT
Repository: cordova-plugin-media-capture
Updated Branches:
  refs/heads/master a98c11d55 -> 5a685a6d5


Add mandatory iOS 10 privacy description for microphone

 This closes #70


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/5a685a6d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/5a685a6d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/5a685a6d

Branch: refs/heads/master
Commit: 5a685a6d519b7be658bd92e11fa08631d05adc8f
Parents: a98c11d
Author: Alexey Zagarin <zagarin@gmail.com>
Authored: Thu Sep 8 22:21:44 2016 +0300
Committer: Steve Gill <stevengill97@gmail.com>
Committed: Thu Sep 8 14:51:48 2016 -0700

----------------------------------------------------------------------
 README.md  | 4 +++-
 plugin.xml | 5 +++++
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/5a685a6d/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5421c7c..6d54e45 100644
--- a/README.md
+++ b/README.md
@@ -200,9 +200,10 @@ object featuring a `CaptureError.CAPTURE_NO_MEDIA_FILES` error code.
 
 ### iOS Quirks
 
-Since iOS 10 it's mandatory to add a `NSCameraUsageDescription` and `NSPhotoLibraryUsageDescriptionentry`
in the info.plist.
+Since iOS 10 it's mandatory to add a `NSCameraUsageDescription`, `NSMicrophoneUsageDescription`
and `NSPhotoLibraryUsageDescriptionentry` in the info.plist.
 
 * `NSCameraUsageDescription` describes the reason that the app accesses the user’s camera.
+* `NSMicrophoneUsageDescription` describes the reason that the app accesses the user’s
microphone.
 * `NSPhotoLibraryUsageDescriptionentry` describes the reason the app accesses the user's
photo library.
 
 When the system prompts the user to allow access, this string is displayed as part of the
dialog box.
@@ -210,6 +211,7 @@ When the system prompts the user to allow access, this string is displayed
as pa
 To add this entry you can pass the following variables on plugin install.
 
 * `CAMERA_USAGE_DESCRIPTION` for `NSCameraUsageDescription`
+* `MICROPHONE_USAGE_DESCRIPTION` for `NSMicrophoneUsageDescription`
 * `PHOTOLIBRARY_USAGE_DESCRIPTION` for `NSPhotoLibraryUsageDescriptionentry`
 
 -

http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/5a685a6d/plugin.xml
----------------------------------------------------------------------
diff --git a/plugin.xml b/plugin.xml
index 66bf818..1ef8c3c 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -151,6 +151,11 @@ xmlns:rim="http://www.blackberry.com/ns/widgets"
             <string>$CAMERA_USAGE_DESCRIPTION</string>
         </config-file>
 
+        <preference name="MICROPHONE_USAGE_DESCRIPTION" default=" " />
+        <config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
+            <string>$MICROPHONE_USAGE_DESCRIPTION</string>
+        </config-file>
+
         <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default=" " />
         <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
             <string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string>


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


Mime
View raw message