blob: 07e48aa02e35d9a3a40f79250ca1fadad0f1facb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
//
// ApplicationConfiguration.swift
// MullvadVPN
//
// Created by pronebird on 05/06/2019.
// Copyright © 2019 Mullvad VPN AB. All rights reserved.
//
import Foundation
import struct Network.IPv4Address
enum ApplicationConfiguration {
/// Shared container security group identifier.
static var securityGroupIdentifier: String {
return Bundle.main.object(forInfoDictionaryKey: "ApplicationSecurityGroupIdentifier") as! String
}
/// Container URL for security group.
static var containerURL: URL {
return FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: securityGroupIdentifier)!
}
/// Returns URL for log file associated with application target and located within shared container.
static func logFileURL(for target: ApplicationTarget) -> URL {
return containerURL.appendingPathComponent("\(target.bundleIdentifier).log", isDirectory: false)
}
/// Privacy policy URL.
static let privacyPolicyURL = URL(string: "https://mullvad.net/help/privacy-policy/")!
/// FAQ & Guides URL.
static let faqAndGuidesURL = URL(string: "https://mullvad.net/help/tag/mullvad-app/")!
/// Maximum number of devices per account.
static let maxAllowedDevices = 5
}
|