Skip to content

Commit

Permalink
fix: currentVersionNative use wrong version in IOS
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Aug 18, 2022
1 parent 1a58e65 commit 666a5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
override public func load() {
print("\(self.implementation.TAG) init for device \(self.implementation.deviceID)")
do {
currentVersionNative = try Version(Bundle.main.buildVersionNumber ?? "0.0.0")
currentVersionNative = try Version(Bundle.main.releaseVersionNumber ?? "0.0.0")
} catch {
print("\(self.implementation.TAG) Cannot get version native \(currentVersionNative)")
}
Expand Down

0 comments on commit 666a5cb

Please sign in to comment.