summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-28 16:20:18 -0400
committerJonathan Buchanan <jonathan.russ.buchanan@gmail.com>2020-07-28 16:20:18 -0400
commit6251cc652720ab0fefa4e5fd7238ee2f043838e3 (patch)
tree89a48af5f2e71ff498182b3c37343701c2ed498e /build.gradle
parent3e1418bd3061bd7a387273934fab752a5999432f (diff)
downloadwallet-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.gradle26
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')