Globals.swift
TLDR
This file contains a class called Globals
with some static properties and methods related to the application's version and opening a URL.
Classes
Globals
This class contains static properties and methods related to the application's version and opening a URL.
Methods
None
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import Foundation
import Cocoa
class Globals {
static let ProductVersion = 70000
static let WhatsNewVersion = 70000
static var currentWhatsNewVersion: Int {
get { return UserDefaults.standard.integer(forKey: "whatsNewVersion") }
set { UserDefaults.standard.setValue(newValue, forKey: "whatsNewVersion") }
}
static func openGetCloudServerUrl() {
let url = URL(string: "https://mattermost.com/sign-up/?utm_source=focalboard&utm_campaign=focalboardapp")!
NSWorkspace.shared.open(url)
}
}