diff --git a/build.gradle b/build.gradle index 1aa2942..979f0c8 100644 --- a/build.gradle +++ b/build.gradle @@ -48,6 +48,6 @@ allprojects { } dependencies { - api 'com.apptentive:apptentive-kit-android:6.9.0' + api 'com.apptentive:apptentive-kit-android:6.9.1' testImplementation 'io.mockk:mockk:1.13.3' } diff --git a/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt b/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt index 557c428..5bd44a3 100644 --- a/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt +++ b/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt @@ -28,15 +28,15 @@ object ApptentiveKitUtils { Log.d("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+") - } else { - callback.getApptentiveActivityInfo() - ?.registerReceiver(broadcastReceiver, filter) - Log.d("ApptentiveKitUtils", "registerApptentiveActivityContext: kit is active SDK < 33") - } + 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+") + } else { + callback.getApptentiveActivityInfo() + ?.registerReceiver(broadcastReceiver, filter) + Log.d("ApptentiveKitUtils", "registerApptentiveActivityContext: kit is active SDK < 33") + } } } }