少年修仙传客户端基础资源
hzr
2018-08-11 709d24f9c2070e9118ff298ff74e66fd38fae27d
Assets/Editor/XCodeProjectMod.cs
@@ -98,8 +98,8 @@
        _rootDict.SetString("NSMicrophoneUsageDescription", "使用麦克风权限");
        _rootDict.SetString("NSPhotoLibraryAddUsageDescription", "使用相册权限");
        _rootDict.SetString("YLChannelId", "00000");
        _rootDict.SetString("YLPlatformId", "00001");
        _rootDict.SetString("YLChannelId", "1000");
        _rootDict.SetString("YLPlatformId", "1000");
        File.WriteAllText(_plistPath, _plist.WriteToString());
    }
@@ -115,17 +115,14 @@
        string newCode = "\n" +
                         "extern \"C\" void IOSMessageHandle(const char* jsonString) {\n" +
                         "    [GetAppController().universalSDK MessageHandler:[NSString stringWithUTF8String:jsonString]];\n" +
                         "    [GetAppController().universalSDK HandleUnityMessage:[NSString stringWithUTF8String:jsonString]];\n" +
                         "}";
        _xclass.WriteBelow("extern \"C\" ScreenOrientation    UnityCurrentOrientation()   { return GetAppController().unityView.contentOrientation; }",
                           newCode);
        newCode = "\n" +
                   "    _universalSDK = [[UniversalSDK alloc] init];\n" +
                   "    [_universalSDK JPushInit:launchOptions];\n" +
                   "    [_universalSDK GetUniqueID];\n" +
                   "    [_universalSDK GetDeviceInfo];" +
                   "";
                   "    [_universalSDK JPushInit:launchOptions];";
        //在指定代码后面增加一大行代码
        _xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode);