Skip to content

Commit 1746a58

Browse files
authored
chore: remove CMake code with support for RN 0.75 or older (#3448)
Remove build code covering RN 0.75 or older We do not support such old versions for a long time now. Closes software-mansion/react-native-screens-labs#624
1 parent 257a53c commit 1746a58

File tree

2 files changed

+12
-60
lines changed

2 files changed

+12
-60
lines changed

android/CMakeLists.txt

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,12 @@ find_package(ReactAndroid REQUIRED CONFIG)
4040

4141
if(${RNS_NEW_ARCH_ENABLED})
4242
find_package(fbjni REQUIRED CONFIG)
43-
44-
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
45-
target_link_libraries(rnscreens
46-
ReactAndroid::reactnative
47-
ReactAndroid::jsi
48-
fbjni::fbjni
49-
android
50-
)
51-
else()
52-
target_link_libraries(
53-
rnscreens
54-
ReactAndroid::jsi
55-
ReactAndroid::react_nativemodule_core
56-
ReactAndroid::react_utils
57-
ReactAndroid::reactnativejni
58-
ReactAndroid::fabricjni
59-
ReactAndroid::react_debug
60-
ReactAndroid::react_render_core
61-
ReactAndroid::runtimeexecutor
62-
ReactAndroid::react_render_graphics
63-
ReactAndroid::rrc_view
64-
ReactAndroid::yoga
65-
ReactAndroid::rrc_text
66-
ReactAndroid::glog
67-
ReactAndroid::react_render_componentregistry
68-
ReactAndroid::react_render_consistency
69-
ReactAndroid::react_performance_timeline
70-
ReactAndroid::react_render_observers_events
71-
fbjni::fbjni
72-
android
73-
)
74-
endif()
43+
target_link_libraries(rnscreens
44+
ReactAndroid::reactnative
45+
ReactAndroid::jsi
46+
fbjni::fbjni
47+
android
48+
)
7549
else()
7650
target_link_libraries(rnscreens
7751
ReactAndroid::jsi

android/src/main/jni/CMakeLists.txt

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,34 +39,12 @@ target_include_directories(
3939
${LIB_ANDROID_GENERATED_COMPONENTS_DIR}
4040
)
4141

42-
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
43-
target_link_libraries(
44-
${LIB_TARGET_NAME}
45-
ReactAndroid::reactnative
46-
ReactAndroid::jsi
47-
fbjni::fbjni
48-
)
49-
else()
50-
target_link_libraries(
51-
${LIB_TARGET_NAME}
52-
fbjni
53-
folly_runtime
54-
glog
55-
jsi
56-
react_codegen_rncore
57-
react_debug
58-
react_nativemodule_core
59-
react_render_core
60-
react_render_debug
61-
react_render_graphics
62-
react_render_mapbuffer
63-
react_render_componentregistry
64-
react_utils
65-
rrc_view
66-
turbomodulejsijni
67-
yoga
68-
)
69-
endif()
42+
target_link_libraries(
43+
${LIB_TARGET_NAME}
44+
ReactAndroid::reactnative
45+
ReactAndroid::jsi
46+
fbjni::fbjni
47+
)
7048

7149
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 80)
7250
target_compile_reactnative_options(${LIB_TARGET_NAME} PRIVATE)

0 commit comments

Comments
 (0)