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

Make grep pattern for detecting multiple installations stronger #2173

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Aug 18, 2022

Description

Previous pattern caused problems when library was used directly from GitHub (not downloaded from package repository) as there were multiple package.json files with "/react-native-gesture-handler/" in their path (example applications, etc.).

This commit narrows down the search to look only for "main package.json" files.

Test plan

Install react-native-gesture-handler directly from repository and see that it works after applying this patch.

Previous pattern caused problems when library was used directly from
github (not downloaded from package repository) as there were multiple
package.json files with "/react-native-gesture-handler/" in their path
(example applications, etc.).
This commits narrows down the search to look only for "main
package.json" files.
@kkafar kkafar changed the title fix: make grep pattern for detecting multiple installations stronger Make grep pattern for detecting multiple installations stronger Aug 18, 2022
@kkafar kkafar requested a review from j-piasecki August 18, 2022 09:01
@tomekzaw tomekzaw self-requested a review August 18, 2022 11:27
@tomekzaw
Copy link
Member

Good catch! 👏 Can we also have:

  • Android 🙏
  • analogous PR to Reanimated (it has only one package.json but let's keep this chunk of code identical) 🙏

@kkafar
Copy link
Member Author

kkafar commented Aug 18, 2022

@tomekzaw

I partially fixed Android implementation here in this PR.

Also I issued PR for Android in react-native-reanimated repo. However it seems to me that iOS implementation is fine there.

@j-piasecki j-piasecki merged commit 5ba61d9 into main Aug 19, 2022
@j-piasecki j-piasecki deleted the @kkafar/fix-grep-in-podspec branch August 19, 2022 13:31
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.

None yet

3 participants