From 9c11c0c7fcd659741885661b60b8f46bc4ba28d5 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 30 Dec 2024 08:46:36 +0600 Subject: [PATCH] add support of wasm --- CHANGELOG.md | 1 + README.md | 1 + build.gradle | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 546fa9d..68e869f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * `Version`: * `Kotlin`: `2.1.0` * `Coroutines`: `1.10.1` +* Add WASM support (solution of [#137](https://github.com/InsanusMokrassar/krontab/issues/137)) ## 2.6.1 diff --git a/README.md b/README.md index cdd7d9b..1af8d09 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ ![Android](https://img.shields.io/badge/Android-green?style=for-the-badge&logo=android&logoColor=white) ![Js](https://img.shields.io/badge/JavaScript-323330?style=for-the-badge&logo=javascript&logoColor=F7DF1E) ![Linux x64](https://img.shields.io/badge/Linux%20x64-white?style=for-the-badge&logo=linux&logoColor=black) +![WASM](https://img.shields.io/badge/WASM-654FF0?style=for-the-badge&logo=webassembly&logoColor=white) [![KDocs](https://img.shields.io/badge/KDocs-323330?style=for-the-badge&logo=Kotlin&logoColor=7F52FF)](https://insanusmokrassar.github.io/krontab/) [![Tutorials](https://img.shields.io/badge/Tutorials-0288D1?style=for-the-badge&logo=mkdocs&logoColor=white)](https://docs.inmo.dev/krontab/index.html) diff --git a/build.gradle b/build.gradle index 0c738b4..2ca479c 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,11 @@ kotlin { linuxX64() mingwX64() linuxArm64() + wasm { + browser() + nodejs() + d8() + } sourceSets { @@ -85,6 +90,7 @@ kotlin { dependencies { implementation kotlin('test-common') implementation kotlin('test-annotations-common') + implementation kotlin('test') implementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlin_coroutines_version" } }