Skip to content

Commit

Permalink
Fix: debug build for tests (#3283)
Browse files Browse the repository at this point in the history
## Description

<!--
Description and motivation for this PR.

Include 'Fixes #<number>' if this is fixing some issue.
-->

Fixes #3232 

As stated in the
[comment](https://github.com/software-mansion/react-native-gesture-handler/blob/main/android/build.gradle#L149-L152)
gradle complains about duplicated versions of libraries. Excluding
`libc++_shared.so` seems to solve the problem.

## Test plan

In android directory run:
`./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug`

Tested on new/old architecture with/without expo. 

<!--
Describe how did you test this change here.
-->
  • Loading branch information
coado authored Dec 13, 2024
1 parent 1665fc9 commit 281b8a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ android {
exclude "**/libreact_render*.so"
exclude "**/libreactnative.so"
exclude "**/libjsi.so"
exclude "**/libc++_shared.so"
}

sourceSets.main {
Expand Down

0 comments on commit 281b8a5

Please sign in to comment.