Skip to content

Commit

Permalink
Update Java SDK (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc authored May 13, 2024
1 parent a31961b commit 13e0975
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ val jvmVersion = JavaVersion.VERSION_11

allprojects {
group = "org.stellar.wallet-sdk"
version = "1.5.1"
version = "1.6.0"
}

subprojects {
Expand All @@ -25,7 +25,6 @@ subprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://jitpack.io") }
}

// Do not apply spotless and detekt to auto-generated files
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ coroutines = "1.6.4"
google-gson = "2.8.9"
hoplite = "2.7.0"
jjwt = "0.12.5"
java-stellar-sdk = "0.42.0"
java-stellar-sdk = "0.43.2"
dokka = "1.6.10"
kotlin = "1.8.20"
kotlinx-json = "1.5.0"
Expand All @@ -28,7 +28,7 @@ coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", ve
google-gson = { module = "com.google.code.gson:gson", version.ref = "google-gson" }
hoplite-core = { module = "com.sksamuel.hoplite:hoplite-core", version.ref = "hoplite" }
hoplite-yaml = { module = "com.sksamuel.hoplite:hoplite-yaml", version.ref = "hoplite" }
java-stellar-sdk = { module = "com.github.stellar:java-stellar-sdk", version.ref = "java-stellar-sdk" }
java-stellar-sdk = { module = "network.lightsail:stellar-sdk", version.ref = "java-stellar-sdk" }
jjwt = { module = "io.jsonwebtoken:jjwt", version.ref = "jjwt" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit5", version.ref = "kotlin" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import java.security.spec.X509EncodedKeySpec
import java.time.Duration
import java.time.Instant
import kotlinx.serialization.SerializationException
import mu.KotlinLogging
import org.bouncycastle.asn1.DEROctetString
import org.bouncycastle.asn1.edec.EdECObjectIdentifiers
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo
Expand All @@ -30,6 +31,8 @@ import org.stellar.walletsdk.json.fromJson
import org.stellar.walletsdk.toml.TomlInfo

internal object Util {
private val log = KotlinLogging.logger {}

internal fun String.isHex(): Boolean {
return this.toBigIntegerOrNull(16) != null
}
Expand Down Expand Up @@ -67,7 +70,7 @@ internal object Util {
}
.bodyAsText()

println(textBody)
log.debug { "Received $url response $textBody" }

return textBody.fromJsonOrError()
}
Expand Down

0 comments on commit 13e0975

Please sign in to comment.