File tree Expand file tree Collapse file tree
main/kotlin/com/mparticle/kits
test/kotlin/com/mparticle/kits Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ apply plugin: 'com.mparticle.kit'
3737android {
3838 namespace ' com.mparticle.kits.revealmobile'
3939 compileSdk 33
40+ buildFeatures {
41+ buildConfig = true
42+ }
4043 defaultConfig {
4144 minSdkVersion 16
4245 targetSdk 33
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import com.stepleaderdigital.reveal.Reveal
88class RevealMobileKit : KitIntegration () {
99 override fun onKitCreate (
1010 settings : Map <String , String >,
11- context : Context
11+ context : Context ,
1212 ): List <ReportingMessage > {
1313 val revealSDK = Reveal .getInstance()
1414 val apiKey = settings[API_KEY ]
@@ -31,8 +31,7 @@ class RevealMobileKit : KitIntegration() {
3131
3232 override fun setOptOut (optedOut : Boolean ): List <ReportingMessage > = emptyList()
3333
34-
35- companion object {
34+ companion object {
3635 private const val KIT_NAME = " Reveal Mobile"
3736 private const val NO_API_KEY_REQUIRED = " No API Key provided"
3837 private const val SDK_ENDPOINT = " sdk_endpoint"
Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ package com.mparticle.kits
22
33import android.content.Context
44import com.mparticle.MParticleOptions
5+ import com.mparticle.kits.KitIntegration
6+ import com.mparticle.kits.KitIntegrationFactory
57import org.junit.Assert
68import org.junit.Test
79import org.mockito.Mockito
10+ import java.util.HashMap
811
912class RevealMobileKitTests {
1013 private val kit: KitIntegration
You can’t perform that action at this time.
0 commit comments