CutBox.app

Coverage Report

Created: 2024-03-12 03:40

.../Source/App/Services/VersionService.swift
Line
Count
Source (jump to first uncovered line)
1
//
2
//  VersionService.swift
3
//  CutBox
4
//
5
//  Created by Jason Milkins on 3/4/18.
6
//  Copyright © 2018-2023 ocodo. All rights reserved.
7
//
8
9
import Cocoa
10
11
enum VersionService {
12
    static var bundle = Bundle.main
13
14
29
    static var version: String {
15
29
        if let version = bundle.infoDictionary?["CFBundleShortVersionString"],
16
29
            let buildNumber = bundle.infoDictionary?["CFBundleVersion"] {
17
29
            return "version: \(version) (\(buildNumber))"
18
29
        }
19
0
        return "ERROR: Cannot get version"
20
29
    }
21
}