C# Class BuildReportTool.Util

Datei anzeigen Open project: dreamanlan/CSharpGameFramework

Public Methods

Method Description
AttemptGetAndroidTempStagingArea ( string projectDataPath, string &path ) : bool
AttemptGetUnityFolderMonoDLLs ( bool wasWebBuild, bool wasAndroidApkBuild, string editorAppContentsPath, ApiCompatibilityLevel monoLevel, StrippingLevel codeStrippingLevel, string &path, string &higherPriorityPath ) : bool
AttemptGetWebTempStagingArea ( string projectDataPath, string &path ) : bool
BuildInfoHasContents ( BuildInfo n ) : bool
CreateSizePartFromFile ( string filename, string fileFullPath ) : BuildReportTool.SizePart
DeleteSizePartFile ( SizePart file ) : void
DoesFileBeginWith ( string filepath, string stringToCheck ) : bool
FileHasContents ( string filepath, string contents ) : bool
FindAssetFolder ( string folderToStart, string desiredFolderName ) : string
GetAllScenesUsedInProject ( ) : string[]
GetApproxSizeFromString ( string size ) : double
GetBuildManagedFolder ( string buildFilePath ) : string
GetBuildPlatformBasedOnUnityBuildTarget ( BuildTarget b ) : BuildPlatform
GetBytesReadable ( double bytes ) : string
GetFileSizeInBytes ( string filename ) : int
GetFileSizeReadable ( string filename ) : string
GetFolderSizeInBytes ( string folderPath ) : double
GetFolderSizeReadable ( string folderPath ) : string
GetObbSizeInEclipseProject ( string eclipseProjectPath ) : double
GetObbSizeInEclipseProjectReadable ( string eclipseProjectPath ) : string
GetPackageFileContents ( string filename ) : string
GetPathSizeInBytes ( string fileOrFolder ) : double
GetPathSizeReadable ( string fileOrFolder ) : string
GetProjectName ( string projectAssetsFolderPath ) : string
GetStreamingAssetsSizeReadable ( ) : string
GetTextFileContents ( string file ) : string
GetUserHomeFolder ( ) : string
HaveToUseSystemForDelete ( string file ) : bool
IsAScriptDLL ( string filename ) : bool
IsFileAUnixHiddenFile ( string filepath ) : bool
IsFileInAPath ( string filepath, string pathToCheck ) : bool
IsFileInBuildReportFolder ( string filepath ) : bool
IsFileInEditorFolder ( string filepath ) : bool
IsFileInVersionControlMetadataFolder ( string filepath ) : bool
IsFileName ( string filepath, string filenameToCheck ) : bool
IsFileOfType ( string filepath, string typeExtenstion ) : bool
IsFileOkForDeleteAllOperation ( string filepath ) : bool
IsUselessFile ( string filepath ) : bool
MyHtmlDecode ( string input ) : string
OpenInFileBrowser ( string path ) : void
OpenInFileBrowserTest ( ) : void
OpenInMacFileBrowser ( string path ) : void
OpenInWinFileBrowser ( string path ) : void
OpenSerializedBuildInfo ( string serializedBuildInfoFilePath, bool fromMainThread = true ) : BuildInfo
RemovePrefix ( string prefix, string val ) : string
RemoveSuffix ( string suffix, string val, int offset ) : string
ReplaceFileType ( string filename, string newFileType ) : string
SerializeBuildInfo ( BuildInfo buildInfo, string serializedBuildInfoFilePath ) : void
SerializeBuildInfoAtFolder ( BuildInfo buildInfo, string pathToSave ) : void
ShowFileDeleteProgress ( int deletedSoFar, int totalToDelete, string filepath, bool showRecoverableMsg ) : bool

Private Methods

Method Description
DeleteFile ( string file ) : void
DeleteFile ( string projectFolder, string file ) : void
FixXmlBuildReportFile ( string serializedBuildInfoFilePath ) : string
GetEditorLogFileInWindows ( string editorFilename = "Editor.log" ) : string
GetLastFolder ( string inFolder ) : string
GetProjectTempStagingArea ( string projectDataPath ) : string
MyFileSizeReadable ( double bytes ) : string
SaveTextFile ( string saveFilePath, string data ) : void
SystemDeleteFile ( string file ) : void
TextFileHasContents ( string filepath, string contents ) : bool

Method Details

AttemptGetAndroidTempStagingArea() public static method

public static AttemptGetAndroidTempStagingArea ( string projectDataPath, string &path ) : bool
projectDataPath string
path string
return bool

AttemptGetUnityFolderMonoDLLs() public static method

public static AttemptGetUnityFolderMonoDLLs ( bool wasWebBuild, bool wasAndroidApkBuild, string editorAppContentsPath, ApiCompatibilityLevel monoLevel, StrippingLevel codeStrippingLevel, string &path, string &higherPriorityPath ) : bool
wasWebBuild bool
wasAndroidApkBuild bool
editorAppContentsPath string
monoLevel ApiCompatibilityLevel
codeStrippingLevel StrippingLevel
path string
higherPriorityPath string
return bool

AttemptGetWebTempStagingArea() public static method

public static AttemptGetWebTempStagingArea ( string projectDataPath, string &path ) : bool
projectDataPath string
path string
return bool

BuildInfoHasContents() public static method

public static BuildInfoHasContents ( BuildInfo n ) : bool
n BuildInfo
return bool

CreateSizePartFromFile() public static method

public static CreateSizePartFromFile ( string filename, string fileFullPath ) : BuildReportTool.SizePart
filename string
fileFullPath string
return BuildReportTool.SizePart

DeleteSizePartFile() public static method

public static DeleteSizePartFile ( SizePart file ) : void
file SizePart
return void

DoesFileBeginWith() public static method

public static DoesFileBeginWith ( string filepath, string stringToCheck ) : bool
filepath string
stringToCheck string
return bool

FileHasContents() public static method

public static FileHasContents ( string filepath, string contents ) : bool
filepath string
contents string
return bool

FindAssetFolder() public static method

public static FindAssetFolder ( string folderToStart, string desiredFolderName ) : string
folderToStart string
desiredFolderName string
return string

GetAllScenesUsedInProject() public static method

public static GetAllScenesUsedInProject ( ) : string[]
return string[]

GetApproxSizeFromString() public static method

public static GetApproxSizeFromString ( string size ) : double
size string
return double

GetBuildManagedFolder() public static method

public static GetBuildManagedFolder ( string buildFilePath ) : string
buildFilePath string
return string

GetBuildPlatformBasedOnUnityBuildTarget() public static method

public static GetBuildPlatformBasedOnUnityBuildTarget ( BuildTarget b ) : BuildPlatform
b BuildTarget
return BuildPlatform

GetBytesReadable() public static method

public static GetBytesReadable ( double bytes ) : string
bytes double
return string

GetFileSizeInBytes() public static method

public static GetFileSizeInBytes ( string filename ) : int
filename string
return int

GetFileSizeReadable() public static method

public static GetFileSizeReadable ( string filename ) : string
filename string
return string

GetFolderSizeInBytes() public static method

public static GetFolderSizeInBytes ( string folderPath ) : double
folderPath string
return double

GetFolderSizeReadable() public static method

public static GetFolderSizeReadable ( string folderPath ) : string
folderPath string
return string

GetObbSizeInEclipseProject() public static method

public static GetObbSizeInEclipseProject ( string eclipseProjectPath ) : double
eclipseProjectPath string
return double

GetObbSizeInEclipseProjectReadable() public static method

public static GetObbSizeInEclipseProjectReadable ( string eclipseProjectPath ) : string
eclipseProjectPath string
return string

GetPackageFileContents() public static method

public static GetPackageFileContents ( string filename ) : string
filename string
return string

GetPathSizeInBytes() public static method

public static GetPathSizeInBytes ( string fileOrFolder ) : double
fileOrFolder string
return double

GetPathSizeReadable() public static method

public static GetPathSizeReadable ( string fileOrFolder ) : string
fileOrFolder string
return string

GetProjectName() public static method

public static GetProjectName ( string projectAssetsFolderPath ) : string
projectAssetsFolderPath string
return string

GetStreamingAssetsSizeReadable() public static method

public static GetStreamingAssetsSizeReadable ( ) : string
return string

GetTextFileContents() public static method

public static GetTextFileContents ( string file ) : string
file string
return string

GetUserHomeFolder() public static method

public static GetUserHomeFolder ( ) : string
return string

HaveToUseSystemForDelete() public static method

public static HaveToUseSystemForDelete ( string file ) : bool
file string
return bool

IsAScriptDLL() public static method

public static IsAScriptDLL ( string filename ) : bool
filename string
return bool

IsFileAUnixHiddenFile() public static method

public static IsFileAUnixHiddenFile ( string filepath ) : bool
filepath string
return bool

IsFileInAPath() public static method

public static IsFileInAPath ( string filepath, string pathToCheck ) : bool
filepath string
pathToCheck string
return bool

IsFileInBuildReportFolder() public static method

public static IsFileInBuildReportFolder ( string filepath ) : bool
filepath string
return bool

IsFileInEditorFolder() public static method

public static IsFileInEditorFolder ( string filepath ) : bool
filepath string
return bool

IsFileInVersionControlMetadataFolder() public static method

public static IsFileInVersionControlMetadataFolder ( string filepath ) : bool
filepath string
return bool

IsFileName() public static method

public static IsFileName ( string filepath, string filenameToCheck ) : bool
filepath string
filenameToCheck string
return bool

IsFileOfType() public static method

public static IsFileOfType ( string filepath, string typeExtenstion ) : bool
filepath string
typeExtenstion string
return bool

IsFileOkForDeleteAllOperation() public static method

public static IsFileOkForDeleteAllOperation ( string filepath ) : bool
filepath string
return bool

IsUselessFile() public static method

public static IsUselessFile ( string filepath ) : bool
filepath string
return bool

MyHtmlDecode() public static method

public static MyHtmlDecode ( string input ) : string
input string
return string

OpenInFileBrowser() public static method

public static OpenInFileBrowser ( string path ) : void
path string
return void

OpenInFileBrowserTest() public static method

public static OpenInFileBrowserTest ( ) : void
return void

OpenInMacFileBrowser() public static method

public static OpenInMacFileBrowser ( string path ) : void
path string
return void

OpenInWinFileBrowser() public static method

public static OpenInWinFileBrowser ( string path ) : void
path string
return void

OpenSerializedBuildInfo() public static method

public static OpenSerializedBuildInfo ( string serializedBuildInfoFilePath, bool fromMainThread = true ) : BuildInfo
serializedBuildInfoFilePath string
fromMainThread bool
return BuildInfo

RemovePrefix() public static method

public static RemovePrefix ( string prefix, string val ) : string
prefix string
val string
return string

RemoveSuffix() public static method

public static RemoveSuffix ( string suffix, string val, int offset ) : string
suffix string
val string
offset int
return string

ReplaceFileType() public static method

public static ReplaceFileType ( string filename, string newFileType ) : string
filename string
newFileType string
return string

SerializeBuildInfo() public static method

public static SerializeBuildInfo ( BuildInfo buildInfo, string serializedBuildInfoFilePath ) : void
buildInfo BuildInfo
serializedBuildInfoFilePath string
return void

SerializeBuildInfoAtFolder() public static method

public static SerializeBuildInfoAtFolder ( BuildInfo buildInfo, string pathToSave ) : void
buildInfo BuildInfo
pathToSave string
return void

ShowFileDeleteProgress() public static method

public static ShowFileDeleteProgress ( int deletedSoFar, int totalToDelete, string filepath, bool showRecoverableMsg ) : bool
deletedSoFar int
totalToDelete int
filepath string
showRecoverableMsg bool
return bool