少年修仙传客户端基础资源
allez
2021-05-27 e53e1b529a2f915de675fcc5aebdf2b9b46dc5e4
0000.   1.修改 xcode导出plist修改,2.build导出对.DS_Store过滤
2个文件已修改
29 ■■■■ 已修改文件
Assets/Editor/Tool/UpdateAssetBundleName.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/XCodeProjectMod.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -518,9 +518,13 @@
            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
@@ -100,6 +100,7 @@
        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");
@@ -115,6 +116,24 @@
        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());
    }