Skip to content

Commit

Permalink
fix: stats ios
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Sep 29, 2022
1 parent 37ca0b5 commit 75c26ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ extension CustomError: LocalizedError {
}

func sendStats(action: String, versionName: String) {
if statsUrl == "" { return }
if self.statsUrl == "" { return }
let parameters: [String: String] = [
"platform": "ios",
"action": action,
Expand Down
4 changes: 2 additions & 2 deletions ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
}
autoDeleteFailed = getConfig().getBoolean("autoDeleteFailed", true)
autoDeletePrevious = getConfig().getBoolean("autoDeletePrevious", true)
updateUrl = getConfig().getString("updateUrl") ?? CapacitorUpdaterPlugin.updateUrlDefault
updateUrl = getConfig().getString("updateUrl", CapacitorUpdaterPlugin.updateUrlDefault)!
autoUpdate = getConfig().getBoolean("autoUpdate", true)
appReadyTimeout = getConfig().getInt("appReadyTimeout", 10000)
resetWhenUpdate = getConfig().getBoolean("resetWhenUpdate", true)
Expand All @@ -44,7 +44,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
if config?["appId"] != nil {
implementation.appId = config?["appId"] as! String
}
implementation.statsUrl = getConfig().getString("statsUrl") ?? CapacitorUpdaterPlugin.updateUrlDefault
implementation.statsUrl = getConfig().getString("statsUrl", CapacitorUpdaterPlugin.statsUrlDefault)!
if resetWhenUpdate {
self.cleanupObsoleteVersions()
}
Expand Down

0 comments on commit 75c26ef

Please sign in to comment.