Instabug/Instabug-Android

Duplicate classes since version 12 (12.2 and (12.3.1) in okhttp-interceptor, probable proguard issue

joost-klitsie opened this issue · 1 comments

Steps to Reproduce the Problem

Add instabug and instabug-okhttp-interceptor dependencies versions 12.3.1
Add another dependency like datatrans, ch.datatrans:android-sdk:3.3.0 that also has a wrong proguard config
Run a release build

Expected Behavior

I can build the application just fine

Actual Behavior

I get a Duplicate Class Errror
Duplicate class a.a found in modules android-sdk-3.3.0-runtime (ch.datatrans:android-sdk:3.3.0) and instabug-apm-okhttp-interceptor-12.3.1-runtime (com.instabug.library:instabug-apm-okhttp-interceptor:12.3.1)

SDK Version

12.3.1

More information

It looks like the proguard file of Instabug is misconfigured. It should repackage the changed packages (like a.a.a) into something instabug related.
Currently you can see the packages start with a, b, c, and in other instabug libraries they are correctly within a com.instabug.whatever
image

If I compare it to version 11.14.0 you can see the difference:
image

I will also raise an issue at datatrans :)

We are aware of that issue and a fix for it should be in our next release 🙏