Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Apr 17, 2023
1 parent f638ef2 commit 326bf04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
let sessionKey = call.getString("sessionKey", "")
let checksum = call.getString("checksum", "")
let url = URL(string: urlString)
print("\(self.implementation.TAG) Downloading \(url ?? "")")
print("\(self.implementation.TAG) Downloading \(String(describing: url))")
DispatchQueue.global(qos: .background).async {
do {
let next = try self.implementation.download(url: url!, version: version, sessionKey: sessionKey)
Expand All @@ -138,7 +138,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
self.notifyListeners("updateAvailable", data: ["bundle": next.toJSON()])
call.resolve(next.toJSON())
} catch {
print("\(self.implementation.TAG) Failed to download from: \(url ?? "") \(error.localizedDescription)")
print("\(self.implementation.TAG) Failed to download from: \(String(describing: url)) \(error.localizedDescription)")
self.notifyListeners("downloadFailed", data: ["version": version])
let current: BundleInfo = self.implementation.getCurrentBundle()
self.implementation.sendStats(action: "download_fail", versionName: current.getVersionName())
Expand Down

0 comments on commit 326bf04

Please sign in to comment.