From 2082bcb9f4c8f8741d1d67cbcd6ef54768688d74 Mon Sep 17 00:00:00 2001 From: kubel Date: Mon, 19 Aug 2024 13:47:50 +0200 Subject: [PATCH] Remove jakarta.ws dependency --- foundation/build.gradle.kts | 1 - .../com/walletconnect/foundation/util/UtilFunctions.kt | 8 +------- gradle/libs.versions.toml | 2 -- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/foundation/build.gradle.kts b/foundation/build.gradle.kts index ba5b0ccc40..7cea88f351 100644 --- a/foundation/build.gradle.kts +++ b/foundation/build.gradle.kts @@ -39,7 +39,6 @@ dependencies { ksp(libs.moshi.ksp) api(libs.bouncyCastle) api(libs.mulitbase) - implementation(libs.wsRestJava) testImplementation(libs.jerseyCommon) testImplementation(libs.coroutines.test) diff --git a/foundation/src/main/kotlin/com/walletconnect/foundation/util/UtilFunctions.kt b/foundation/src/main/kotlin/com/walletconnect/foundation/util/UtilFunctions.kt index 8da922f060..54413a71b1 100644 --- a/foundation/src/main/kotlin/com/walletconnect/foundation/util/UtilFunctions.kt +++ b/foundation/src/main/kotlin/com/walletconnect/foundation/util/UtilFunctions.kt @@ -2,7 +2,6 @@ package com.walletconnect.util -import jakarta.ws.rs.core.UriBuilder import java.security.SecureRandom import kotlin.math.pow @@ -60,9 +59,4 @@ fun String.hexToBytes(): ByteArray { } @JvmSynthetic -internal fun String.addUserAgent(sdkVersion: String): String { - return UriBuilder.fromUri(this) - .queryParam("ua", """wc-2/kotlin-$sdkVersion""") - .build() - .toString() -} \ No newline at end of file +internal fun String.addUserAgent(sdkVersion: String): String = "$this&ua=wc-2/kotlin-$sdkVersion" \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6166b39eb2..9b92764b18 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -32,7 +32,6 @@ json = "20220924" timber = "5.0.1" web3j = "4.9.8-hotfix" kethereum = "0.86.0" -wsRestJava = "4.0.0" relinker = "1.4.5" coil = "2.6.0" customQrGenerator = "1.6.2" @@ -152,7 +151,6 @@ bouncyCastle = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "boun sqlCipher = { module = "net.zetetic:android-database-sqlcipher", version.ref = "sqlCipher" } relinker = { module = "com.getkeepsafe.relinker:relinker", version.ref = "relinker" } mulitbase = { module = "com.github.multiformats:java-multibase", version.ref = "multibase" } -wsRestJava = { module = "jakarta.ws.rs:jakarta.ws.rs-api", version.ref = "wsRestJava" } jerseyCommon = { module = "org.glassfish.jersey.core:jersey-common", version.ref = "jerseyCommon" } mockk = { module = "io.mockk:mockk", version.ref = "mockk" } robolectric = { module = "org.robolectric:robolectric", version.ref = "robolectric" }