Skip to content

Commit 84c2da2

Browse files
Fix Lint error
1 parent 056efc4 commit 84c2da2

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ apply plugin: 'com.mparticle.kit'
3737
android {
3838
namespace 'com.mparticle.kits.revealmobile'
3939
compileSdk 33
40+
buildFeatures {
41+
buildConfig = true
42+
}
4043
defaultConfig {
4144
minSdkVersion 16
4245
targetSdk 33

src/main/kotlin/com/mparticle/kits/RevealMobileKit.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.stepleaderdigital.reveal.Reveal
88
class 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"

src/test/kotlin/com/mparticle/kits/RevealMobileKitTest.kt renamed to src/test/kotlin/com/mparticle/kits/RevealMobileKitTests.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ package com.mparticle.kits
22

33
import android.content.Context
44
import com.mparticle.MParticleOptions
5+
import com.mparticle.kits.KitIntegration
6+
import com.mparticle.kits.KitIntegrationFactory
57
import org.junit.Assert
68
import org.junit.Test
79
import org.mockito.Mockito
10+
import java.util.HashMap
811

912
class RevealMobileKitTests {
1013
private val kit: KitIntegration

0 commit comments

Comments
 (0)