Skip to content

Commit 56b42b0

Browse files
committed
Updated canonicalName for compileSdkVersion 29
* canonicalName is defined as String? in Android API 29 however this class will always be present in the SDK so added a cast to String.
1 parent 999340d commit 56b42b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/influence/OSInfluenceConstants.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ internal object OSInfluenceConstants {
1313
const val INFLUENCE_IDS = "influence_ids"
1414

1515
// OSInAppMessageTracker Constants
16-
val IAM_TAG: String = OSInAppMessageTracker::class.java.canonicalName
16+
val IAM_TAG: String = OSInAppMessageTracker::class.java.canonicalName as String
1717
const val IAM_ID_TAG = "iam_id"
1818

1919
// OSNotificationTracker Constants
20-
val NOTIFICATION_TAG: String = OSNotificationTracker::class.java.canonicalName
20+
val NOTIFICATION_TAG: String = OSNotificationTracker::class.java.canonicalName as String
2121
const val DIRECT_TAG = "direct"
2222
const val NOTIFICATIONS_IDS = "notification_ids"
2323
const val NOTIFICATION_ID_TAG = "notification_id"

0 commit comments

Comments
 (0)