From d5fd6b56d71d1db898ff78cf75b8b5b2c554075b Mon Sep 17 00:00:00 2001 From: Poornima Nagarajan Date: Tue, 26 Nov 2024 18:41:23 -0800 Subject: [PATCH] use mP logger --- .../kotlin/com/mparticle/kits/ApptentiveKitUtils.kt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt b/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt index 5bd44a3..9043309 100644 --- a/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt +++ b/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt @@ -3,15 +3,13 @@ package com.mparticle.kits import android.content.BroadcastReceiver import android.content.Context import android.content.Context.RECEIVER_EXPORTED -import android.content.Context.RECEIVER_NOT_EXPORTED import android.content.Intent import android.content.IntentFilter import android.os.Build -import android.util.Log import apptentive.com.android.feedback.Apptentive import apptentive.com.android.feedback.ApptentiveActivityInfo import com.mparticle.MParticle - +import com.mparticle.internal.Logger object ApptentiveKitUtils { @JvmStatic @@ -25,17 +23,17 @@ object ApptentiveKitUtils { } if (MParticle.getInstance()?.isKitActive(MParticle.ServiceProviders.APPTENTIVE) == true) { Apptentive.registerApptentiveActivityInfoCallback(callback) - Log.d("ApptentiveKitUtils", "registerApptentiveActivityContext: kit is active") + Logger.debug("ApptentiveKitUtils", "registerApptentiveActivityContext: kit is active") } else { val filter = IntentFilter(MParticle.ServiceProviders.BROADCAST_ACTIVE + MParticle.ServiceProviders.APPTENTIVE) if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) { callback.getApptentiveActivityInfo() ?.registerReceiver(broadcastReceiver, filter, RECEIVER_EXPORTED) - Log.d("ApptentiveKitUtils", "registerApptentiveActivityContext: kit is active SDK 33+") + Logger.debug("ApptentiveKitUtils", "registerApptentiveActivityContext: SDK 33+") } else { callback.getApptentiveActivityInfo() ?.registerReceiver(broadcastReceiver, filter) - Log.d("ApptentiveKitUtils", "registerApptentiveActivityContext: kit is active SDK < 33") + Logger.debug("ApptentiveKitUtils", "registerApptentiveActivityContext: SDK < 33") } } }