// --------------------------------------------------------------- // Android build post-processing // --------------------------------------------------------------- private List <BuildHashes> GetAndroidBuildHashes(BuildReport report, FileFilter[] fileFilters, SHA1Wrapper sha1) { var result = new List <BuildHashes>(); foreach (var reportFile in report.files) { var path = reportFile.path; var extension = Path.GetExtension(path); if (!string.IsNullOrEmpty(extension)) { extension = extension.ToLower(CultureInfo.InvariantCulture); } if (extension == ".apk" || extension == ".aab") { var hash = GetAndroidArchiveHashes(path, fileFilters, sha1); result.Add(hash); } } if (result.Count == 0) { Debug.LogWarning(EditorTools.ConstructError("Couldn't find compiled APK or AAB build.\n" + "This is fine if you use Export Project feature. In other case:")); } return(result); }
// --------------------------------------------------------------- // Standalone Windows build post-processing // --------------------------------------------------------------- private List <BuildHashes> GetStandaloneWindowsBuildHashes(BuildReport report, FileFilter[] fileFilters, SHA1Wrapper sha1) { var result = new List <BuildHashes>(); var folder = Path.GetDirectoryName(report.summary.outputPath); if (folder == null) { Debug.LogError(EditorTools.ConstructError("Could not found build folder for this file: " + report.summary.outputPath)); return(result); } var buildHashes = StandaloneWindowsWorker.GetBuildHashes(folder, fileFilters, sha1); if (buildHashes == null) { return(result); } result.Add(buildHashes); return(result); }