Skip to content

Commit

Permalink
fix: add log deviceId
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Jul 28, 2022
1 parent a511bb9 commit 57afd93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void notifyDownload(final String id, final int percent) {
this.implementation.editor = this.editor;
this.implementation.versionOs = Build.VERSION.RELEASE;
this.implementation.deviceID = Settings.Secure.getString(this.getContext().getContentResolver(), Settings.Secure.ANDROID_ID);
Log.e(CapacitorUpdater.TAG, "init for device", this.implementation.deviceID);

this.autoDeleteFailed = this.getConfig().getBoolean("autoDeleteFailed", true);
this.autoDeletePrevious = this.getConfig().getBoolean("autoDeletePrevious", true);
Expand Down
1 change: 1 addition & 0 deletions ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
private var autoDeletePrevious = false

override public func load() {
print("\(self.implementation.TAG) init for device \(self.implementation.deviceID)")
do {
currentVersionNative = try Version(Bundle.main.buildVersionNumber ?? "0.0.0")
} catch {
Expand Down

0 comments on commit 57afd93

Please sign in to comment.