didi / booster

🚀Optimizer for mobile applications
https://booster.johnsonlee.io
Apache License 2.0
4.9k stars 577 forks source link

How use thread transform with multimode application and dynamic loading libraries #393

Closed 0xera closed 1 year ago

0xera commented 2 years ago

I need to use thread transform in a multi-module project but I have a NoClassDefinedError at runtime. Same issue for dynamic libraries (not dynamic feature) like firebase, gms

johnsonlee commented 1 year ago

could you share more details?

0xera commented 1 year ago

No( Because I remove this plugin. I couldn't set up it in multi nodule project, because it requires add threads instrumentation library to all modules and transformer change sources in libraries like firebase, but I can't add threads instrumentation to that libraries. At the end my app fails with RuntimeException because he can't found ShadowThread in some firebase library