Added hash test, fixed idea native cinterop resolution
This commit is contained in:
parent
006dd47873
commit
14676337fc
@ -275,6 +275,9 @@ kotlin {
|
||||
|
||||
val nativeMain by creating {
|
||||
dependsOn(commonMain)
|
||||
isRunningInIdea {
|
||||
kotlin.srcDirs()
|
||||
}
|
||||
dependencies {
|
||||
nativeDependencies(this)
|
||||
}
|
||||
@ -338,7 +341,7 @@ kotlin {
|
||||
|
||||
compilations.getByName("main") {
|
||||
if (linux64Bit.contains(this@withType.name)) {
|
||||
defaultSourceSet.dependsOn(createWorkaroundNativeMainSourceSet(this@withType.name, nativeDependencies))
|
||||
defaultSourceSet.dependsOn(nativeMain)
|
||||
}
|
||||
if (linux32Bit.contains(this@withType.name)) {
|
||||
defaultSourceSet.dependsOn(createWorkaround32bitNativeMainSourceSet(this@withType.name, nativeDependencies))
|
||||
@ -449,9 +452,8 @@ kotlin {
|
||||
}
|
||||
}
|
||||
val linuxX64Main by getting {
|
||||
dependsOn(nativeMain)
|
||||
isRunningInIdea {
|
||||
kotlin.srcDir("src/nativeMain")
|
||||
kotlin.srcDir("src/nativeMain/kotlin")
|
||||
}
|
||||
}
|
||||
val linuxX64Test by getting {
|
||||
|
@ -1,4 +1,5 @@
|
||||
import com.ionspin.kotlin.crypto.hash.blake2b.Blake2bDelegated
|
||||
import com.ionspin.kotlin.crypto.hash.blake2b.Blake2bStateless
|
||||
import kotlin.time.ExperimentalTime
|
||||
import kotlin.time.measureTime
|
||||
|
||||
@ -9,4 +10,5 @@ fun main() {
|
||||
// Blake
|
||||
val blake = Blake2bDelegated()
|
||||
println("Result ${blake.digest()}")
|
||||
println("Result: ${Blake2bStateless.digest("test")}")
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
import com.ionspin.kotlin.crypto.hash.blake2b.Blake2bDelegated
|
||||
import com.ionspin.kotlin.crypto.hash.blake2b.Blake2bStateless
|
||||
import kotlin.time.ExperimentalTime
|
||||
import kotlin.time.measureTime
|
||||
|
||||
@ -9,4 +10,6 @@ fun main() {
|
||||
// Blake
|
||||
val blake = Blake2bDelegated()
|
||||
blake.digest()
|
||||
println("Result: ${Blake2bStateless.digest("test")}")
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user