aj
12/25/2023, 5:34 PM<https://kotlinlang.org/docs/native-app-with-c-and-libcurl.html>
to build targeting Android/iOS targets?electrolobzik
12/25/2023, 5:37 PMaj
12/25/2023, 5:37 PMaj
12/25/2023, 5:38 PMelectrolobzik
12/25/2023, 5:42 PMexpect
methods and put the implementations with actual
in the android and ios modules. In this case you will have 2 copies of your lib in each module (android and ios).aj
12/25/2023, 5:43 PMbuild.gradle.kts
adjustments that allows for building targeting NDK
and Xcode toolchain
🤔aj
12/25/2023, 5:45 PMelectrolobzik
12/25/2023, 6:21 PMLandry Norris
12/25/2023, 7:56 PMaj
12/25/2023, 7:58 PMLandry Norris
12/25/2023, 7:58 PMaj
12/25/2023, 7:58 PMLandry Norris
12/25/2023, 7:58 PMLandry Norris
12/25/2023, 7:59 PMaj
12/25/2023, 8:00 PMaj
12/25/2023, 8:00 PMLandry Norris
12/25/2023, 8:01 PMaj
12/25/2023, 8:02 PMLandry Norris
12/25/2023, 8:02 PMaj
12/25/2023, 8:03 PMLandry Norris
12/25/2023, 8:06 PMaj
12/25/2023, 8:08 PMaj
12/25/2023, 8:10 PMLandry Norris
12/25/2023, 8:15 PMaj
12/25/2023, 8:32 PMaj
12/25/2023, 8:32 PMLandry Norris
12/25/2023, 8:33 PMaj
12/25/2023, 8:48 PMaj
12/25/2023, 8:48 PMaj
12/25/2023, 8:48 PMaj
12/25/2023, 8:48 PMLandry Norris
12/25/2023, 8:52 PMaj
12/25/2023, 8:56 PMaj
12/25/2023, 8:56 PMaj
12/25/2023, 8:59 PMLandry Norris
12/25/2023, 9:01 PMLandry Norris
12/25/2023, 9:04 PMaj
12/25/2023, 9:18 PMaj
12/25/2023, 9:19 PMaj
12/25/2023, 9:19 PMLandry Norris
12/25/2023, 9:39 PMtasks {
val prepareAndroidNdkSo by creating {
dependsOn(build)
val debugArm32SoFolder = File(buildDir, "bin/androidNativeArm32/debugShared")
val jniArm32Folder = File(projectDir, "src/androidMain/jniLibs/armeabi-v7a")
val debugArm64SoFolder = File(buildDir, "bin/androidNativeArm64/debugShared")
val jniArm64Folder = File(projectDir, "src/androidMain/jniLibs/arm64-v8a")
val debugX86SoFolder = File(buildDir, "bin/androidNativeX86/debugShared")
val jniX86Folder = File(projectDir, "src/androidMain/jniLibs/x86")
val debugX64SoFolder = File(buildDir, "bin/androidNativeX64/debugShared")
val jniX64Folder = File(projectDir, "src/androidMain/jniLibs/x86_64")
doLast {
copy {
from(debugArm32SoFolder)
into(jniArm32Folder)
include("*.so")
}
copy {
from(debugArm64SoFolder)
into(jniArm64Folder)
include("*.so")
}
copy {
from(debugX86SoFolder)
into(jniX86Folder)
include("*.so")
}
copy {
from(debugX64SoFolder)
into(jniX64Folder)
include("*.so")
}
}
}
}