Skip to content

Commit

Permalink
WASM support (#17)
Browse files Browse the repository at this point in the history
* Add WASM targets

* Switch to released XmlUtil and bumped version
  • Loading branch information
StefanOltmann authored Dec 14, 2023
1 parent f027478 commit 448fcb0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
![Android](https://img.shields.io/badge/-Android-gray.svg?style=flat)
![macOS](https://img.shields.io/badge/-macOS-gray.svg?style=flat)
![iOS](https://img.shields.io/badge/-iOS-gray.svg?style=flat)
![Windows](https://img.shields.io/badge/-Windows-gray.svg?style=flat)
![WASM](https://img.shields.io/badge/-WASM-gray.svg?style=flat)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=xmpcore&metric=coverage)](https://sonarcloud.io/summary/new_code?id=xmpcore)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.ashampoo/xmpcore/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.ashampoo/xmpcore)

Expand All @@ -15,7 +17,7 @@ It's part of [Ashampoo Photos](https://ashampoo.com/photos).
## Installation

```
implementation("com.ashampoo:xmpcore:0.2.4")
implementation("com.ashampoo:xmpcore:0.3")
```

## How to use
Expand Down
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
import org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFramework
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
kotlin("multiplatform") version "1.9.21"
Expand All @@ -22,7 +23,7 @@ repositories {

val productName = "Ashampoo XMP Core"

val xmlUtilVersion: String = "0.86.2"
val xmlUtilVersion: String = "0.86.3"

description = productName
group = "com.ashampoo"
Expand Down Expand Up @@ -133,6 +134,12 @@ kotlin {
}
}

@OptIn(ExperimentalWasmDsl::class)
wasmJs()

@OptIn(ExperimentalWasmDsl::class)
wasmWasi()

@Suppress("UnusedPrivateMember") // False positive
val commonMain by sourceSets.getting {

Expand Down

0 comments on commit 448fcb0

Please sign in to comment.