Skip to content

Commit

Permalink
fix: appInstallationDate and appOpeningCount are now static functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fto-k committed Oct 3, 2023
1 parent bed8529 commit 755764a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KovaleeSDK/Amplitude/KovaleeAnalytics+Amplitude.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ extension Kovalee {
/// Returns the date when the app has been installed in the current device
///
/// - Returns: date of the app installation in current device
public func appInstallationDate() -> Date? {
public static func appInstallationDate() -> Date? {
Self.shared.kovaleeManager?.installationDate()
}

/// Returns the number of times the app has been opened
///
/// - Returns: number of times app has beeen opened
public func appOpeningCount() -> Int {
public static func appOpeningCount() -> Int {
Self.shared.kovaleeManager?.appOpeningCount() ?? 0
}

Expand Down

0 comments on commit 755764a

Please sign in to comment.