Skip to content

Commit

Permalink
Add Kotlin Multiplatform support
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierSegoviaCordoba committed Aug 27, 2024
1 parent ab82a04 commit e6acb3c
Show file tree
Hide file tree
Showing 9 changed files with 2,010 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Added

- Kotlin Multiplatform support

### Changed

### Deprecated
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,14 @@ val house2: House = house.copy {
}
```

### Kotlin Multiplatform

Kopy is compatible with Kotlin Multiplatform projects if it is used exclusively on projects that
applies the plugin.

Calling `copy` or `invoke` functions from Swift, or anything that is not Kotlin with the Kopy plugin
applied, will not work.

## KopyKat comparison

Kopy uses the K2 compiler plugin whereas [KopyKat](https://github.com/kopykat-kt/kopykat) uses KSP
Expand Down
11 changes: 1 addition & 10 deletions kopy-args/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ hubdle {
}
}
kotlin {
multiplatform {
common {
main {
dependencies { //
implementation(hubdle.jetbrains.kotlinx.atomicfu)
}
}
}
jvm()
}
jvm() //
}
}
30 changes: 30 additions & 0 deletions kopy-runtime/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,37 @@ hubdle {
}
}
}
androidNative()
apple {
ios {
iosArm64()
iosSimulatorArm64()
iosX64()
}
macos {
macosArm64()
macosX64()
}
tvos {
tvosArm64()
tvosSimulatorArm64()
tvosX64()
}
}
jvm()
js {
browser()
nodejs()
}
linux {
linuxArm64()
linuxX64()
}
mingw {
mingwX64()
}
native()
wasmJs()
}
}
}
1,969 changes: 1,969 additions & 0 deletions kotlin-js-store/yarn.lock

Large diffs are not rendered by default.

0 comments on commit e6acb3c

Please sign in to comment.