Skip to content

Commit

Permalink
fix: build ios
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Aug 24, 2022
1 parent 1682d7e commit f7042a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ extension CustomError: LocalizedError {

@objc public class CapacitorUpdater: NSObject {

private let versionBuild = Bundle.main.releaseVersionNumber ?? ""
private let versionCode = Bundle.main.buildVersionNumber ?? ""
private let versionName = Bundle.main.versionName ?? ""
private let versionCode = Bundle.main.versionCode ?? ""
private let versionOs = ProcessInfo().operatingSystemVersion.getFullVersion()
private let documentsDir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!
private let libraryDir = FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask).first!
Expand Down Expand Up @@ -233,7 +233,7 @@ extension CustomError: LocalizedError {
"platform": "ios",
"device_id": self.deviceID,
"app_id": self.appId,
"version_build": self.versionBuild,
"version_build": self.versionName,
"version_code": self.versionCode,
"version_os": self.versionOs,
"plugin_version": self.pluginVersion,
Expand Down Expand Up @@ -395,7 +395,7 @@ extension CustomError: LocalizedError {
return true
}
if (bundleExists(id: id)) {
self.setCurrentBundle(bundle: self.getBundleDirectory(id: id))
self.setCurrentBundle(bundle: self.getBundleDirectory(id: id).path)
self.setBundleStatus(id: id, status: BundleStatus.PENDING)
sendStats(action: "set", versionName: newBundle.getVersionName())
return true
Expand Down Expand Up @@ -453,7 +453,7 @@ extension CustomError: LocalizedError {
"action": action,
"device_id": self.deviceID,
"version_name": versionName,
"version_build": self.versionBuild,
"version_build": self.versionName,
"version_code": self.versionCode,
"version_os": self.versionOs,
"plugin_version": self.pluginVersion,
Expand Down

0 comments on commit f7042a6

Please sign in to comment.