Open
Description
Plugins like cordova-plugin-googleplus need this added in the Info.plist
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>REVERSED_CLIENT_ID</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$REVERSED_CLIENT_ID</string>
</array>
</dict>
</array>
</config-file>
When we detect a config-file
or edit-config
tags we output something like this:
Plugin cordova-plugin-googleplus might require you to add
<dict>
<key>CFBundleTypeRole</key>
<key>CFBundleURLName</key>
<key>CFBundleURLSchemes</key>
<string>Editor</string>
<string>REVERSED_CLIENT_ID</string>
<array>
<string>$REVERSED_CLIENT_ID</string>
</array>
</dict>
in the existing CFBundleURLTypes entry of your Info.plist to work
Note that the keys appear first and then the other fields, while it should be key-value
The problem is we use a library we use to read the plugin.xml that converts the content to JS objects, and then convert the JS objects back to XML to show what the user should add to their Info.plist, but the conversion doesn't work as expected.
Only happens when the edit-config
or config-file
tags include dictionaries