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)