diff --git a/build.gradle.kts b/build.gradle.kts index 4a72fde..99f50fd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ val jvmVersion = JavaVersion.VERSION_11 allprojects { group = "org.stellar.wallet-sdk" - version = "1.2.0" + version = "1.2.1" } subprojects { diff --git a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/Wallet.kt b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/Wallet.kt index 211d0ba..f2882ce 100644 --- a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/Wallet.kt +++ b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/Wallet.kt @@ -129,6 +129,10 @@ data class ApplicationConfiguration( val defaultClientDomain: String? = null, val defaultClientConfig: ClientConfigFn = {} ) { + companion object { + val useHttp: ClientConfigFn = { defaultRequest { url { protocol = URLProtocol.HTTP } } } + } + val defaultClient = HttpClient(OkHttp) { install(ContentNegotiation) { json(defaultJson) }