From 90606b24552066b7d5e4652fa34b14866b5a1685 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Mon, 5 Jun 2023 10:04:52 -0400 Subject: [PATCH] Small style cleanups in JVM Gradle plugin --- .../org/bitcoindevkit/plugins/UniFfiJvmPlugin.kt | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/bdk-jvm/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiJvmPlugin.kt b/bdk-jvm/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiJvmPlugin.kt index ca154ac..387b974 100644 --- a/bdk-jvm/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiJvmPlugin.kt +++ b/bdk-jvm/plugins/src/main/kotlin/org/bitcoindevkit/plugins/UniFfiJvmPlugin.kt @@ -27,15 +27,14 @@ internal class UniFfiJvmPlugin : Plugin { val cargoArgs: List = listOf("build", "--profile", "release-smaller", "--target", "aarch64-apple-darwin") args(cargoArgs) } - } else if(operatingSystem == OS.LINUX) { + } else if (operatingSystem == OS.LINUX) { exec { workingDir("${project.projectDir}/../../bdk-ffi") executable("cargo") val cargoArgs: List = listOf("build", "--profile", "release-smaller", "--target", "x86_64-unknown-linux-gnu") args(cargoArgs) } - } - else if(operatingSystem == OS.WINDOWS) { + } else if (operatingSystem == OS.WINDOWS) { exec { workingDir("${project.projectDir}/../../bdk-ffi") executable("cargo") @@ -88,13 +87,8 @@ internal class UniFfiJvmPlugin : Plugin { ) } val libName = when (operatingSystem) { - OS.WINDOWS -> { - "bdkffi" - } - - else -> { - "libbdkffi" - } + OS.WINDOWS -> "bdkffi" + else -> "libbdkffi" } libsToCopy.forEach {