Skip to content
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

Merged
merged 2 commits into from
Jan 12, 2024
Merged

fix: change user agent to 'kotlin' #49

merged 2 commits into from
Jan 12, 2024

Conversation

nand4011
Copy link
Collaborator

Delete invalid release please changelog.

Delete invalid release please changelog.
@nand4011 nand4011 requested a review from a team January 12, 2024 18:55
bruuuuuuuce
bruuuuuuuce previously approved these changes Jan 12, 2024
Copy link

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@@ -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")
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link

@bruuuuuuuce bruuuuuuuce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Contributor

@cprice404 cprice404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android

@nand4011 nand4011 merged commit 3b3a1fc into main Jan 12, 2024
5 checks passed
@nand4011 nand4011 deleted the fix-user-agent branch January 12, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants