From 17cc2d69b42b7e9eb94486936f6e42fb23855522 Mon Sep 17 00:00:00 2001 From: markvdouw Date: Mon, 17 Jul 2023 21:18:10 -0300 Subject: [PATCH] Implementing default functions from KitIntegration --- .../main/java/com/mparticle/kits/MPSideloadedKit.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android-kit-base/src/main/java/com/mparticle/kits/MPSideloadedKit.kt b/android-kit-base/src/main/java/com/mparticle/kits/MPSideloadedKit.kt index 14a89213c..7a74ca0ab 100644 --- a/android-kit-base/src/main/java/com/mparticle/kits/MPSideloadedKit.kt +++ b/android-kit-base/src/main/java/com/mparticle/kits/MPSideloadedKit.kt @@ -1,5 +1,6 @@ package com.mparticle.kits +import android.content.Context import com.mparticle.internal.SideloadedKit import org.json.JSONObject @@ -20,6 +21,15 @@ abstract class MPSideloadedKit(val kitId: Int) : KitIntegration(), SideloadedKit override fun kitId(): Int = kitId + override fun getName(): String = this::class.java.name.split(".").last().orEmpty() + + override fun onKitCreate( + settings: MutableMap?, + context: Context? + ): MutableList = mutableListOf() + + override fun setOptOut(optedOut: Boolean): MutableList = mutableListOf() + fun addFilters(filter: MPSideloadedFilters): MPSideloadedKit { configuration = configuration.applyFilters(filter) return this