Skip to content

Commit 19c236f

Browse files
chore: bump dependencies version and fix syntax (#455)
basically introducing public repo PR into private repo #40
1 parent 74d000d commit 19c236f

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

build.gradle.kts

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import org.gradle.language.jvm.tasks.ProcessResources
55
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
66

77
plugins {
8-
kotlin("jvm") version "1.6.0"
8+
kotlin("jvm") version "1.8.22"
99
idea
1010
id("com.github.johnrengelman.shadow") version "7.1.2"
1111
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
@@ -34,22 +34,22 @@ configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
3434
dependencies {
3535
protobuf(files("api-interface-definitions/protos/"))
3636
testImplementation("junit:junit:4.13.2")
37-
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
37+
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
3838
testImplementation("io.mockk:mockk:1.13.2")
3939
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
40-
testImplementation("io.grpc:grpc-testing:1.66.0")
40+
testImplementation("io.grpc:grpc-testing:1.71.0")
4141
implementation("com.google.code.gson:gson:2.9.0")
4242
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
4343
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4")
44-
implementation("com.squareup.okhttp3:okhttp:4.11.0")
44+
implementation("com.squareup.okhttp3:okhttp:4.12.0")
4545
implementation("com.github.ua-parser:uap-java:1.6.1")
4646
implementation("com.statsig:ip3country:0.1.5")
47-
implementation("com.squareup.okhttp3:logging-interceptor:4.11.0")
47+
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0")
4848
implementation("org.jetbrains.kotlin:kotlin-reflect")
4949
// GRPC Dependencies
50-
implementation("io.grpc:grpc-netty-shaded:1.66.0")
51-
implementation("io.grpc:grpc-stub:1.66.0")
52-
implementation("io.grpc:grpc-protobuf:1.66.0")
50+
implementation("io.grpc:grpc-netty-shaded:1.71.0")
51+
implementation("io.grpc:grpc-stub:1.71.0")
52+
implementation("io.grpc:grpc-protobuf:1.71.0")
5353
implementation("org.apache.tomcat:annotations-api:6.0.53")
5454
}
5555

@@ -109,7 +109,7 @@ protobuf {
109109
}
110110
plugins {
111111
id("grpc") {
112-
artifact = "io.grpc:protoc-gen-grpc-java:1.66.0"
112+
artifact = "io.grpc:protoc-gen-grpc-java:1.71.0"
113113
}
114114
}
115115
generateProtoTasks {

src/main/kotlin/com/statsig/sdk/Diagnostics.kt

+12
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,18 @@ internal class Diagnostics(private var isDisabled: Boolean, private var logger:
5858
marker.idListCount = additionalMarker?.idListCount
5959
}
6060
}
61+
else -> {
62+
// No additional action needed for other KeyType values
63+
}
6164
}
6265
when (contextType) {
6366
ContextType.API_CALL -> {
6467
marker.configName = additionalMarker?.configName
6568
marker.markerID = additionalMarker?.markerID
6669
}
70+
else -> {
71+
// No additional action needed for other KeyType values
72+
}
6773
}
6874
if (contextType == ContextType.API_CALL || contextType == ContextType.GET_CLIENT_INITIALIZE_RESPONSE) {
6975
marker.markerID = key.name + "_" + (markers?.get(contextType)?.count() ?: 0)
@@ -117,6 +123,9 @@ internal class Diagnostics(private var isDisabled: Boolean, private var logger:
117123
KeyType.OVERALL -> {
118124
marker.reason = additionalMarker?.reason
119125
}
126+
else -> {
127+
// No additional action needed for other KeyType values
128+
}
120129
}
121130
when (contextType) {
122131
ContextType.API_CALL -> {
@@ -126,6 +135,9 @@ internal class Diagnostics(private var isDisabled: Boolean, private var logger:
126135
ContextType.GET_CLIENT_INITIALIZE_RESPONSE -> {
127136
marker.markerID = additionalMarker?.markerID
128137
}
138+
else -> {
139+
// No additional action needed for other KeyType values
140+
}
129141
}
130142
this.addMarker(marker, contextType)
131143
}

src/main/kotlin/com/statsig/sdk/network/StatsigTransport.kt

+3
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ internal class StatsigTransport(
6565
(downloadConfigSpecWorker as GRPCWebsocketWorker).streamingFallback = StreamingFallback(statsigScope, getDcsFn, options.rulesetsSyncIntervalMs)
6666
}
6767
}
68+
else -> {
69+
// no-op
70+
}
6871
}
6972
}
7073

0 commit comments

Comments
 (0)