From edde093e30dea85b1bdef5f32e40ac90e10bce1b Mon Sep 17 00:00:00 2001 From: Ugljesa Jovanovic Date: Thu, 28 May 2020 23:47:15 +0200 Subject: [PATCH] Remove ios if --- multiplatform-crypto-delegated/build.gradle.kts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/multiplatform-crypto-delegated/build.gradle.kts b/multiplatform-crypto-delegated/build.gradle.kts index 3d27975..4e219cc 100644 --- a/multiplatform-crypto-delegated/build.gradle.kts +++ b/multiplatform-crypto-delegated/build.gradle.kts @@ -193,18 +193,16 @@ kotlin { compilations.getByName("main") { println("Setting cinterop for $name") defaultSourceSet.dependsOn(nativeMain) - if (!name.contains("ios")) { - val libsodiumCinterop by cinterops.creating { - defFile(project.file("src/nativeInterop/cinterop/libsodium.def")) - compilerOpts.add("-I${project.rootDir}/sodiumWrapper/include/") - } + val libsodiumCinterop by cinterops.creating { + defFile(project.file("src/nativeInterop/cinterop/libsodium.def")) + compilerOpts.add("-I${project.rootDir}/sodiumWrapper/include/") } + } compilations.getByName("test") { println("Setting cinterop for $name") - if (!name.contains("ios")) { - defaultSourceSet.dependsOn(nativeTest) - } + defaultSourceSet.dependsOn(nativeTest) + } }