MCPcopy
hub / github.com/ThatGuySam/doesitarm / submitScanInfo

Method submitScanInfo

helpers/app-files-scanner.js:323–352  ·  view source on GitHub ↗
({
        filename,
        appVersion,
        result,
        machoMeta,
        infoPlist
    })

Source from the content-addressed store, hash-verified

321 }
322
323 async submitScanInfo ({
324 filename,
325 appVersion,
326 result,
327 machoMeta,
328 infoPlist
329 }) {
330 // Each file scanned: Filename, Type(Drop or URL), File URL, Datetime, Architectures, Mach-o Meta
331
332 // console.log( 'this.testResultStore', this.testResultStore )
333
334 const responseData = await postJson( this.testResultStore, {
335 filename,
336 appVersion,
337 result,
338 machoMeta: JSON.stringify( machoMeta ),
339 infoPlist: JSON.stringify( infoPlist )
340 } )
341 .catch(function (error) {
342 console.error(error)
343
344 return {
345 supportedVersionNumber: null
346 }
347 })
348
349 return {
350 supportedVersionNumber: responseData?.supportedVersionNumber ?? null
351 }
352 }
353
354 getFinishedStatusMessage ({
355 binarySupportsNative,

Callers 2

scanFileMethod · 0.95
scanMethod · 0.95

Calls 1

postJsonFunction · 0.90

Tested by

no test coverage detected