From 6438f49a17a862d5cdab4f72c2cb27a7235506df Mon Sep 17 00:00:00 2001 From: Gleb Date: Thu, 3 Aug 2023 09:53:06 -0700 Subject: [PATCH] Bump java SDK version (#115) * Bump java SDK version * Update readme --- README.md | 4 ++-- build.gradle.kts | 2 +- examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt | 3 ++- gradle/libs.versions.toml | 2 +- .../main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt | 2 +- .../src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt | 2 +- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d59ca3a..baacee2 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ Maven: org.stellar wallet-sdk - 0.9.2 + 0.10.0 ``` Gradle: ```gradle -implementation("org.stellar:wallet-sdk:0.9.2") +implementation("org.stellar:wallet-sdk:0.10.0") ``` ## Introduction diff --git a/build.gradle.kts b/build.gradle.kts index c766ae3..4311183 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -16,7 +16,7 @@ val jvmVersion = JavaVersion.VERSION_1_8 allprojects { group = "org.stellar.wallet-sdk" - version = "0.9.2" + version = "0.10.0" } subprojects { diff --git a/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt b/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt index d13beff..edd9f00 100644 --- a/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt +++ b/examples/SEP-24/src/main/kotlin/org/stellar/example/Main.kt @@ -111,7 +111,8 @@ suspend fun main() { // Send transaction with transfer val anchorTransaction = (statusChange.transaction as WithdrawalTransaction) - val transfer = stellar.transaction(keypair).transferWithdrawalTransaction(anchorTransaction, asset).build() + val transfer = + stellar.transaction(keypair).transferWithdrawalTransaction(anchorTransaction, asset).build() transfer.sign(keypair) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b6ff883..a311287 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ coroutines = "1.6.4" google-gson = "2.8.9" hoplite = "2.7.0" -java-stellar-sdk = "0.34.2" +java-stellar-sdk = "0.40.0" dokka = "1.6.10" kotlin = "1.8.20" kotlinx-json = "1.5.0" diff --git a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt index 49ce043..049977c 100644 --- a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt +++ b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/WalletSigner.kt @@ -51,7 +51,7 @@ interface WalletSigner { * @constructor Create empty Json http signer * @property url url to which requests should be made * @property requestTransformer optional transformer of the default request. Can be used for - * authentication purposes, etc. + * authentication purposes, etc. */ class DomainSigner(val url: String, val requestTransformer: HttpRequestBuilder.() -> Unit = {}) : DefaultSigner() { diff --git a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt index 753746e..a603e5f 100644 --- a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt +++ b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt @@ -1,6 +1,7 @@ package org.stellar.walletsdk.horizon import java.time.Duration +import kotlin.math.min import mu.KotlinLogging import org.stellar.sdk.* import org.stellar.sdk.responses.SubmitTransactionTimeoutResponseException @@ -12,7 +13,6 @@ import org.stellar.walletsdk.exception.ValidationException import org.stellar.walletsdk.extension.accountOrNull import org.stellar.walletsdk.horizon.transaction.TransactionBuilder import org.stellar.walletsdk.util.toTimeBounds -import kotlin.math.min private val log = KotlinLogging.logger {}