Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sweatyc opened this issue Feb 4, 2016 · 0 comments
Open

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

sweatyc opened this issue Feb 4, 2016 · 0 comments

Comments

@sweatyc
Copy link

sweatyc commented Feb 4, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant