Skip to content

Commit

Permalink
fix: add loggin message with original version
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed May 15, 2023
1 parent 28715a0 commit 5a018dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ public void notifyListeners(final String id, final JSObject res) {
CapacitorUpdater.TAG,
"init for device " + this.implementation.deviceID
);

Log.i(
CapacitorUpdater.TAG,
"version native " + this.currentVersionNative.getOriginalString()
);
this.autoDeleteFailed =
this.getConfig().getBoolean("autoDeleteFailed", true);
this.autoDeletePrevious =
Expand Down
1 change: 1 addition & 0 deletions ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
} catch {
print("\(self.implementation.TAG) Cannot get version native \(currentVersionNative)")
}
print("\(self.implementation.TAG) version native \(self.currentVersionNative.description)")
implementation.versionName = getConfig().getString("version", Bundle.main.versionName)!
autoDeleteFailed = getConfig().getBoolean("autoDeleteFailed", true)
autoDeletePrevious = getConfig().getBoolean("autoDeletePrevious", true)
Expand Down

0 comments on commit 5a018dd

Please sign in to comment.