C# Class BuildReportTool.Util

Afficher le fichier Open project: dreamanlan/CSharpGameFramework

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static AttemptGetAndroidTempStagingArea ( string projectDataPath, string &path ) : bool
projectDataPath string
path string
Résultat bool

AttemptGetUnityFolderMonoDLLs() public static méthode

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
Résultat bool

AttemptGetWebTempStagingArea() public static méthode

public static AttemptGetWebTempStagingArea ( string projectDataPath, string &path ) : bool
projectDataPath string
path string
Résultat bool

BuildInfoHasContents() public static méthode

public static BuildInfoHasContents ( BuildInfo n ) : bool
n BuildInfo
Résultat bool

CreateSizePartFromFile() public static méthode

public static CreateSizePartFromFile ( string filename, string fileFullPath ) : BuildReportTool.SizePart
filename string
fileFullPath string
Résultat BuildReportTool.SizePart

DeleteSizePartFile() public static méthode

public static DeleteSizePartFile ( SizePart file ) : void
file SizePart
Résultat void

DoesFileBeginWith() public static méthode

public static DoesFileBeginWith ( string filepath, string stringToCheck ) : bool
filepath string
stringToCheck string
Résultat bool

FileHasContents() public static méthode

public static FileHasContents ( string filepath, string contents ) : bool
filepath string
contents string
Résultat bool

FindAssetFolder() public static méthode

public static FindAssetFolder ( string folderToStart, string desiredFolderName ) : string
folderToStart string
desiredFolderName string
Résultat string

GetAllScenesUsedInProject() public static méthode

public static GetAllScenesUsedInProject ( ) : string[]
Résultat string[]

GetApproxSizeFromString() public static méthode

public static GetApproxSizeFromString ( string size ) : double
size string
Résultat double

GetBuildManagedFolder() public static méthode

public static GetBuildManagedFolder ( string buildFilePath ) : string
buildFilePath string
Résultat string

GetBuildPlatformBasedOnUnityBuildTarget() public static méthode

public static GetBuildPlatformBasedOnUnityBuildTarget ( BuildTarget b ) : BuildPlatform
b BuildTarget
Résultat BuildPlatform

GetBytesReadable() public static méthode

public static GetBytesReadable ( double bytes ) : string
bytes double
Résultat string

GetFileSizeInBytes() public static méthode

public static GetFileSizeInBytes ( string filename ) : int
filename string
Résultat int

GetFileSizeReadable() public static méthode

public static GetFileSizeReadable ( string filename ) : string
filename string
Résultat string

GetFolderSizeInBytes() public static méthode

public static GetFolderSizeInBytes ( string folderPath ) : double
folderPath string
Résultat double

GetFolderSizeReadable() public static méthode

public static GetFolderSizeReadable ( string folderPath ) : string
folderPath string
Résultat string

GetObbSizeInEclipseProject() public static méthode

public static GetObbSizeInEclipseProject ( string eclipseProjectPath ) : double
eclipseProjectPath string
Résultat double

GetObbSizeInEclipseProjectReadable() public static méthode

public static GetObbSizeInEclipseProjectReadable ( string eclipseProjectPath ) : string
eclipseProjectPath string
Résultat string

GetPackageFileContents() public static méthode

public static GetPackageFileContents ( string filename ) : string
filename string
Résultat string

GetPathSizeInBytes() public static méthode

public static GetPathSizeInBytes ( string fileOrFolder ) : double
fileOrFolder string
Résultat double

GetPathSizeReadable() public static méthode

public static GetPathSizeReadable ( string fileOrFolder ) : string
fileOrFolder string
Résultat string

GetProjectName() public static méthode

public static GetProjectName ( string projectAssetsFolderPath ) : string
projectAssetsFolderPath string
Résultat string

GetStreamingAssetsSizeReadable() public static méthode

public static GetStreamingAssetsSizeReadable ( ) : string
Résultat string

GetTextFileContents() public static méthode

public static GetTextFileContents ( string file ) : string
file string
Résultat string

GetUserHomeFolder() public static méthode

public static GetUserHomeFolder ( ) : string
Résultat string

HaveToUseSystemForDelete() public static méthode

public static HaveToUseSystemForDelete ( string file ) : bool
file string
Résultat bool

IsAScriptDLL() public static méthode

public static IsAScriptDLL ( string filename ) : bool
filename string
Résultat bool

IsFileAUnixHiddenFile() public static méthode

public static IsFileAUnixHiddenFile ( string filepath ) : bool
filepath string
Résultat bool

IsFileInAPath() public static méthode

public static IsFileInAPath ( string filepath, string pathToCheck ) : bool
filepath string
pathToCheck string
Résultat bool

IsFileInBuildReportFolder() public static méthode

public static IsFileInBuildReportFolder ( string filepath ) : bool
filepath string
Résultat bool

IsFileInEditorFolder() public static méthode

public static IsFileInEditorFolder ( string filepath ) : bool
filepath string
Résultat bool

IsFileInVersionControlMetadataFolder() public static méthode

public static IsFileInVersionControlMetadataFolder ( string filepath ) : bool
filepath string
Résultat bool

IsFileName() public static méthode

public static IsFileName ( string filepath, string filenameToCheck ) : bool
filepath string
filenameToCheck string
Résultat bool

IsFileOfType() public static méthode

public static IsFileOfType ( string filepath, string typeExtenstion ) : bool
filepath string
typeExtenstion string
Résultat bool

IsFileOkForDeleteAllOperation() public static méthode

public static IsFileOkForDeleteAllOperation ( string filepath ) : bool
filepath string
Résultat bool

IsUselessFile() public static méthode

public static IsUselessFile ( string filepath ) : bool
filepath string
Résultat bool

MyHtmlDecode() public static méthode

public static MyHtmlDecode ( string input ) : string
input string
Résultat string

OpenInFileBrowser() public static méthode

public static OpenInFileBrowser ( string path ) : void
path string
Résultat void

OpenInFileBrowserTest() public static méthode

public static OpenInFileBrowserTest ( ) : void
Résultat void

OpenInMacFileBrowser() public static méthode

public static OpenInMacFileBrowser ( string path ) : void
path string
Résultat void

OpenInWinFileBrowser() public static méthode

public static OpenInWinFileBrowser ( string path ) : void
path string
Résultat void

OpenSerializedBuildInfo() public static méthode

public static OpenSerializedBuildInfo ( string serializedBuildInfoFilePath, bool fromMainThread = true ) : BuildInfo
serializedBuildInfoFilePath string
fromMainThread bool
Résultat BuildInfo

RemovePrefix() public static méthode

public static RemovePrefix ( string prefix, string val ) : string
prefix string
val string
Résultat string

RemoveSuffix() public static méthode

public static RemoveSuffix ( string suffix, string val, int offset ) : string
suffix string
val string
offset int
Résultat string

ReplaceFileType() public static méthode

public static ReplaceFileType ( string filename, string newFileType ) : string
filename string
newFileType string
Résultat string

SerializeBuildInfo() public static méthode

public static SerializeBuildInfo ( BuildInfo buildInfo, string serializedBuildInfoFilePath ) : void
buildInfo BuildInfo
serializedBuildInfoFilePath string
Résultat void

SerializeBuildInfoAtFolder() public static méthode

public static SerializeBuildInfoAtFolder ( BuildInfo buildInfo, string pathToSave ) : void
buildInfo BuildInfo
pathToSave string
Résultat void

ShowFileDeleteProgress() public static méthode

public static ShowFileDeleteProgress ( int deletedSoFar, int totalToDelete, string filepath, bool showRecoverableMsg ) : bool
deletedSoFar int
totalToDelete int
filepath string
showRecoverableMsg bool
Résultat bool