From 21f01d3f2ef79929b40d8bb7f0851b15e4a39e19 Mon Sep 17 00:00:00 2001 From: Nikolay Pachkov Date: Thu, 16 May 2024 22:19:57 +0200 Subject: [PATCH] fix: swift export name --- .../com/compiler/server/controllers/CompilerRestController.kt | 2 +- .../com/compiler/server/model/KotlinTranslatableCompiler.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt b/src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt index 67c1e87c..03cb8354 100644 --- a/src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt +++ b/src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt @@ -28,7 +28,7 @@ class CompilerRestController(private val kotlinProjectExecutor: KotlinProjectExe KotlinTranslatableCompiler.JS -> kotlinProjectExecutor.convertToJsIr(project) KotlinTranslatableCompiler.WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo) KotlinTranslatableCompiler.COMPOSE_WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo) - KotlinTranslatableCompiler.SWIFT -> kotlinProjectExecutor.convertToSwift(project).let { + KotlinTranslatableCompiler.SWIFT_EXPORT -> kotlinProjectExecutor.convertToSwift(project).let { // TODO: A hack to avoid changing the return type of the function. object : TranslationResultWithJsCode(it.swiftCode, it.compilerDiagnostics, it.exception) {} } diff --git a/src/main/kotlin/com/compiler/server/model/KotlinTranslatableCompiler.kt b/src/main/kotlin/com/compiler/server/model/KotlinTranslatableCompiler.kt index 4bc2dc8c..bdeb2901 100644 --- a/src/main/kotlin/com/compiler/server/model/KotlinTranslatableCompiler.kt +++ b/src/main/kotlin/com/compiler/server/model/KotlinTranslatableCompiler.kt @@ -4,5 +4,5 @@ enum class KotlinTranslatableCompiler { JS, WASM, COMPOSE_WASM, - SWIFT, + SWIFT_EXPORT, } \ No newline at end of file