MCPcopy Create free account
hub / github.com/TGX-Android/Publisher / traceBuiltApk

Function traceBuiltApk

main.js:1130–1144  ·  view source on GitHub ↗
(build, task, sdkVariant, abiVariant, checksum, onDone)

Source from the content-addressed store, hash-verified

1128}
1129
1130function traceBuiltApk (build, task, sdkVariant, abiVariant, checksum, onDone) {
1131 for (let algorithm in checksum) {
1132 const hash = checksum[algorithm];
1133 const data = toShotBuildInfo(build);
1134 Object.assign(data, {
1135 sdkVariant: sdkVariant,
1136 abiVariant: abiVariant,
1137 hashAlgorithm: algorithm
1138 });
1139 ALL_PLATFORMS.forEach((platform) => {
1140 data[platform + 'Track'] = build[platform + 'Track'];
1141 })
1142 db.put('hash_' + hash, data, {valueEncoding: 'json'});
1143 }
1144}
1145
1146function findApkByHash (hash, callback) {
1147 db.get('hash_' + hash, {valueEncoding: 'json'}, callback);

Callers 1

processPrivateCommandFunction · 0.85

Calls 1

toShotBuildInfoFunction · 0.85

Tested by

no test coverage detected