From 35ded35aeea05a37e37ab83bc900d57848051ce7 Mon Sep 17 00:00:00 2001
From: lwb <q3213421wrwqr>
Date: 星期一, 14 十二月 2020 14:51:18 +0800
Subject: [PATCH] 9527 XLUA 新的黑名单配置
---
Assets/Editor/XCodeProjectMod.cs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Assets/Editor/XCodeProjectMod.cs b/Assets/Editor/XCodeProjectMod.cs
index 3109336..7fe6d30 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];");
}
@@ -254,14 +253,15 @@
}
s_IsAppend = true;
-
- BuildPipeline.BuildPlayer(ClientPackage.baseLevels, _buildPath, BuildTarget.iOS, BuildOptions.Il2CPP | BuildOptions.AcceptExternalModificationsToPlayer);
+ PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, ScriptingImplementation.IL2CPP);
+ BuildPipeline.BuildPlayer(ClientPackage.baseLevels, _buildPath, BuildTarget.iOS, BuildOptions.AcceptExternalModificationsToPlayer);
}
public static void BuildIOSProject_Replace()
{
s_IsAppend = false;
- BuildPipeline.BuildPlayer(ClientPackage.baseLevels, GetBuildPath(), BuildTarget.iOS, BuildOptions.Il2CPP);
+ PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, ScriptingImplementation.IL2CPP);
+ BuildPipeline.BuildPlayer(ClientPackage.baseLevels, GetBuildPath(), BuildTarget.iOS, BuildOptions.None);
}
[MenuItem("Build/ipa")]
--
Gitblit v1.8.0