Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
# ignore:
# add items to ignore here
18 changes: 9 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import org.gradle.language.jvm.tasks.ProcessResources
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.6.0"
kotlin("jvm") version "1.8.22"
idea
id("com.github.johnrengelman.shadow") version "7.1.2"
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
Expand Down Expand Up @@ -34,22 +34,22 @@ configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
dependencies {
protobuf(files("api-interface-definitions/protos/"))
testImplementation("junit:junit:4.13.2")
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
testImplementation("io.mockk:mockk:1.13.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
testImplementation("io.grpc:grpc-testing:1.66.0")
testImplementation("io.grpc:grpc-testing:1.71.0")
implementation("com.google.code.gson:gson:2.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4")
implementation("com.squareup.okhttp3:okhttp:4.11.0")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation("com.github.ua-parser:uap-java:1.6.1")
implementation("com.statsig:ip3country:0.1.5")
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
implementation("org.jetbrains.kotlin:kotlin-reflect")
// GRPC Dependencies
implementation("io.grpc:grpc-netty-shaded:1.66.0")
implementation("io.grpc:grpc-stub:1.66.0")
implementation("io.grpc:grpc-protobuf:1.66.0")
implementation("io.grpc:grpc-netty-shaded:1.71.0")
implementation("io.grpc:grpc-stub:1.71.0")
implementation("io.grpc:grpc-protobuf:1.71.0")
implementation("org.apache.tomcat:annotations-api:6.0.53")
}

Expand Down Expand Up @@ -109,7 +109,7 @@ protobuf {
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.66.0"
artifact = "io.grpc:protoc-gen-grpc-java:1.71.0"
}
}
generateProtoTasks {
Expand Down
12 changes: 12 additions & 0 deletions src/main/kotlin/com/statsig/sdk/Diagnostics.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,18 @@ internal class Diagnostics(private var isDisabled: Boolean, private var logger:
marker.idListCount = additionalMarker?.idListCount
}
}
else -> {
// No additional action needed for other KeyType values
}
}
when (contextType) {
ContextType.API_CALL -> {
marker.configName = additionalMarker?.configName
marker.markerID = additionalMarker?.markerID
}
else -> {
// No additional action needed for other ContextType values
}
}
if (contextType == ContextType.API_CALL || contextType == ContextType.GET_CLIENT_INITIALIZE_RESPONSE) {
marker.markerID = key.name + "_" + (markers?.get(contextType)?.count() ?: 0)
Expand Down Expand Up @@ -117,6 +123,9 @@ internal class Diagnostics(private var isDisabled: Boolean, private var logger:
KeyType.OVERALL -> {
marker.reason = additionalMarker?.reason
}
else -> {
// No additional action needed for other KeyType values
}
}
when (contextType) {
ContextType.API_CALL -> {
Expand All @@ -126,6 +135,9 @@ internal class Diagnostics(private var isDisabled: Boolean, private var logger:
ContextType.GET_CLIENT_INITIALIZE_RESPONSE -> {
marker.markerID = additionalMarker?.markerID
}
else -> {
// No additional action needed for other ContextType values
}
}
this.addMarker(marker, contextType)
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/com/statsig/sdk/network/StatsigTransport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ internal class StatsigTransport(
(downloadConfigSpecWorker as GRPCWebsocketWorker).streamingFallback = StreamingFallback(statsigScope, getDcsFn, options.rulesetsSyncIntervalMs)
}
}
else -> {
// do nothing
}
}
}

Expand Down