Skip to content

Commit

Permalink
Fix for duplicate class errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chintan-soni-cko committed May 4, 2023
1 parent ce6c418 commit a38dd47
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dependencies {
// Duplicate class f.c found in modules android-sdk-0.1.1-runtime (ai.zowie:android-sdk:0.1.1) and checkout-sdk-3ds-android-2.0.4-runtime (com.checkout:checkout-sdk-3ds-android:2.0.4)
// Duplicate class g.a found in modules android-sdk-0.1.1-runtime (ai.zowie:android-sdk:0.1.1) and checkout-sdk-3ds-android-2.0.4-runtime (com.checkout:checkout-sdk-3ds-android:2.0.4)
// Duplicate class g.b found in modules android-sdk-0.1.1-runtime (ai.zowie:android-sdk:0.1.1) and checkout-sdk-3ds-android-2.0.4-runtime (com.checkout:checkout-sdk-3ds-android:2.0.4)
implementation 'com.checkout:checkout-sdk-3ds-android:2.0.4'
implementation 'com.checkout:checkout-sdk-3ds-android:3.0.1-testonly-01'

// when frames is added to the project together with checkout 3ds, we have the following error:
// Type com.checkout.eventlogger.R is defined multiple times: /Users/jangonera/projekty/poligon/checkoutminify/app/build/intermediates/compile_and_runtime_not_namespaced_r_class_jar/debug/R.jar:com/checkout/eventlogger/R.class, /Users/jangonera/.gradle/caches/transforms-3/31d124a7cd8ba916f4f23c0cd71dc755/transformed/checkout-sdk-3ds-android-2.0.4-runtime.jar:com/checkout/eventlogger/R.class
Expand Down
12 changes: 12 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@
-dontwarn org.openjsse.**
-dontwarn com.google.errorprone.annotations.Immutable
-dontwarn d.a.c.**

#Note:This is warning class being exposed from the checkout 3DS SDK and its known issue. We are adding dontwanr class rules
# in 3DS SDK because it is not necessary to expose to merchant who use 3DS SDK. However, currently workaround of adding missing rules in proguard able to resolve missing class rules compile error
-dontwarn b.a.c.g.b
-dontwarn b.a.c.g.f
-dontwarn b.a.c.g.k$a
-dontwarn b.a.c.g.k$b
-dontwarn b.a.c.g.o
-dontwarn b.a.c.g.p
-dontwarn b.a.c.g.t
-dontwarn b.a.c.l.a
-dontwarn com.checkout.sessions.data.mapper.KeyMapper
#
#-dontwarn com.google.errorprone.annotations.Immutable
#-dontwarn d.a.c.g.b
Expand Down

0 comments on commit a38dd47

Please sign in to comment.