| | |
| | | _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()); |
| | | } |
| | |
| | | |
| | | 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); |