Skip to content

Commit 332e715

Browse files
committed
Target multiple platforms
Signed-off-by: Bence Hornák <[email protected]>
1 parent b388eec commit 332e715

File tree

6 files changed

+1666
-95
lines changed

6 files changed

+1666
-95
lines changed

kotlin-js-store/yarn.lock

Lines changed: 1560 additions & 9 deletions
Large diffs are not rendered by default.

providers/ofrep/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ This provider is designed to use the [OpenFeature Remote Evaluation Protocol (OF
44

55
## Supported platforms
66

7-
| Supported | Platform | Supported versions |
8-
|-----------|----------------------|--------------------|
9-
|| Android | SDK 21+ |
10-
|| JVM | JDK 11+ |
11-
|| Native | |
12-
|| Javascript (Node.js) | |
13-
|| Javascript (Browser) | |
14-
|| Wasm | |
7+
| Supported | Platform | Supported versions |
8+
|-----------|----------------------|--------------------------------------------------------------------------------|
9+
|| Android | |
10+
|| JVM | JDK 11+ |
11+
|| Native | Linux x64 |
12+
|| Native | [Other native targets](https://kotlinlang.org/docs/native-target-support.html) |
13+
|| Javascript (Node.js) | |
14+
|| Javascript (Browser) | |
15+
|| Wasm | |
1516

1617

1718
## Installation

providers/ofrep/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ plugins {
44
alias(libs.plugins.kotlin.multiplatform)
55
alias(libs.plugins.kotlinx.serialization)
66
alias(libs.plugins.android.library)
7+
// Needed for the JS coroutine support for the tests
8+
alias(libs.plugins.kotlinx.atomicfu)
79
}
810

911
kotlin {
@@ -17,6 +19,17 @@ kotlin {
1719
}
1820
}
1921
}
22+
linuxX64 {}
23+
js {
24+
nodejs {}
25+
browser {
26+
testTask {
27+
useKarma {
28+
useChromeHeadless()
29+
}
30+
}
31+
}
32+
}
2033

2134
sourceSets {
2235
commonMain.dependencies {

providers/ofrep/src/commonMain/kotlin/dev/openfeature/kotlin/contrib/providers/ofrep/OfrepProvider.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import kotlinx.coroutines.flow.Flow
2525
import kotlinx.coroutines.flow.MutableSharedFlow
2626
import kotlinx.coroutines.isActive
2727
import kotlinx.coroutines.launch
28+
import kotlin.concurrent.Volatile
2829
import kotlin.time.Clock
2930
import kotlin.time.Duration.Companion.seconds
3031
import kotlin.time.ExperimentalTime

0 commit comments

Comments
 (0)