From b5c20ff3c3993531d042c62ab8b723a95cdc4645 Mon Sep 17 00:00:00 2001
From: lwb <q3213421wrwqr>
Date: 星期二, 23 三月 2021 15:50:14 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/snxxz_client
---
Assets/Editor/XCodeProjectMod.cs | 26 ++++++++++++++++----------
1 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/Assets/Editor/XCodeProjectMod.cs b/Assets/Editor/XCodeProjectMod.cs
index 33f3299..d72c08a 100644
--- a/Assets/Editor/XCodeProjectMod.cs
+++ b/Assets/Editor/XCodeProjectMod.cs
@@ -59,6 +59,10 @@
project.AddFrameworkToProject(fwTargetGUID, "authenticationservices.framework", true);
project.AddFrameworkToProject(fwTargetGUID, "LocalAuthentication.framework", true);
+ //appsflyer
+ project.AddFrameworkToProject(fwTargetGUID, "AdSupport.framework", true);
+ project.AddFrameworkToProject(fwTargetGUID, "iAd.framework", true);
+
// 澶勭悊 搴撴枃浠�
project.AddFileToBuild(fwTargetGUID, project.AddFile("/usr/lib/libz.tbd", "Frameworks/libz.tbd", PBXSourceTree.Sdk));
project.AddFileToBuild(fwTargetGUID, project.AddFile("/usr/lib/libsqlite3.tbd", "Frameworks/libsqlite3.tbd", PBXSourceTree.Sdk));
@@ -115,26 +119,28 @@
private static void ModifyFile(string projectPath)
{
- //淇敼UnityAppController.mm 鏂囦欢
- var _xclass = new XClass(projectPath + "/Classes/UnityAppController.mm");
+ /**淇敼UnityAppController.mm 鏂囦欢**/
+ var xclass = new XClass(projectPath + "/Classes/UnityAppController.mm");
//寮曞叆UniversalSDK
- _xclass.WriteBelow("#include \"PluginBase/AppDelegateListener.h\"", "#include \"UniversalSDK.h\"");
+ xclass.WriteBelow("#include \"PluginBase/AppDelegateListener.h\"", "#include \"UniversalSDK.h\"");
//unity浜や簰璋冪敤鐨勬柟娉�
string newCode = "\n" +
"extern \"C\" void IOSMessageHandle(const char* jsonString) {\n" +
" [GetAppController().universalSDK HandleUnityMessage:[NSString stringWithUTF8String:jsonString]];\n" +
"}";
- _xclass.WriteBelow("extern \"C\" ScreenOrientation UnityCurrentOrientation() { return GetAppController().unityView.contentOrientation; }", newCode);
+ xclass.WriteBelow("extern \"C\" ScreenOrientation UnityCurrentOrientation() { return GetAppController().unityView.contentOrientation; }", newCode);
//鍒濆鍖朥niversalSDK
newCode = "\n" +
" _universalSDK = [[UniversalSDK alloc] init];\n [_universalSDK QuickSDKInit:application didFinishLaunchingWithOptions:launchOptions];";
- _xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode);
+ xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode);
- //淇敼UnityAppController.h 鏂囦欢
- _xclass = new XClass(projectPath + "/Classes/UnityAppController.h");
- _xclass.WriteBelow("@class DisplayConnection;", "@class UniversalSDK;");
- _xclass.WriteBelow("DisplayConnection* _mainDisplay;", "UniversalSDK* _universalSDK;");
- _xclass.WriteBelow("@property (readonly, copy, nonatomic) DisplayConnection* mainDisplay;",
+
+
+ /**淇敼UnityAppController.h 鏂囦欢**/
+ xclass = new XClass(projectPath + "/Classes/UnityAppController.h");
+ xclass.WriteBelow("@class DisplayConnection;", "@class UniversalSDK;");
+ xclass.WriteBelow("DisplayConnection* _mainDisplay;", "UniversalSDK* _universalSDK;");
+ xclass.WriteBelow("@property (readonly, copy, nonatomic) DisplayConnection* mainDisplay;",
"@property (readonly, copy, nonatomic) UniversalSDK* universalSDK;");
}
--
Gitblit v1.8.0