Skip to content

Commit e334355

Browse files
author
Patrick Jackson
committed
fix circular deps and version bump
1 parent 6b83e37 commit e334355

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

lib/build.gradle

+36-10
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: 'kotlin-multiplatform'
77
archivesBaseName = 'redux-kotlin-thunk'
88

99
group 'org.reduxkotlin'
10-
version '0.2.4'
10+
version '0.2.5'
1111

1212
kotlin {
1313
jvm()
@@ -20,15 +20,41 @@ kotlin {
2020
}
2121
}
2222
}
23-
iosArm64("ios")
24-
iosX64("iosSim")
25-
macosX64("macos")
26-
mingwX64("win")
27-
wasm32("wasm")
28-
linuxArm32Hfp("linArm32")
29-
linuxMips32("linMips32")
30-
linuxMipsel32("linMipsel32")
31-
linuxX64("lin64")
23+
//-module-name args are needed to prevent circular deps bug on native platforms
24+
iosArm64("ios") {
25+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
26+
}
27+
28+
iosX64("iosSim") {
29+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
30+
}
31+
macosX64("macos") {
32+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
33+
}
34+
35+
mingwX64("win") {
36+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
37+
}
38+
39+
wasm32("wasm") {
40+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
41+
}
42+
43+
linuxArm32Hfp("linArm32") {
44+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
45+
}
46+
47+
linuxMips32("linMips32") {
48+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
49+
}
50+
51+
linuxMipsel32("linMipsel32") {
52+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
53+
}
54+
55+
linuxX64("lin64") {
56+
compilations.main.extraOpts.addAll(["-module-name", "thunk"])
57+
}
3258

3359
sourceSets {
3460
commonMain {

0 commit comments

Comments
 (0)