Skip to content

Commit 2b2de08

Browse files
authored
Update Kotlin OF provider docs (#601)
1 parent 52cc2f6 commit 2b2de08

File tree

2 files changed

+4
-4
lines changed
  • website
    • docs/sdk-reference/openfeature
    • versioned_docs/version-V1/sdk-reference/openfeature

2 files changed

+4
-4
lines changed

website/docs/sdk-reference/openfeature/kotlin.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ the [ConfigCat Kotlin SDK](../../kotlin/#setting-up-the-configcat-client):
2929

3030
```kotlin
3131
import com.configcat.*
32-
import dev.openfeature.sdk.*
32+
import dev.openfeature.kotlin.sdk.*
3333

3434
coroutineScope.launch(Dispatchers.IO) {
3535
// Configure the provider.
@@ -81,7 +81,7 @@ val context = ImmutableContext(
8181
"Email" to Value.String("[email protected]"),
8282
"Country" to Value.String("CountryID"),
8383
"Rating" to Value.Double(4.5),
84-
"RegisteredAt" to Value.Date(Date.from(Instant.parse("2023-11-22T12:34:56+00:00"))),
84+
"RegisteredAt" to Value.Instant(kotlin.time.Instant.parse("2025-05-30T10:15:30.00Z")),
8585
"Roles" to Value.List(listOf(Value.String("Role1"), Value.String("Role2")))
8686
),
8787
)

website/versioned_docs/version-V1/sdk-reference/openfeature/kotlin.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ the [ConfigCat Kotlin SDK](../../kotlin/#setting-up-the-configcat-client):
2929

3030
```kotlin
3131
import com.configcat.*
32-
import dev.openfeature.sdk.*
32+
import dev.openfeature.kotlin.sdk.*
3333

3434
coroutineScope.launch(Dispatchers.IO) {
3535
// Configure the provider.
@@ -81,7 +81,7 @@ val context = ImmutableContext(
8181
"Email" to Value.String("[email protected]"),
8282
"Country" to Value.String("CountryID"),
8383
"Rating" to Value.Double(4.5),
84-
"RegisteredAt" to Value.Date(Date.from(Instant.parse("2023-11-22T12:34:56+00:00"))),
84+
"RegisteredAt" to Value.Instant(kotlin.time.Instant.parse("2025-05-30T10:15:30.00Z")),
8585
"Roles" to Value.List(listOf(Value.String("Role1"), Value.String("Role2")))
8686
),
8787
)

0 commit comments

Comments
 (0)