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

[ios][android] Update react-native-gesture-handler to 2.7.0 #19362

Merged
merged 4 commits into from Oct 5, 2022

Conversation

tsapeta
Copy link
Member

@tsapeta tsapeta commented Oct 3, 2022

Why

Upgrading the gesture handler for SDK 47
Closes ENG-6529

How

  • Migrated react-native-gesture-handler to the new vendoring mechanism
  • Manually removed lib/build.gradle from the source code so our vendored autolinking doesn't detect this as a separate library. This build.gradle should and will get removed from the repo (it's not used and uses pretty old versions that don't compile)
  • et uvm -m react-native-gesture-handler -c 2.7.0

Test Plan

NCL examples seem to work fine

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Oct 3, 2022
@tsapeta tsapeta force-pushed the @tsapeta/update-gesture-handler branch from f112535 to bb1ae89 Compare October 3, 2022 08:35
@expo-bot expo-bot added bot: needs changes ExpoBot found things that don't meet our guidelines and removed bot: suggestions ExpoBot has some suggestions labels Oct 3, 2022
@linear
Copy link

linear bot commented Oct 4, 2022

@tsapeta tsapeta force-pushed the @tsapeta/update-gesture-handler branch from bb1ae89 to d7fa30f Compare October 4, 2022 13:01
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: needs changes ExpoBot found things that don't meet our guidelines labels Oct 4, 2022
@tsapeta tsapeta changed the title [ios][android] Update react-native-gesture-handler to 2.6.2 [ios][android] Update react-native-gesture-handler to 2.7.0 Oct 4, 2022
@tsapeta tsapeta force-pushed the @tsapeta/update-gesture-handler branch from d7fa30f to 1af1c34 Compare October 4, 2022 15:54
@tsapeta tsapeta marked this pull request as ready for review October 5, 2022 07:31
@tsapeta tsapeta requested a review from Kudo October 5, 2022 07:32
cmake {
cppFlags "-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all"
arguments "-DAPP_BUILD_DIR=${appProject.buildDir}",
"-DREACT_NATIVE_DIR=${REACT_NATIVE_DIR}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh no! gesture-handler has cpp code now, even though it's for fabric only 🤦‍♂️
that would increase the complexity in versioning the vendored module.
i'm just taking a note that i should aware of this 😅

Copy link
Contributor

@Kudo Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most changes look good to me. just as mentioned i should follow up with versioning later.
there're some nit comments for out-of-sync lock files. you could also update them after the pr landed.

thanks for migrating this module as new style vendoring 🔥

apps/bare-expo/ios/Podfile.lock Outdated Show resolved Hide resolved
@@ -58,6 +58,7 @@ const config: VendoringTargetConfig = {
source: 'https://github.com/software-mansion/react-native-gesture-handler.git',
semverPrefix: '~',
ios: {},
android: {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you like to remove the vendoring code in legacy.ts ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I planned to do that, but there are more libs to delete from there, so I'll do that separately

yarn.lock Outdated Show resolved Hide resolved
@tsapeta tsapeta force-pushed the @tsapeta/update-gesture-handler branch from 1af1c34 to b84558e Compare October 5, 2022 09:58
@tsapeta tsapeta merged commit be2ef57 into main Oct 5, 2022
@tsapeta tsapeta deleted the @tsapeta/update-gesture-handler branch October 5, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants