Skip to content

Commit fc8bbe1

Browse files
authored
[Android] Cleanup CMakeLists (#3563)
## Description Clean some remaining code from `CMakeLists.txt` after 2.26.0 release ## Test plan Built _Gesture Handler_ on fabric on the following RN versions: - 0.80 ✅ - 0.79 ✅ - 0.78 ✅
1 parent a19c683 commit fc8bbe1

File tree

1 file changed

+7
-26
lines changed
  • packages/react-native-gesture-handler/android/src/main/jni

1 file changed

+7
-26
lines changed

packages/react-native-gesture-handler/android/src/main/jni/CMakeLists.txt

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,29 +27,10 @@ target_include_directories(
2727

2828
find_package(ReactAndroid REQUIRED CONFIG)
2929
find_package(fbjni REQUIRED CONFIG)
30-
if (ReactAndroid_VERSION_MINOR GREATER_EQUAL 80)
31-
find_package(fbjni REQUIRED CONFIG)
32-
target_link_libraries(
33-
${PACKAGE_NAME}
34-
ReactAndroid::reactnative
35-
ReactAndroid::jsi
36-
fbjni::fbjni
37-
)
38-
elseif (ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
39-
target_link_libraries(
40-
${PACKAGE_NAME}
41-
ReactAndroid::reactnative
42-
ReactAndroid::jsi
43-
)
44-
elseif (ReactAndroid_VERSION_MINOR GREATER_EQUAL 75)
45-
target_link_libraries(
46-
${PACKAGE_NAME}
47-
ReactAndroid::react_render_core
48-
ReactAndroid::react_render_uimanager
49-
ReactAndroid::react_render_graphics
50-
ReactAndroid::jsi
51-
ReactAndroid::react_nativemodule_core
52-
)
53-
else ()
54-
message(FATAL_ERROR "react-native-gesture-handler on the New Architecture requires react-native 0.75 or newer.")
55-
endif ()
30+
31+
target_link_libraries(
32+
${PACKAGE_NAME}
33+
ReactAndroid::reactnative
34+
ReactAndroid::jsi
35+
fbjni::fbjni
36+
)

0 commit comments

Comments
 (0)