From a790aa802d75b165318587fb039e5e1e89672ac2 Mon Sep 17 00:00:00 2001 From: Trudu Laurent Date: Mon, 7 Nov 2022 12:50:06 +0100 Subject: [PATCH] Log when identifiers are already cached --- DeviceIdentifiersWrapper/build.gradle | 4 ++-- .../java/com/zebra/deviceidentifierswrapper/DIHelper.java | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/DeviceIdentifiersWrapper/build.gradle b/DeviceIdentifiersWrapper/build.gradle index b17ff18..f6c0991 100644 --- a/DeviceIdentifiersWrapper/build.gradle +++ b/DeviceIdentifiersWrapper/build.gradle @@ -8,8 +8,8 @@ android { defaultConfig { minSdkVersion 19 targetSdkVersion 32 - versionCode 7 - versionName "0.7" + versionCode 8 + versionName "0.8" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" diff --git a/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIHelper.java b/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIHelper.java index d7f6c8a..fcca803 100644 --- a/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIHelper.java +++ b/DeviceIdentifiersWrapper/src/main/java/com/zebra/deviceidentifierswrapper/DIHelper.java @@ -43,6 +43,10 @@ public static void getSerialNumber(Context context, IDIResultCallbacks callbackI { if(sSerialNumber != null) { + if(callbackInterface != null) + { + callbackInterface.onDebugStatus("Serial number already in cache."); + } callbackInterface.onSuccess(sSerialNumber); return; } @@ -97,6 +101,10 @@ public static void getIMEINumber(Context context, IDIResultCallbacks callbackInt { if(sIMEI != null) { + if(callbackInterface != null) + { + callbackInterface.onDebugStatus("IMEI number already in cache."); + } callbackInterface.onSuccess(sIMEI); return; }