Example #1
0
 internal static HashGeneratorResult FromBuildHashes(BuildHashes buildHashes)
 {
     return(new HashGeneratorResult
     {
         buildHashes = buildHashes
     });
 }
Example #2
0
            // called from native Android plugin, from separate thread
            public void OnSuccess(string buildPath, string[] paths, string[] hashes, string summaryHash)
            {
                var fileHashes = new FileHash[hashes.Length];

                for (var i = 0; i < hashes.Length; i++)
                {
                    var hash = hashes[i];
                    var path = paths[i];

                    fileHashes[i] = new FileHash(path, hash);
                }

                var buildHashes = new BuildHashes(buildPath, fileHashes, summaryHash);

                parent.Complete(HashGeneratorResult.FromBuildHashes(buildHashes));
            }