hyperledger-web3j/web3j

Update BouncyCastle in org.web3j:core:4.8.7-android

Closed this issue · 3 comments

Issue_title

After attempting to use another library that utilizes BouncyCastle version 1.77, I encountered a dependency issue. Upon inspecting the dependency tree for the latest Android version of org.web3j:core:4.8.7-android, I observed the following dependency. I believe updating to a newer version is necessary to accommodate the new version of BouncyCastle.

+--- org.web3j:core:4.8.7-android
|    +--- org.web3j:abi:4.8.7-android -> 4.9.5
|    |    \--- org.web3j:utils:4.9.5
|    |         \--- org.bouncycastle:bcprov-jdk15on:1.68

Issue_description

Leads to build error:
Caused by: java.lang.RuntimeException: Duplicate class org.bouncycastle.LICENSE found in modules jetified-bcprov-jdk15on-1.68 (org.bouncycastle:bcprov-jdk15on:1.68) and jetified-bcprov-jdk18on-1.77 (org.bouncycastle:bcprov-jdk18on:1.77)

Also ran into this issue after updating the latest version of wallet connect kotlin: https://github.com/WalletConnect/WalletConnectKotlinV2

@BradMoeller
There's a new release of WalletConnect which resolves this issue on Android

Closing as a hotfix is provided in release web3j-4.9.8-hotfix
Thanks @Talhaali00 for contributing.