少年修仙传客户端基础资源
liuxue
2021-07-27 4ec507a39521e735cef3b8c510fffc88e06c9a1f
0000 提交最新的xcodeProject,并还原文件
2个文件已修改
48 ■■■■ 已修改文件
Assets/Editor/Tool/UpdateAssetBundleName.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/XCodeProjectMod.cs 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -522,9 +522,12 @@
            var relativeDirectory = directoryName.Replace(amendRootPath, "");
            var importerPath = assetPath + relativeDirectory + Path.DirectorySeparatorChar + file.Name;
            var importer = AssetImporter.GetAtPath(importerPath);
            importer.assetBundleName = "builtin/" + relativeDirectory.ToLower();
            // EditorUtility.SetDirty(importer);
            if (file.Name != ".DS_Store")
            {
                var importer = AssetImporter.GetAtPath(importerPath);
                importer.assetBundleName = "builtin/" + relativeDirectory.ToLower();
                // EditorUtility.SetDirty(importer);
            }
        }
        DebugEx.Log("BuiltIn资源包名更新完成!");
        // AssetDatabase.SaveAssets();
Assets/Editor/XCodeProjectMod.cs
@@ -40,6 +40,8 @@
        project.AddBuildProperty(targetGUID, "GCC_GENERATE_DEBUGGING_SYMBOLS", "NO");
        //webkit
        project.AddFrameworkToProject(fwTargetGUID, "WebKit.framework", true);
        //GameKit
        project.AddFrameworkToProject(fwTargetGUID, "GameKit.framework", true);
        //bugly
        project.AddFrameworkToProject(fwTargetGUID, "SystemConfiguration.framework", true);
        project.AddFrameworkToProject(fwTargetGUID, "Security.framework", true);
@@ -58,7 +60,7 @@
        //project.AddFrameworkToProject(fwTargetGUID, "JavaScriptCore.frameWork", true);
        project.AddFrameworkToProject(fwTargetGUID, "Accelerate.framework", true);
        project.AddFrameworkToProject(fwTargetGUID, "SafariServices.framework", true);
        project.AddFrameworkToProject(fwTargetGUID, "authenticationservices.framework", true);
        project.AddFrameworkToProject(fwTargetGUID, "AuthenticationServices.framework", true);
        project.AddFrameworkToProject(fwTargetGUID, "LocalAuthentication.framework", true);
        //appsflyer
@@ -101,15 +103,17 @@
        PlistElementDict rootDict = plist.root;
        PlistElementDict nsAppTransportSecurity = rootDict.CreateDict("NSAppTransportSecurity");
        PlistElementArray nsURLTypes = rootDict.CreateArray("CFBundleURLTypes");
        nsAppTransportSecurity.SetBoolean("NSAllowsArbitraryLoads", true);
        PlistElementDict dict = nsAppTransportSecurity.CreateDict("Exception Domains");
        dict = dict.CreateDict("jpush.cn");
        dict.SetBoolean("NSIncludesSubdomains", true);
        dict.SetBoolean("NSExceptionAllowsInsecureHTTPLoads", true);
        rootDict.SetString("NSPhotoLibraryAddUsageDescription", "请您允许访问相册权限");
        rootDict.SetString("NSMicrophoneUsageDescription", "使用麦克风权限");
        rootDict.SetString("NSPhotoLibraryAddUsageDescription", "使用相册权限,用以存储截屏的账号信息,以防忘记账号密码");
        rootDict.SetString("NSUserTrackingUsageDescription", "請放心,開啟權限不會獲取您在其他站點的隱私信息,該權限僅用於標識設備並保障服務安全,以優化我們的技術服務和體驗。");
        //google login
        var urlTypes = rootDict.CreateArray("CFBundleURLTypes");
        var dic0 = urlTypes.AddDict();
@@ -122,7 +126,8 @@
        dic1.SetString("CFBundleTypeRole", "Editor");
        dic1.SetString("CFBundleURLName", "");
        var cfArray1 = dic1.CreateArray("CFBundleURLSchemes");
        cfArray1.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd");
        //cfArray1.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd");
        cfArray1.AddString("com.googleusercontent.apps.185347479213-doi46trvoviu8l04tr5qe7uvbs6oelse");
        var dic2 = urlTypes.AddDict();
        dic2.SetString("CFBundleTypeRole", "Editor");
@@ -136,6 +141,24 @@
        var array = rootDict.CreateArray("LSApplicationQueriesSchemes");
        array.AddString("fbapi");
        array.AddString("fbauth2");
        PlistElementDict dictUrl1 = nsURLTypes.AddDict();
        dictUrl1.SetString("CFBundleTypeRole", "Editor");
        dictUrl1.SetString("CFBundleURLName", "");
        var darray1 = dictUrl1.CreateArray("CFBundleURLSchemes");
        darray1.AddString("com.sanxiagame.zmjas");
        PlistElementDict dictUrl2 = nsURLTypes.AddDict();
        dictUrl2.SetString("CFBundleTypeRole", "Editor");
        dictUrl2.SetString("CFBundleURLName", "");
        var darray2 = dictUrl2.CreateArray("CFBundleURLSchemes");
        darray2.AddString("com.googleusercontent.apps.468442318367-ocoqrm0kei0gpkrnnq1ql628v4g4dbqd");
        PlistElementDict dictUrl3 = nsURLTypes.AddDict();
        dictUrl3.SetString("CFBundleTypeRole", "Editor");
        dictUrl3.SetString("CFBundleURLName", "");
        var darray3 = dictUrl3.CreateArray("CFBundleURLSchemes");
        darray3.AddString("fb1749518565212194");
        File.WriteAllText(plistPath, plist.WriteToString());
    }
@@ -158,13 +181,13 @@
        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("#import <AVFoundation/AVFoundation.h>", "#import <GMSDK/GMSDK.h>");
        xclass.WriteBelow("[self removeSnapshotViewController];", "[[SXGMSDK shareSDK] 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];");
            "[[SXGMSDK shareSDK] application:app openURL:url options:options];");
        xclass.WriteBelow("NSURL* url = userActivity.webpageURL;", "[[SXGMSDK shareSDK] 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];");
            "[[SXGMSDK shareSDK] application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:handler];");