fix(build): fix ios compile error

xiaoyi 2021-07-07 14:56:39 +08:00
parent 873023c7db
commit 93dc16682c
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ namespace TapTap.Login.Editor
// UnityAppController.mm 中对于 URLScheme 的处理
var unityAppControllerPath = path + "/Classes/UnityAppController.mm";
var unityAppController = new TapFileHelper(unityAppControllerPath);
unityAppController.WriteBelow(@"#import <OpenGLES/ES2/glext.h>", @"#import <TapLoginSDK/TapLoginHelper.h>");
unityAppController.WriteBelow(@"#import ""UnityAppController.h""",
@"#import <TapLoginSDK/TapLoginHelper.h>");
unityAppController.WriteBelow(
@"id sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey], annotation = options[UIApplicationOpenURLOptionsAnnotationKey];",
@"if(url){[TapLoginHelper handleTapTapOpenURL:url];}");