-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from aptabase/fix/debug-only-data
fix: events logged only as debug
- Loading branch information
Showing
8 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Foundation | ||
|
||
class AptabaseClient { | ||
private static let sdkVersion = "[email protected].10" | ||
private static let sdkVersion = "[email protected].11" | ||
// Session expires after 1 hour of inactivity | ||
private static let sessionTimeout: TimeInterval = 1 * 60 * 60 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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 | ||
} | ||
} |