diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..90696fa --- /dev/null +++ b/.github/dependabot.yml @@ -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 diff --git a/build.gradle.kts b/build.gradle.kts index 8e3fd0e..6ded844 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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" @@ -34,22 +34,22 @@ configure { 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") } @@ -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 { diff --git a/src/main/kotlin/com/statsig/sdk/Diagnostics.kt b/src/main/kotlin/com/statsig/sdk/Diagnostics.kt index 1d306bf..abbc69f 100644 --- a/src/main/kotlin/com/statsig/sdk/Diagnostics.kt +++ b/src/main/kotlin/com/statsig/sdk/Diagnostics.kt @@ -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) @@ -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 -> { @@ -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) } diff --git a/src/main/kotlin/com/statsig/sdk/network/StatsigTransport.kt b/src/main/kotlin/com/statsig/sdk/network/StatsigTransport.kt index c99d847..89eaafe 100644 --- a/src/main/kotlin/com/statsig/sdk/network/StatsigTransport.kt +++ b/src/main/kotlin/com/statsig/sdk/network/StatsigTransport.kt @@ -65,6 +65,9 @@ internal class StatsigTransport( (downloadConfigSpecWorker as GRPCWebsocketWorker).streamingFallback = StreamingFallback(statsigScope, getDcsFn, options.rulesetsSyncIntervalMs) } } + else -> { + // do nothing + } } }