-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update build setup to also include the
wasm
target
- FIX #177 - adjust module hierarchy to not split wasm from other source sets as some dependency currently does not offer wasm support
- Loading branch information
Showing
6 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 1 addition & 8 deletions
9
...r/src/commonMain/kotlin/io/github/optimumcode/json/schema/internal/hostname/Normalizer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
package io.github.optimumcode.json.schema.internal.hostname | ||
|
||
import doist.x.normalize.Form | ||
import doist.x.normalize.normalize | ||
|
||
internal object Normalizer { | ||
fun isNormalized(label: String): Boolean { | ||
return label.normalize(Form.NFC) == label | ||
} | ||
} | ||
public expect fun isNormalized(label: String): Boolean |
8 changes: 8 additions & 0 deletions
8
...JsMain/kotlin/io/github/optimumcode/json/schema/internal/hostname/Normalizer.nonWasmJs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.github.optimumcode.json.schema.internal.hostname | ||
|
||
import doist.x.normalize.Form | ||
import doist.x.normalize.normalize | ||
|
||
public actual fun isNormalized(label: String): Boolean { | ||
return label.normalize(Form.NFC) == label | ||
} |
6 changes: 6 additions & 0 deletions
6
...asmJsMain/kotlin/io/github/optimumcode/json/schema/internal/hostname/Normalizer.wasmJs.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package io.github.optimumcode.json.schema.internal.hostname | ||
|
||
public actual fun isNormalized(label: String): Boolean { | ||
// depending library does not yet support wasm: https://github.com/OptimumCode/json-schema-validator/issues/177#issuecomment-2268482409 | ||
return true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ kotlin { | |
js(IR) { | ||
nodejs() | ||
} | ||
wasmJs { | ||
nodejs() | ||
} | ||
applyDefaultHierarchyTemplate() | ||
|
||
val macOsTargets = | ||
|