From ba4d2abd27bac89168c37f2cfa92d12f0bcfe876 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Tue, 24 May 2022 21:28:42 +0300 Subject: [PATCH] Add native targets --- .../src/main/kotlin/ru/mipt/npm/controls/ports/KtorTcpPort.kt | 2 +- magix/magix-api/build.gradle.kts | 1 + magix/magix-rsocket/build.gradle.kts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/controls-tcp/src/main/kotlin/ru/mipt/npm/controls/ports/KtorTcpPort.kt b/controls-tcp/src/main/kotlin/ru/mipt/npm/controls/ports/KtorTcpPort.kt index c9227d5..ca2cf61 100644 --- a/controls-tcp/src/main/kotlin/ru/mipt/npm/controls/ports/KtorTcpPort.kt +++ b/controls-tcp/src/main/kotlin/ru/mipt/npm/controls/ports/KtorTcpPort.kt @@ -37,7 +37,7 @@ public class KtorTcpPort internal constructor( private val listenerJob = scope.launch { val input = futureSocket.await().openReadChannel() - input.consumeEachBufferRange { buffer, last -> + input.consumeEachBufferRange { buffer, _ -> val array = ByteArray(buffer.remaining()) buffer.get(array) receive(array) diff --git a/magix/magix-api/build.gradle.kts b/magix/magix-api/build.gradle.kts index c6eb397..7a11b09 100644 --- a/magix/magix-api/build.gradle.kts +++ b/magix/magix-api/build.gradle.kts @@ -1,5 +1,6 @@ plugins { id("ru.mipt.npm.gradle.mpp") + id("ru.mipt.npm.gradle.native") `maven-publish` } diff --git a/magix/magix-rsocket/build.gradle.kts b/magix/magix-rsocket/build.gradle.kts index 3ded3e8..3d445a0 100644 --- a/magix/magix-rsocket/build.gradle.kts +++ b/magix/magix-rsocket/build.gradle.kts @@ -1,5 +1,6 @@ plugins { id("ru.mipt.npm.gradle.mpp") + id("ru.mipt.npm.gradle.native") `maven-publish` }