Skip to content

Conversation

@hurali97
Copy link
Member

@hurali97 hurali97 commented Dec 2, 2025

Summary

This fixes the bug reported by installing the latest reanimated which requires you to also install the worklets package. Since reanimated internally adds worklets as a subproject, it brings in the worklets dynamic (.so) lib with itself. Now, when worklets is compiled separately, we face the duplicate dynamic lib error because worklets.so already exists in the aar.

This was happening because we internally maintain a map to evaluate if a certain dynamic lib is already added to the AAR. However, due to the implementation details that map was being re-instantiated in the loop. The fix is to retain that map to correctly evaluate whether a dynamic lib is added to the AAR or not.

Test plan

Tested locally

@hurali97 hurali97 merged commit e5e00d3 into main Dec 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants