Exemplo n.º 1
0
    private static void EditPlist(string plist)
    {
        string bundleIdentifier = "com.xuanxi.games.xcg";


        Debug.Log("on post build project EidtPlist file");
        XCPlist list = new XCPlist(plist);

        list.OverrideBundleIdentifier(bundleIdentifier);

        Dictionary <string, object> dic = new Dictionary <string, object>();

        dic.Add("NSAllowsArbitraryLoads", true);

        list.AddPlistItem("NSAppTransportSecurity", dic);

        Dictionary <string, string> whiteList = new Dictionary <string, string>();

        whiteList.Add("item0", "weixin");
        whiteList.Add("item1", "ocgame");
        list.RegisterSinglePlistItem("LSApplicationQueriesSchemes", whiteList);

        list.RegisterSinglePlistItem("NSMicrophoneUsageDescription", "support replaykit");
        list.RegisterSinglePlistItem("NSCameraUsageDescription", "suppport replaykit");
        list.RegisterSinglePlistItem("NSBluetoothPeripheralUsageDescription", "used by BETOP joystick");
        dic.Clear();

        //force full screen for solving:: ITMS-90474 iPad Multitasking support requires these orientations
        // list.RegisterSinglePlistItem("UIRequiresFullScreen", "yes");

        /**
         * try to solve ITMS-90339 this bundle is invalid.The info.plist contains 'CFBundleResourceSpecification'
         * in app bundle with force remove CODE_SIGN_RESOURCE_RULES_PATH key
         */
        //list.RegisterSinglePlistItem("CFBundleResourceSpecification", "");
    }