Skip to content

Adding multiple depth tags into Info.plist... #61

@sweatyc

Description

@sweatyc

Any way to add muliple depth tags into Info.plist? e.g. from Facebook:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>facebook.com</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>                
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>fbcdn.net</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>akamaihd.net</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>

I tried in XCodePostProcess.cs add:

            XCPlist list = new XCPlist (plistFullPath);

            Hashtable ht = new Hashtable {
                {"NSAppTransportSecurity", new Hashtable {
                        {"NSExceptionDomains", new Hashtable {
                                {"facebook.com", new Hashtable {
                                    {"NSIncludesSubdomains", true},
                                    {"NSThirdPartyExceptionRequiresForwardSecrecy", false}
                                    }
                                },
                                {"fbcdn.net", new Hashtable {
                                    {"NSIncludesSubdomains", true},
                                    {"NSThirdPartyExceptionRequiresForwardSecrecy", false}
                                    }
                                },
                                {"akamaihd.net", new Hashtable {
                                    {"NSIncludesSubdomains", true},
                                    {"NSThirdPartyExceptionRequiresForwardSecrecy", false}
                                    }}
                            }
                        }
                    }
                }
            };

            list.Process (ht);

But error throw seems XUPorter cannot handle tags with depth more than 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions