diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-28 16:20:18 -0400 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2020-07-28 16:20:18 -0400 |
commit | 6251cc652720ab0fefa4e5fd7238ee2f043838e3 (patch) | |
tree | 89a48af5f2e71ff498182b3c37343701c2ed498e /build.gradle | |
parent | 3e1418bd3061bd7a387273934fab752a5999432f (diff) | |
download | wallet-kotlin-6251cc652720ab0fefa4e5fd7238ee2f043838e3.tar.gz wallet-kotlin-6251cc652720ab0fefa4e5fd7238ee2f043838e3.tar.bz2 wallet-kotlin-6251cc652720ab0fefa4e5fd7238ee2f043838e3.zip |
add build configuration for ios
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 007a4bd..d053bc7 100644 --- a/build.gradle +++ b/build.gradle @@ -43,6 +43,18 @@ kotlin { } } // For ARM, should be changed to iosArm32 or iosArm64 + ios { + compilations.main.cinterops { + sodium { + packageName 'org.libsodium' + } + } + binaries { + framework { + baseName = "TalerWallet" + } + } + } // For Linux, should be changed to e.g. linuxX64 // For MacOS, should be changed to e.g. macosX64 // For Windows, should be changed to e.g. mingwX64 @@ -78,6 +90,20 @@ kotlin { api "io.ktor:ktor-client-mock:$ktor_version" } } + iosMain { + dependencies { + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:$coroutines_version" + implementation "io.ktor:ktor-client-ios:$ktor_version" + implementation "io.ktor:ktor-client-logging-native:$ktor_version" + implementation "io.ktor:ktor-client-serialization-native:$ktor_version" + } + } + iosTest { + dependencies { + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:$coroutines_version" + api "io.ktor:ktor-client-mock-native:$ktor_version" + } + } androidMain { dependencies { implementation kotlin('stdlib-jdk8') |