Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for detox #13

Open
samuelgja opened this issue Aug 2, 2023 · 2 comments
Open

Add support for detox #13

samuelgja opened this issue Aug 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@samuelgja
Copy link

Add detox support by exclude some libs in build.gradle

What went wrong

If run android app via detox test, it will failed during the build.
Issue is with duplicate .so libraries.

Possible fix

Excludes from Build.gradle, then detox works.

   excludes = [
              "META-INF",
              "META-INF/**",
              "**/libjsi.so",
              "**/libreact_nativemodule_core.so",
              "**/libturbomodulejsijni.so",
              "**/libc++_shared.so",
              "**/libfbjni.so",
              "**/libhermes_executor.so"     
      ]
@samuelgja samuelgja changed the title Add support for detox. Add support for detox Aug 2, 2023
@aleksblago
Copy link

I was able to successfully run android tests with the previous setup but it may be worth spending some time on this fix. If this change works, lets go ahead and get it in. Is there any documentation or stackoverflow posts that support the idea that this change would work?

@samuelgja
Copy link
Author

@aleksblago almost similar fix is in: mrousavy/react-native-mmkv#512

basically, maybe it works with plain rn app, but when you have a bigger project, with more native libraries, there can be an issue with duplicate .so

@Montchy Montchy added the enhancement New feature or request label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants