From d941af7fa70f5ff64c76a98d34a5718ba7b2a96a Mon Sep 17 00:00:00 2001 From: ChaseApptentive <85038972+ChaseApptentive@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:57:10 -0400 Subject: [PATCH] chore: Bump apptentive-kit-android from 6.0.3 to 6.1.0 (#87) * saving kit changes * Replaced Deprecated code * cleanup * enableTypeDetection false bydefault * use VERSION_NAME * PR updates * remove temporary code, fix for loglevel * Cleanup & logtags * Added default values for configuration * Replaced Apptentive logger with mParticle logger to support tests * cleanup * reorder loglevel * make registerApptentiveActivityContext as static for Java interoperable * Updated Readme * Implementation for Api due to customer request. * Apptentive 6.1.0 release update * Revert implementation to api Fix readme --------- Co-authored-by: Poornima Nagarajan Co-authored-by: PoornimaApptentive <85186738+PoornimaApptentive@users.noreply.github.com> Co-authored-by: markvdouw --- build.gradle | 3 +-- src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 1e2af8d..354a163 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,6 @@ buildscript { repositories { google() - mavenLocal() mavenCentral() } @@ -49,6 +48,6 @@ allprojects { } dependencies { - api 'com.apptentive:apptentive-kit-android:6.0.3' + api 'com.apptentive:apptentive-kit-android:6.1.0' 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 71fc68a..c18f3ac 100644 --- a/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt +++ b/src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt @@ -17,7 +17,7 @@ object ApptentiveKitUtils { } else { val filter = IntentFilter(MParticle.ServiceProviders.BROADCAST_ACTIVE + MParticle.ServiceProviders.APPTENTIVE); - callback.getApptentiveActivityInfo().registerReceiver(object : BroadcastReceiver() { + callback.getApptentiveActivityInfo()?.registerReceiver(object : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { if (intent.action?.startsWith(MParticle.ServiceProviders.BROADCAST_ACTIVE) == true) { Apptentive.registerApptentiveActivityInfoCallback(callback)