From 36d627a9cf25cb8a2bbe1e65c43e0d8488a9a6f5 Mon Sep 17 00:00:00 2001 From: Sam Green Date: Mon, 4 Mar 2019 18:01:02 -0800 Subject: [PATCH] Remove microphone from export options and distribution plist --- misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist | 2 -- platform/iphone/export/export.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist b/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist index 1c68c723857..b7cd94e3d55 100644 --- a/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist +++ b/misc/dist/ios_xcode/godot_ios/godot_ios-Info.plist @@ -34,8 +34,6 @@ NSCameraUsageDescription $camera_usage_description - NSMicrophoneUsageDescription - $microphone_usage_description NSPhotoLibraryUsageDescription $photolibrary_usage_description UIRequiresFullScreen diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index c45931fdfd7..67034388b9c 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -266,7 +266,6 @@ void EditorExportPlatformIOS::get_export_options(List *r_options) r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "capabilities/push_notifications"), false)); r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "privacy/camera_usage_description"), "Godot would like to use your camera")); - r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "privacy/microphone_usage_description"), "Godot would like to use your microphone")); r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "privacy/photolibrary_usage_description"), "Godot would like to use your photos")); r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "orientation/portrait"), true)); @@ -396,9 +395,6 @@ void EditorExportPlatformIOS::_fix_config_file(const Ref &p_ } else if (lines[i].find("$camera_usage_description") != -1) { String description = p_preset->get("privacy/camera_usage_description"); strnew += lines[i].replace("$camera_usage_description", description) + "\n"; - } else if (lines[i].find("$microphone_usage_description") != -1) { - String description = p_preset->get("privacy/microphone_usage_description"); - strnew += lines[i].replace("$microphone_usage_description", description) + "\n"; } else if (lines[i].find("$photolibrary_usage_description") != -1) { String description = p_preset->get("privacy/photolibrary_usage_description"); strnew += lines[i].replace("$photolibrary_usage_description", description) + "\n";