Skip to content

Commit

Permalink
Merge pull request #1478 from WalletConnect/remove_jakarta_ws_dep
Browse files Browse the repository at this point in the history
Remove jakarta.ws dependency
  • Loading branch information
jakubuid committed Aug 21, 2024
2 parents d569de5 + 2082bcb commit 7591261
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion foundation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

package com.walletconnect.util

import jakarta.ws.rs.core.UriBuilder
import java.security.SecureRandom
import kotlin.math.pow

Expand Down Expand Up @@ -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()
}
internal fun String.addUserAgent(sdkVersion: String): String = "$this&ua=wc-2/kotlin-$sdkVersion"
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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" }
Expand Down

0 comments on commit 7591261

Please sign in to comment.