mhartington / cordova-config-utils

32 stars 5 forks source link

More than one NSExceptionDomains produce incorrect plist output #13

Open aliatsis opened 8 years ago

aliatsis commented 8 years ago
<platform name="ios">
  <config-file platform="ios" target="*-Info.plist" parent="NSAppTransportSecurity">
    <dict>
      <key>NSExceptionDomains</key>
      <dict>
        <key>facebook.com</key>
        <dict>
          <key>NSExceptionMinimumTLSVersion</key>
          <string>TLSv1.0</string>
          <key>NSIncludesSubdomains</key> <true/>
          <key>NSExceptionRequiresForwardSecrecy</key> <false/>
          <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
        </dict>
        <key>facebook.net</key>
        <dict>
          <key>NSExceptionMinimumTLSVersion</key>
          <string>TLSv1.0</string>
          <key>NSIncludesSubdomains</key> <true/>
          <key>NSExceptionRequiresForwardSecrecy</key> <false/>
          <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
        </dict>
      </dict>
    </dict>
  </config-file>
</platform>

produces this in the Info.plist file.

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSExceptionDomains</key>
  <dict>
    <key>facebook.com</key>
    <string>facebook.net</string>
    <key>[object Object]</key>
    <dict>
      <key>NSExceptionMinimumTLSVersion</key>
      <string>NSIncludesSubdomains</string>
      <key>NSExceptionRequiresForwardSecrecy</key>
      <string>NSThirdPartyExceptionRequiresForwardSecrecy</string>
      <key>TLSv1.0</key>
      <true/>
      <key>false</key>
      <false/>
    </dict>
  </dict>
</dict>