feat(*): Bootstrap remove unuse interface , remove native library , iOS compilation script migration to login
parent
000a60775c
commit
873023c7db
|
@ -1,3 +1,4 @@
|
||||||
|
using System.IO;
|
||||||
using TapTap.Common.Editor;
|
using TapTap.Common.Editor;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEditor.Callbacks;
|
using UnityEditor.Callbacks;
|
||||||
|
@ -12,13 +13,26 @@ namespace TapTap.Login.Editor
|
||||||
{
|
{
|
||||||
if (buildTarget != BuildTarget.iOS) return;
|
if (buildTarget != BuildTarget.iOS) return;
|
||||||
|
|
||||||
|
var parentFolder = Directory.GetParent(Application.dataPath).FullName;
|
||||||
|
|
||||||
|
var plistFile = TapFileHelper.RecursionFilterFile(parentFolder + "/Assets/Plugins/", "TDS-Info.plist");
|
||||||
|
|
||||||
|
if (!plistFile.Exists)
|
||||||
|
{
|
||||||
|
Debug.LogError("TapLogin Can't find TDS-Info.plist in Project/Assets/Plugins/!");
|
||||||
|
}
|
||||||
|
|
||||||
|
TapCommonCompile.HandlerPlist(path, plistFile.FullName);
|
||||||
|
|
||||||
|
// UnityAppController.mm 中对于 URLScheme 的处理
|
||||||
var unityAppControllerPath = path + "/Classes/UnityAppController.mm";
|
var unityAppControllerPath = path + "/Classes/UnityAppController.mm";
|
||||||
var unityAppController = new TapFileHelper(unityAppControllerPath);
|
var unityAppController = new TapFileHelper(unityAppControllerPath);
|
||||||
unityAppController.WriteBelow(@"#import <OpenGLES/ES2/glext.h>", @"#import <TapLoginSDK/TapLoginHelper.h>");
|
unityAppController.WriteBelow(@"#import <OpenGLES/ES2/glext.h>", @"#import <TapLoginSDK/TapLoginHelper.h>");
|
||||||
unityAppController.WriteBelow(
|
unityAppController.WriteBelow(
|
||||||
@"id sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey], annotation = options[UIApplicationOpenURLOptionsAnnotationKey];",
|
@"id sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey], annotation = options[UIApplicationOpenURLOptionsAnnotationKey];",
|
||||||
@"if(url){[TapLoginHelper handleTapTapOpenURL:url];}");
|
@"if(url){[TapLoginHelper handleTapTapOpenURL:url];}");
|
||||||
Debug.Log("TapLogin Change AppControler File!");
|
|
||||||
|
Debug.Log("TapLogin Change AppController File!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue