plaid / plaid-link-android

Plaid Link Android SDK
https://plaid.com/docs/link/android
MIT License
114 stars 48 forks source link

[BUG] Duplicate class com.sumsub.sns:idensic-mobile-sdk #268

Open AnnaBitsUK opened 5 months ago

AnnaBitsUK commented 5 months ago

The problem

Hello, I have a compatibility issue with other libs in the app. Multiple libs depend transitively on the same lib with different versions I resolved the conflict, but I have a crash on one of the sumsub screens.

Dependency Versions

com.plaid.link:sdk-core:3.10.1 com.sumsub.sns:idensic-mobile-sdk:1.27.1

kotlin: 1.8.21 stripe-android: 18.2.0 Android Gradle Plugin: 8.3.1 Gradle: gradle-8.4-bin.zip

Other information

Plaid com.plaid.link:sdk-core:3.10.1 org.bouncycastle:bcpkix-jdk15to18:1.69 org.bouncycastle:bcprov-jdk15to18:1.69 org.bouncycastle:bcutil-jdk15to18:1.69 org.bouncycastle:bcprov-jdk15to18:1.69

Sumsub com.sumsub.sns:idensic-mobile-sdk:1.27.1 com.sumsub.sns:idensic-mobile-sdk-ui:1.27.1 com.sumsub.sns:idensic-mobile-sdk-internal-core:1.27.1 org.jmrtd:jmrtd:0.7.34 org.bouncycastle:bcutil-jdk18on:1.71

Without resolving the conflict, I can't build a project with an error

bcprov-jdk15to18:1.69 and jetified-bcprov-jdk18on-1.71 (org.bouncycastle:bcprov-jdk18on:1.71) Duplicate class org.bouncycastle.math.ec.custom.sec.SecP224K1Field found in modules jetified-bcprov-jdk15to18-1.69 (org.bouncycastle:bcprov-jdk15to18:1.69) and jetified-bcprov-jdk18on-1.71 (org.bouncycastle:bcprov-jdk18on:1.71)

And many other classes

Current resolution

configurations.all { c -> c.resolutionStrategy.eachDependency { DependencyResolveDetails dependency -> println dependency.requested.group if (dependency.requested.group == 'org.bouncycastle') { dependency.useTarget 'org.bouncycastle:bcprov-jdk15to18:1.69' } } }

Plaid works but I have a crash on one of the Sumsub screens.

Do you have a solution for sumsub compatibility? Thank you