diff --git a/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/KtPianoDispatcher.kt b/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoDispatcher.kt similarity index 96% rename from piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/KtPianoDispatcher.kt rename to piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoDispatcher.kt index ba1842c..e2ebcf4 100644 --- a/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/KtPianoDispatcher.kt +++ b/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoDispatcher.kt @@ -12,7 +12,7 @@ import io.piano.android.analytics.model.PropertyName * Piano Event Dispatcher (Kotlin) * Instantiated when running on Piano SDK 3.3.0 or newer. */ -class KtPianoDispatcher() : AbstractPianoDispatcher() { +class PianoDispatcher() : AbstractPianoDispatcher() { /** * Callback fired when a new Batch event is triggered @@ -65,7 +65,6 @@ class KtPianoDispatcher() : AbstractPianoDispatcher() { ): Event { val name = getPianoEventName(type) val data: MutableSet = mutableSetOf( - Property(PropertyName(ON_SITE_TYPE), ON_SITE_TYPE_PUBLISHER), Property(PropertyName(SOURCE), getSource(payload)), Property(PropertyName(CAMPAIGN), getCampaign(payload)), Property(PropertyName(MEDIUM), getMedium(payload, type)), diff --git a/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoRegistrar.java b/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoRegistrar.java index b056ddb..4765f81 100644 --- a/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoRegistrar.java +++ b/piano-dispatcher/src/main/java/com/batch/android/dispatcher/piano/PianoRegistrar.java @@ -31,7 +31,7 @@ public class PianoRegistrar implements DispatcherRegistrar { public BatchEventDispatcher getDispatcher(Context context) { if (instance == null) { if (isNewPianoSDKPresent()) { - instance = new KtPianoDispatcher(); + instance = new PianoDispatcher(); } else { Log.w("Batch", "PianoDispatcher - It looks like your app is running with an old version of the Piano Analytics SDK. You should migrate on version 3.3.0 or newer."); instance = new LegacyPianoDispatcher(context);