summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-06-02 17:03:19 -0300
committerTorsten Grote <t@grobox.de>2020-06-03 08:53:37 -0300
commit72c020c3077cb3c0df1ab0fa629f11ea686e140d (patch)
tree380a4c7c6fb49aa4c49c2972d31e401357fb2762 /build.gradle
parent75667b9fd2644b737aee17c5c43f1c0f260f7c0d (diff)
downloadwallet-kotlin-72c020c3077cb3c0df1ab0fa629f11ea686e140d.tar.gz
wallet-kotlin-72c020c3077cb3c0df1ab0fa629f11ea686e140d.tar.bz2
wallet-kotlin-72c020c3077cb3c0df1ab0fa629f11ea686e140d.zip
Add SHA-512 implementations for all platforms
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle17
1 files changed, 13 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index d9f4cb0..7e06be1 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,8 +9,9 @@ version '0.0.1'
apply plugin: 'maven-publish'
+
kotlin {
- jvm()
+ jvm("android")
js {
browser {
}
@@ -21,7 +22,13 @@ kotlin {
// 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
- linuxX64("linux")
+ linuxX64("linux") {
+ compilations.main.cinterops {
+ sodium {
+ packageName 'org.libsodium'
+ }
+ }
+ }
sourceSets {
commonMain {
dependencies {
@@ -34,12 +41,13 @@ kotlin {
implementation kotlin('test-annotations-common')
}
}
- jvmMain {
+ androidMain {
dependencies {
implementation kotlin('stdlib-jdk8')
+ implementation 'org.bouncycastle:bcprov-jdk15on:1.65.01'
}
}
- jvmTest {
+ androidTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
@@ -48,6 +56,7 @@ kotlin {
jsMain {
dependencies {
implementation kotlin('stdlib-js')
+ implementation npm('tweetnacl', '1.0.3')
}
}
jsTest {