komputing / KHash

Different hash functions in Kotlin (SHA3 with Keccak and Shake variants, sha256, ripemd160)
MIT License
54 stars 10 forks source link

Bring back multiplatform support #20

Closed friedger closed 3 years ago

friedger commented 4 years ago

I failed to include the library into a common source set of the multi platform project KaMPkit

The jvm part can be found in the android module

Steps to reproduce:

  1. clone Kampkit
  2. add jitpack repo: maven(url = "https://jitpack.io")
  3. add khash depedency: implementation("com.github.komputing:Khash:6fe00e9c11")
  4. add usage, e.g. in BreedModel:
    println("The quick brown fox jumps over the lazy dog".sha512())

The function can't be found. However, in AndroidMain ,e.g. in PlatformAndroid, the sha512 call can be correctly added.

Is this only a problem with the way of publications?

ligi commented 3 years ago

closed by @fullkomnun in #21