mirror of
https://github.com/aptabase/aptabase-swift.git
synced 2026-01-18 22:21:17 +01:00
26 lines
710 B
Swift
26 lines
710 B
Swift
import Foundation
|
|
|
|
/// Represents the tracking mode (release/debug) for the client.
|
|
@objc public class TrackingMode: NSObject {
|
|
@objc public static let asDebug = TrackingMode(rawValue: 0)
|
|
@objc public static let asRelease = TrackingMode(rawValue: 1)
|
|
@objc public static let readFromEnvironment = TrackingMode(rawValue: 2)
|
|
|
|
private let rawValue: Int
|
|
|
|
private init(rawValue: Int) {
|
|
self.rawValue = rawValue
|
|
}
|
|
|
|
@objc public var isDebug: Bool {
|
|
return self.rawValue == 0
|
|
}
|
|
|
|
@objc public var isRelease: Bool {
|
|
return self.rawValue == 1
|
|
}
|
|
|
|
@objc public var isReadFromEnvironment: Bool {
|
|
return self.rawValue == 2
|
|
}
|
|
} |