Skip to content

Commit a49ae3d

Browse files
committed
fix: swift export name
1 parent 779ccae commit a49ae3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CompilerRestController(private val kotlinProjectExecutor: KotlinProjectExe
2828
KotlinTranslatableCompiler.JS -> kotlinProjectExecutor.convertToJsIr(project)
2929
KotlinTranslatableCompiler.WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo)
3030
KotlinTranslatableCompiler.COMPOSE_WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo)
31-
KotlinTranslatableCompiler.SWIFT -> kotlinProjectExecutor.convertToSwift(project).let {
31+
KotlinTranslatableCompiler.SWIFT_EXPORT -> kotlinProjectExecutor.convertToSwift(project).let {
3232
// TODO: A hack to avoid changing the return type of the function.
3333
object : TranslationResultWithJsCode(it.swiftCode, it.compilerDiagnostics, it.exception) {}
3434
}

src/main/kotlin/com/compiler/server/model/KotlinTranslatableCompiler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ enum class KotlinTranslatableCompiler {
44
JS,
55
WASM,
66
COMPOSE_WASM,
7-
SWIFT,
7+
SWIFT_EXPORT,
88
}

0 commit comments

Comments
 (0)