Skip to content

Commit

Permalink
fix: update visitorId context key to visitor_id (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasl authored May 10, 2024
1 parent 40f7a09 commit e960451
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class Confidence internal constructor(
}
}

internal const val VISITOR_ID_CONTEXT_KEY = "visitorId"
internal const val VISITOR_ID_CONTEXT_KEY = "visitor_id"

object ConfidenceFactory {
fun create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ internal class ConfidenceRemoteClientTests {
" \"clientSecret\": \"secret1\",\n" +
" \"resolveToken\": \"token1\",\n" +
" \"sdk\": {\n" +
" \"id\": \"SDK_ID_KOTLIN_PROVIDER_TEST\",\n" +
" \"id\": \"SDK_ID_KOTLIN_CONFIDENCE_TEST\",\n" +
" \"version\": \"\"\n" +
" }\n" +
"}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.spotify.confidence.openfeature
import android.content.SharedPreferences

internal const val SHARED_PREFS_NAME = "confidence-visitor"
internal const val VISITOR_ID_SHARED_PREFS_KEY = "visitorId"
internal const val VISITOR_ID_SHARED_PREFS_KEY = "visitor_id"

internal class InMemorySharedPreferences : SharedPreferences {
private var visitorId: String = ""
Expand Down

0 comments on commit e960451

Please sign in to comment.