Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit 1ae666a

Browse files
author
Gregory Lureau
committed
Fix missing deployment for lib-coroutines.
1 parent 806b3da commit 1ae666a

File tree

12 files changed

+60
-40
lines changed

12 files changed

+60
-40
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
**/build
33
samples/node_modules/
44
local.properties
5+
kotlin-js-store

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ kotlin {
9797
sourceSets {
9898
val commonMain by getting {
9999
dependencies {
100-
implementation("deezer.kustomexport:lib:0.1.0")
100+
implementation("deezer.kustomexport:lib:<version>")
101+
implementation("deezer.kustomexport:lib-coroutines:<version>")
101102
}
102103
}
103104
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tasks.create<Delete>("cleanMavenLocalArtifacts") {
6767

6868
tasks.create<Sync>("copyMavenLocalArtifacts") {
6969
group = "publishing"
70-
dependsOn(":compiler:publishToMavenLocal", ":lib:publishToMavenLocal")
70+
dependsOn(":compiler:publishToMavenLocal", ":lib:publishToMavenLocal", ":lib-coroutines:publishToMavenLocal")
7171

7272
val userHome = System.getProperty("user.home")
7373
val groupDir = project.group.toString().replace('.', '/')

compiler/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
implementation("com.google.devtools.ksp:symbol-processing:$kspVersion")
2323
implementation("com.google.devtools.ksp:symbol-processing-api:$kspVersion")
2424

25-
testImplementation("com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.6")
25+
testImplementation("com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.7")
2626
testImplementation("junit:junit:4.13.2")
2727
testImplementation(kotlin("test"))
2828
}

compiler/src/test/kotlin/deezer/kustomexport/compiler/ExportClassTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ExportClassTest {
2828
assertCompilationOutput(
2929
"""
3030
package foo.bar
31-
import deezer.kustom.KustomExport
31+
import deezer.kustomexport.KustomExport
3232
3333
@KustomExport
3434
class BasicClass
@@ -69,7 +69,7 @@ class ExportClassTest {
6969
assertCompilationOutput(
7070
"""
7171
package foo.bar
72-
import deezer.kustom.KustomExport
72+
import deezer.kustomexport.KustomExport
7373
7474
@KustomExport
7575
class BasicClass(val id: String)
@@ -79,8 +79,8 @@ class ExportClassTest {
7979
content = """
8080
package foo.bar.js
8181
82-
import deezer.kustom.dynamicCastTo
83-
import deezer.kustom.dynamicNull
82+
import deezer.kustomexport.dynamicCastTo
83+
import deezer.kustomexport.dynamicNull
8484
import kotlin.String
8585
import kotlin.Suppress
8686
import kotlin.js.JsExport
@@ -137,7 +137,7 @@ class ExportClassTest {
137137
"""
138138
package foo.bar
139139
140-
import deezer.kustom.KustomExport
140+
import deezer.kustomexport.KustomExport
141141
import kotlin.Any
142142
143143
@KustomExport

compiler/src/test/kotlin/deezer/kustomexport/compiler/ExportEnumTest.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ExportEnumTest {
2929
"""
3030
package foo.bar
3131
32-
import deezer.kustom.KustomExport
32+
import deezer.kustomexport.KustomExport
3333
3434
@KustomExport
3535
enum class Season {
@@ -51,9 +51,9 @@ class ExportEnumTest {
5151
5252
@JsExport
5353
public class Season internal constructor(
54-
internal val `value`: CommonSeason
54+
internal val common: CommonSeason
5555
) {
56-
public val name: String = value.name
56+
public val name: String = common.name
5757
}
5858
5959
@JsExport
@@ -77,21 +77,21 @@ class ExportEnumTest {
7777
return null
7878
}
7979
80-
public fun Season.importSeason(): CommonSeason = value
80+
public fun Season.importSeason(): CommonSeason = common
8181
82-
public fun CommonSeason.exportSeason(): Season = Season(this)
82+
public fun CommonSeason.exportSeason(): Season = Season_valueOf(this.name)!!
8383
8484
@JsExport
85-
public val Season_SPRING: Season = CommonSeason.SPRING.exportSeason()
85+
public val Season_SPRING: Season = Season(CommonSeason.SPRING)
8686
8787
@JsExport
88-
public val Season_SUMMER: Season = CommonSeason.SUMMER.exportSeason()
88+
public val Season_SUMMER: Season = Season(CommonSeason.SUMMER)
8989
9090
@JsExport
91-
public val Season_AUTUMN: Season = CommonSeason.AUTUMN.exportSeason()
91+
public val Season_AUTUMN: Season = Season(CommonSeason.AUTUMN)
9292
9393
@JsExport
94-
public val Season_WINTER: Season = CommonSeason.WINTER.exportSeason()
94+
public val Season_WINTER: Season = Season(CommonSeason.WINTER)
9595
""".trimIndent()
9696
)
9797
)

compiler/src/test/kotlin/deezer/kustomexport/compiler/ExportInterfaceTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ExportInterfaceTest {
2929
"""
3030
package flux
3131
32-
import deezer.kustom.KustomExport
32+
import deezer.kustomexport.KustomExport
3333
3434
@KustomExport
3535
interface Exportable
@@ -69,7 +69,7 @@ class ExportInterfaceTest {
6969
"""
7070
package flux
7171
72-
import deezer.kustom.KustomExport
72+
import deezer.kustomexport.KustomExport
7373
7474
@KustomExport
7575
interface BasicInterface {
@@ -120,7 +120,7 @@ class ExportInterfaceTest {
120120
"""
121121
package flux
122122
123-
import deezer.kustom.KustomExport
123+
import deezer.kustomexport.KustomExport
124124
125125
@KustomExport
126126
interface BasicInterface {
@@ -177,7 +177,7 @@ class ExportInterfaceTest {
177177
"""
178178
package flux
179179
180-
import deezer.kustom.KustomExport
180+
import deezer.kustomexport.KustomExport
181181
182182
@KustomExport
183183
interface BasicInterface {
@@ -249,7 +249,7 @@ class ExportInterfaceTest {
249249
content = """
250250
package flux
251251
252-
import deezer.kustom.KustomExport
252+
import deezer.kustomexport.KustomExport
253253
import bar.Bar
254254
255255
@KustomExport
@@ -327,7 +327,7 @@ class ExportInterfaceTest {
327327
content = """
328328
package flux
329329
330-
import deezer.kustom.KustomExport
330+
import deezer.kustomexport.KustomExport
331331
import bar.Bar
332332
333333
@KustomExport

compiler/src/test/kotlin/deezer/kustomexport/compiler/ExportSealedClassTest.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ExportSealedClassTest {
3131
"""
3232
package foo.bar
3333
34-
import deezer.kustom.KustomExport
34+
import deezer.kustomexport.KustomExport
3535
3636
@KustomExport
3737
sealed class SealedParent(val ctorParam: Long) {
@@ -119,8 +119,8 @@ class ExportSealedClassTest {
119119
content = """
120120
package foo.bar.js
121121
122-
import deezer.kustom.dynamicCastTo
123-
import deezer.kustom.dynamicNull
122+
import deezer.kustomexport.dynamicCastTo
123+
import deezer.kustomexport.dynamicNull
124124
import kotlin.Double
125125
import kotlin.String
126126
import kotlin.Suppress
@@ -184,7 +184,7 @@ class ExportSealedClassTest {
184184
"""
185185
package foo.bar
186186
187-
import deezer.kustom.KustomExport
187+
import deezer.kustomexport.KustomExport
188188
import java.lang.IllegalStateException // Or else it's interpreted as a typealias and fail in the toClassName() koktlinpoet ext
189189
190190
@KustomExport
@@ -246,8 +246,8 @@ class ExportSealedClassTest {
246246
content = """
247247
package foo.bar.js
248248
249-
import deezer.kustom.dynamicCastTo
250-
import deezer.kustom.dynamicNull
249+
import deezer.kustomexport.dynamicCastTo
250+
import deezer.kustomexport.dynamicNull
251251
import kotlin.Double
252252
import kotlin.String
253253
import kotlin.Suppress
@@ -327,8 +327,8 @@ class ExportSealedClassTest {
327327
content = """
328328
package foo.bar.js
329329
330-
import deezer.kustom.dynamicCastTo
331-
import deezer.kustom.dynamicNull
330+
import deezer.kustomexport.dynamicCastTo
331+
import deezer.kustomexport.dynamicNull
332332
import kotlin.Double
333333
import kotlin.String
334334
import kotlin.Suppress

compiler/src/test/kotlin/deezer/kustomexport/compiler/GenericsInterfaceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GenericsInterfaceTest {
3030
assertCompilationOutput(
3131
"""
3232
package foo.bar
33-
import deezer.kustom.KustomExport
33+
import deezer.kustomexport.KustomExport
3434
3535
open class GenericsBase
3636

compiler/src/test/kotlin/deezer/kustomexport/compiler/TypeMappingTest.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TypeMappingTest {
2828
assertCompilationOutput(
2929
"""
3030
package foo.bar
31-
import deezer.kustom.KustomExport
31+
import deezer.kustomexport.KustomExport
3232
3333
@KustomExport
3434
class AllTypesHandledByKotlinJs {
@@ -192,7 +192,7 @@ class TypeMappingTest {
192192
assertCompilationOutput(
193193
"""
194194
package foo.bar
195-
import deezer.kustom.KustomExport
195+
import deezer.kustomexport.KustomExport
196196
197197
@KustomExport
198198
class MyLongClass {
@@ -252,7 +252,7 @@ class TypeMappingTest {
252252
assertCompilationOutput(
253253
"""
254254
package foo.bar
255-
import deezer.kustom.KustomExport
255+
import deezer.kustomexport.KustomExport
256256
257257
@KustomExport
258258
class Nullables {
@@ -336,7 +336,7 @@ class TypeMappingTest {
336336
package foo.bar
337337
338338
import pokemon.Pikachu
339-
import deezer.kustom.KustomExport
339+
import deezer.kustomexport.KustomExport
340340
341341
@KustomExport
342342
class Arrays {
@@ -428,7 +428,7 @@ class TypeMappingTest {
428428
"""
429429
package pokedex
430430
431-
import deezer.kustom.KustomExport
431+
import deezer.kustomexport.KustomExport
432432
import pokemon.Pikachu
433433
434434
@KustomExport
@@ -503,7 +503,7 @@ class TypeMappingTest {
503503
"Lambdas.kt",
504504
"""
505505
package foo
506-
import deezer.kustom.KustomExport
506+
import deezer.kustomexport.KustomExport
507507
import pokemon.Pikachu
508508
509509
@KustomExport

0 commit comments

Comments
 (0)