少年修仙传客户端基础资源
lwb
2021-04-01 82305e3ed406406f14c3c17cd3381ffe16807b5f
Merge branch 'master' of http://192.168.1.20:10010/r/snxxz_client
1个文件已修改
20 ■■■■■ 已修改文件
Assets/Editor/XCodeProjectMod.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/XCodeProjectMod.cs
@@ -109,9 +109,18 @@
        rootDict.SetString("NSMicrophoneUsageDescription", "使用麦克风权限");
        rootDict.SetString("NSPhotoLibraryAddUsageDescription", "使用相册权限,用以存储截屏的账号信息,以防忘记账号密码");
        //google login
        var urlTypes = rootDict.CreateArray("CFBundleURLTypes");
        var dic = urlTypes.AddDict();
        dic.SetString("CFBundleTypeRole", "Editor");
        dic.SetString("CFBundleURLName", "");
        var cfArray = dic.CreateArray("CFBundleURLSchemes");
        cfArray.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd");
        //facebook
        rootDict.SetString("FacebookAppID", "1749518565212194");
        rootDict.SetString("FacebookDisplayName", "镇魔诀");
        var array = nsAppTransportSecurity.CreateArray("LSApplicationQueriesSchemes");
        var array = rootDict.CreateArray("LSApplicationQueriesSchemes");
        array.AddString("fbapi");
        array.AddString("fbauth2");
@@ -135,6 +144,15 @@
                "    _universalSDK = [[UniversalSDK alloc] init];\n    [_universalSDK QuickSDKInit:application didFinishLaunchingWithOptions:launchOptions];";
        xclass.WriteBelow("[KeyboardDelegate Initialize];", newCode);
        //AF 生命周期
        xclass.WriteBelow("#import <AVFoundation/AVFoundation.h>", "#import <YYJPlatform/YYJPlatform.h>");
        xclass.WriteBelow("[self removeSnapshotViewController];", "[[YYJPlatform yyj_defaultPlatform] yyj_applicationDidBecomeActive:application];");
        xclass.WriteBelow("- (BOOL)application:(UIApplication*)app openURL:(NSURL*)url options:(NSDictionary<NSString*, id>*)options\n{",
            "[[YYJPlatform yyj_defaultPlatform] yyj_application:app openURL:url options:options];");
        xclass.WriteBelow("NSURL* url = userActivity.webpageURL;", "[[YYJPlatform yyj_defaultPlatform] yyj_application:application continueUserActivity:userActivity restorationHandler:restorationHandler];");
        xclass.WriteBelow("- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler\n{",
            "[[YYJPlatform yyj_defaultPlatform] yyj_application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:handler];");
        /**修改UnityAppController.h 文件**/