Merge pull request #10 from ionspin/1.5.0-bump

1.5.0 bump
This commit is contained in:
Ugljesa Jovanovic 2021-05-28 12:24:31 +02:00 committed by GitHub
commit 9624cf8bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 15 additions and 12 deletions

View File

@ -1,7 +1,10 @@
## Descriptive changelog ## Descriptive changelog
(All dates are DD.MM.YYYY) (All dates are DD.MM.YYYY)
#### 0.8.3-SNAPSHOT #### 0.8.4-SNAPSHOT
#### 0.8.3 - 28.5.2021
- Built with kotlin 1.5.10
- Fixed loading but not initializing libsodium on js and jvm - Fixed loading but not initializing libsodium on js and jvm
- Changed subkey id to UInt from Int, limited by JS api - Changed subkey id to UInt from Int, limited by JS api
- Updated libsodium to latest master 710b2d3963347017ba (potentially will be switched to stable branch) - Updated libsodium to latest master 710b2d3963347017ba (potentially will be switched to stable branch)

View File

@ -31,7 +31,7 @@ repositories {
} }
dependencies { dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32") implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
implementation("com.android.tools.build:gradle:4.0.2") implementation("com.android.tools.build:gradle:4.0.2")
} }

View File

@ -15,10 +15,10 @@
*/ */
object Versions { object Versions {
val kotlinCoroutines = "1.4.2" val kotlinCoroutines = "1.5.0-native-mt"
val kotlin = "1.4.30" val kotlin = "1.5.10"
val kotlinSerialization = "1.0.1" val kotlinSerialization = "1.0.1"
val kotlinSerializationPlugin = "1.4.10" val kotlinSerializationPlugin = "1.5.10"
val atomicfu = "0.14.3-M2-2-SNAPSHOT" //NOTE: my linux arm32 and arm64 build val atomicfu = "0.14.3-M2-2-SNAPSHOT" //NOTE: my linux arm32 and arm64 build
val nodePlugin = "1.3.0" val nodePlugin = "1.3.0"
val dokkaPlugin = "1.4.0-rc" val dokkaPlugin = "1.4.0-rc"
@ -41,7 +41,7 @@ object Versions {
object ReleaseInfo { object ReleaseInfo {
val group = "com.ionspin.kotlin" val group = "com.ionspin.kotlin"
val version = "0.1.0-SNAPSHOT" val version = "0.1.0-SNAPSHOT"
val bindingsVersion = "0.8.3-SNAPSHOT" val bindingsVersion = "0.8.4-SNAPSHOT"
} }
object Deps { object Deps {

View File

@ -708,7 +708,7 @@ publishing {
artifact(tasks["javadocJar"]) artifact(tasks["javadocJar"])
pom { pom {
name.set("Kotlin Multiplatform Crypto") name.set("Kotlin Multiplatform Crypto")
description.set("Kotlin Multiplatform Crypto library") description.set("Kotlin Multiplatform Libsodium Wrapper")
url.set("https://github.com/ionspin/kotlin-multiplatform-crypto") url.set("https://github.com/ionspin/kotlin-multiplatform-crypto")
licenses { licenses {
license { license {
@ -724,9 +724,9 @@ publishing {
} }
} }
scm { scm {
url.set("https://github.com/ionspin/kotlin-multiplatform-crypto") url.set("https://github.com/ionspin/kotlin-multiplatform-libsodium")
connection.set("scm:git:git://git@github.com:ionspin/kotlin-multiplatform-crypto.git") connection.set("scm:git:git://git@github.com:ionspin/kotlin-multiplatform-libsodium.git")
developerConnection.set("scm:git:ssh://git@github.com:ionspin/kotlin-multiplatform-crypto.git") developerConnection.set("scm:git:ssh://git@github.com:ionspin/kotlin-multiplatform-libsodium.git")
} }

View File

@ -9,11 +9,11 @@ fun String.hexStringToUByteArray() : UByteArray {
return this.chunked(2).map { it.toUByte(16) }.toUByteArray() return this.chunked(2).map { it.toUByte(16) }.toUByteArray()
} }
fun String.encodeToUByteArray() : UByteArray{ fun String.encodeToUByteArray() : UByteArray{
return encodeToByteArray().asUByteArray() return encodeToByteArray().asUByteArray()
} }
fun UByteArray.decodeFromUByteArray() : String { fun UByteArray.decodeFromUByteArray() : String {
return asByteArray().decodeToString() return asByteArray().decodeToString()
} }