diff --git a/helpers/statuses.js b/helpers/statuses.js index 4e5f1aa..d65d128 100644 --- a/helpers/statuses.js +++ b/helpers/statuses.js @@ -17,4 +17,20 @@ export function getStatusName ( status ) { throw new Error('Non status matched') } +export function getStatusOfScan ( appScan, includeVersion = true ) { + const statusName = getStatusName( appScan['Result'] ) + + if (statusName === 'native') { + return [ + '✅ Yes, Full Native Apple Silicon Support', + includeVersion ? `reported as of v${appScan['App Version']}` : '' + ].join('') + } + + + + return '🔶 App has not yet been reported to be native to Apple Silicon' +} + + export default statuses