-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: change user agent to 'kotlin' #49
Conversation
Delete invalid release please changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -3,7 +3,7 @@ package software.momento.kotlin.sdk.internal | |||
import kotlin.jvm.Volatile | |||
|
|||
internal class UserHeaderInterceptor(private val tokenValue: String) : io.grpc.ClientInterceptor { | |||
private val sdkVersion = String.format("java:%s", this.javaClass.getPackage().implementationVersion) | |||
private val sdkVersion = String.format("kotlin:%s", this.javaClass.getPackage()?.implementationVersion ?: "unknown") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we distinguish between android and jvm versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. I can pass that in from the grpc managers that instantiate it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete invalid release please changelog.