//拷贝插件 private static void CopyPlugins() { #if UNITY_IOS string srcPath = Path.Combine(_PluginsSrcPath, "iOS"); string destPath = Path.Combine(_PluginsDestPath, "iOS"); FolderUtil.CopyAndReplaceSub(srcPath, destPath); #elif UNITY_ANDROID string srcPath = Path.Combine(_PluginsSrcPath, "Android"); string destPath = Path.Combine(_PluginsDestPath, "Android"); FolderUtil.CopyAndReplaceSub(srcPath, destPath); #endif }
private static void CopyLibFiles() { foreach (var file in _LibFiles) { string filePath = Path.Combine(_PluginsSrcPath, file); if (File.Exists(filePath)) { string destFilePath = Path.Combine(_PluginsDestPath, file); if (File.Exists(destFilePath)) { File.Delete(destFilePath); } File.Copy(filePath, destFilePath); Debug.LogFormat("[Longtu]CopyLibFiles => {0} Succeed", destFilePath); } } // Notice SDK Lib foreach (var file in _LibFiles) { string filePath = Path.Combine(_NoticeSDKPluginsSrcPath, file); if (File.Exists(filePath)) { string destFilePath = Path.Combine(_PluginsDestPath, file); if (File.Exists(destFilePath)) { File.Delete(destFilePath); } File.Copy(filePath, destFilePath); Debug.LogFormat("[Longtu]CopyLibFiles => {0} Succeed", destFilePath); } } // Notice SDK res FolderUtil.CopyAndReplaceSub(_NoticeSDKPluginsResPath, _PluginsResDestPath); }