Skip to content

Commit

Permalink
Merge pull request #29 from apptentive/6.9.1-update
Browse files Browse the repository at this point in the history
6.9.1
  • Loading branch information
PoornimaApptentive authored Nov 21, 2024
2 parents 05f3152 + a8570fc commit d09cb3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
18 changes: 9 additions & 9 deletions src/main/kotlin/com/mparticle/kits/ApptentiveKitUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
}

0 comments on commit d09cb3f

Please sign in to comment.