Skip to content

Commit

Permalink
Implementing default functions from KitIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
markvdouw committed Jul 18, 2023
1 parent c314dc7 commit 17cc2d6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.mparticle.kits

import android.content.Context
import com.mparticle.internal.SideloadedKit
import org.json.JSONObject

Expand All @@ -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<String, String>?,
context: Context?
): MutableList<ReportingMessage> = mutableListOf<ReportingMessage>()

override fun setOptOut(optedOut: Boolean): MutableList<ReportingMessage> = mutableListOf()

fun addFilters(filter: MPSideloadedFilters): MPSideloadedKit {
configuration = configuration.applyFilters(filter)
return this
Expand Down

0 comments on commit 17cc2d6

Please sign in to comment.