From a7198c67f02a296e3df323d9edbb409a07728714 Mon Sep 17 00:00:00 2001 From: client_Hale <339726288@qq.com> Date: 星期三, 10 十月 2018 21:59:52 +0800 Subject: [PATCH] Fixed iosBuild逻辑修改 --- Assets/Editor/XCodeProjectMod.cs | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Assets/Editor/XCodeProjectMod.cs b/Assets/Editor/XCodeProjectMod.cs index 3109336..05c1f74 100644 --- a/Assets/Editor/XCodeProjectMod.cs +++ b/Assets/Editor/XCodeProjectMod.cs @@ -125,9 +125,9 @@ //鍦ㄦ寚瀹氫唬鐮佸悗闈㈠鍔犱竴琛屼唬鐮� _xclass.WriteBelow("#include \"PluginBase/AppDelegateListener.h\"", "#include \"UniversalSDK.h\"\n#include \"JPushService.h\"\n"); - if(_isMr) + if (_isMr) { - _xclass.WriteBelow("#include \"PluginBase/AppDelegateListener.h\"","#include \"IAPManager.h\"\n"); + _xclass.WriteBelow("#include \"PluginBase/AppDelegateListener.h\"", "#include \"IAPManager.h\"\n"); } string newCode = "\n" + @@ -138,21 +138,20 @@ newCode); newCode = "\n" + - " [[IAPManager shared] startManager];\n" + " _universalSDK = [[UniversalSDK alloc] init];\n" + " [_universalSDK JPushInit:launchOptions];"; //鍦ㄦ寚瀹氫唬鐮佸悗闈㈠鍔犱竴澶ц浠g爜 _xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode); - - if(_isMr) + + if (_isMr) { _xclass.WriteBelow("[KeyboardDelegate Initialize];", " [[IAPManager shared] startManager];\n"); } _xclass.WriteBelow("UnitySendDeviceToken(deviceToken);", " [JPUSHService registerDeviceToken:deviceToken];"); - if(_isMr) + if (_isMr) { _xclass.WriteBelow("SensorsCleanup();", " [[IAPManager shared] stopManager];"); } -- Gitblit v1.8.0