Skip to content

Commit 4e15eea

Browse files
Fix lint error
1 parent 19af96b commit 4e15eea

4 files changed

Lines changed: 19 additions & 14 deletions

File tree

runtime-batching-kit/batching-kit/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ android {
1717
consumerProguardFiles "consumer-rules.pro"
1818
}
1919

20+
buildFeatures {
21+
buildConfig = true
22+
}
2023
buildTypes {
2124
release {
2225
minifyEnabled false

simple-kit/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ android {
3939
defaultConfig {
4040
minSdkVersion 21
4141
}
42+
buildFeatures {
43+
buildConfig = true
44+
}
4245
compileOptions {
4346
sourceCompatibility JavaVersion.VERSION_17
4447
targetCompatibility JavaVersion.VERSION_17

simple-kit/src/main/kotlin/com/mparticle/kits/ExampleKit.kt

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ import android.content.Context
2323
* - ./consumer-proguard.pro
2424
*/
2525
class ExampleKit : KitIntegration() {
26-
2726
public override fun onKitCreate(
2827
settings: MutableMap<String, String>?,
29-
context: Context?
28+
context: Context?,
3029
): MutableList<ReportingMessage>? {
3130
/** TODO: Initialize your SDK here
3231
* This method is analogous to Application#onCreate, and will be called once per app execution.
@@ -40,20 +39,20 @@ class ExampleKit : KitIntegration() {
4039
}
4140

4241
override fun getName(): String {
43-
//TODO: Replace this with your company name
42+
// TODO: Replace this with your company name
4443
return "Example"
4544
}
4645

47-
4846
override fun setOptOut(optedOut: Boolean): MutableList<ReportingMessage>? {
49-
//TODO: Disable or enable your SDK when a user opts out.
50-
//TODO: If your SDK can not be opted out of, return null
51-
val optOutMessage = ReportingMessage(
52-
this,
53-
ReportingMessage.MessageType.OPT_OUT,
54-
System.currentTimeMillis(),
55-
null
56-
)
47+
// TODO: Disable or enable your SDK when a user opts out.
48+
// TODO: If your SDK can not be opted out of, return null
49+
val optOutMessage =
50+
ReportingMessage(
51+
this,
52+
ReportingMessage.MessageType.OPT_OUT,
53+
System.currentTimeMillis(),
54+
null,
55+
)
5756
return null
5857
}
59-
}
58+
}

simple-kit/src/test/kotlin/com/mparticle/kits/KitTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class KitTests {
2525
var e: Exception? = null
2626
try {
2727
val kit = kit
28-
val settings= HashMap<String, String>()
28+
val settings = HashMap<String, String>()
2929
settings["fake setting"] = "fake"
3030
kit.onKitCreate(settings, Mockito.mock(Context::class.java))
3131
} catch (ex: Exception) {

0 commit comments

Comments
 (0)