react-native-reanimated 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp +3 -0
- package/Common/cpp/{headers/AnimatedSensor → AnimatedSensor}/AnimatedSensorModule.h +0 -0
- package/Common/cpp/LayoutAnimations/LayoutAnimationsProxy.cpp +2 -0
- package/Common/cpp/{headers/LayoutAnimations → LayoutAnimations}/LayoutAnimationsProxy.h +0 -0
- package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +2 -0
- package/Common/cpp/{headers/NativeModules → NativeModules}/NativeReanimatedModule.h +5 -0
- package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +2 -0
- package/Common/cpp/{headers/NativeModules → NativeModules}/NativeReanimatedModuleSpec.h +1 -1
- package/Common/cpp/{headers/Registries → Registries}/EventHandlerRegistry.h +0 -0
- package/Common/cpp/Registries/MapperRegistry.cpp +3 -1
- package/Common/cpp/{headers/Registries → Registries}/MapperRegistry.h +0 -0
- package/Common/cpp/Registries/WorkletsCache.cpp +3 -0
- package/Common/cpp/{headers/Registries → Registries}/WorkletsCache.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/FrozenObject.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/HostFunctionHandler.h +0 -0
- package/Common/cpp/SharedItems/MutableValue.cpp +2 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/MutableValue.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/MutableValueSetterProxy.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/RemoteObject.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/RuntimeManager.h +0 -0
- package/Common/cpp/SharedItems/ShareableValue.cpp +7 -2
- package/Common/cpp/{headers/SharedItems → SharedItems}/ShareableValue.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/SharedParent.h +0 -0
- package/Common/cpp/{headers/SharedItems → SharedItems}/ValueWrapper.h +0 -0
- package/Common/cpp/{headers/SpecTools → SpecTools}/ErrorHandler.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/FeaturesConfig.h +0 -0
- package/Common/cpp/Tools/JSIStoreValueUser.cpp +2 -2
- package/Common/cpp/{headers/Tools → Tools}/JSIStoreValueUser.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/Mapper.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/PlatformDepMethodsHolder.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/ReanimatedHiddenHeaders.h +1 -1
- package/Common/cpp/{headers/Tools → Tools}/RuntimeDecorator.h +0 -0
- package/Common/cpp/{headers/Tools → Tools}/Scheduler.h +0 -0
- package/Common/cpp/Tools/SingleInstanceChecker.h +58 -0
- package/Common/cpp/{headers/Tools → Tools}/WorkletEventHandler.h +0 -0
- package/RNReanimated.podspec +14 -73
- package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/{7.2 → 7.5.1}/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/CMakeLists.txt +56 -65
- package/android/build.gradle +377 -103
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/react-native-reanimated-66-hermes.aar +0 -0
- package/android/react-native-reanimated-66-jsc.aar +0 -0
- package/android/react-native-reanimated-67-hermes.aar +0 -0
- package/android/react-native-reanimated-67-jsc.aar +0 -0
- package/android/react-native-reanimated-68-hermes.aar +0 -0
- package/android/react-native-reanimated-68-jsc.aar +0 -0
- package/android/react-native-reanimated-69-hermes.aar +0 -0
- package/android/react-native-reanimated-69-jsc.aar +0 -0
- package/android/react-native-reanimated-70-hermes.aar +0 -0
- package/android/react-native-reanimated-70-jsc.aar +0 -0
- package/android/src/main/cpp/AndroidErrorHandler.cpp +3 -4
- package/android/src/main/cpp/{headers/AndroidErrorHandler.h → AndroidErrorHandler.h} +1 -4
- package/android/src/main/cpp/AndroidLogger.cpp +4 -1
- package/android/src/main/cpp/{headers/AndroidLogger.h → AndroidLogger.h} +0 -0
- package/android/src/main/cpp/{headers/AndroidScheduler.h → AndroidScheduler.h} +0 -0
- package/android/src/main/cpp/{headers/JNIHelper.h → JNIHelper.h} +0 -0
- package/android/src/main/cpp/{headers/LayoutAnimations.h → LayoutAnimations.h} +0 -0
- package/android/src/main/cpp/NativeProxy.cpp +6 -8
- package/android/src/main/cpp/{headers/NativeProxy.h → NativeProxy.h} +0 -0
- package/android/src/main/cpp/{headers/TurboModule.h → TurboModule.h} +0 -0
- package/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +4 -5
- package/android/src/main/java/com/swmansion/reanimated/keyboardObserver/ReanimatedKeyboardEventListener.java +2 -1
- package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +2 -2
- package/ios/{REAModule.m → REAModule.mm} +12 -0
- package/ios/native/NativeProxy.mm +4 -2
- package/ios/native/REAInitializer.h +2 -2
- package/ios/native/REAInitializer.mm +2 -2
- package/ios/native/UIResponder+Reanimated.mm +1 -1
- package/lib/index.web.js +2 -0
- package/lib/reanimated2/NativeMethods.js +33 -19
- package/lib/reanimated2/frameCallback/FrameCallbackRegistryJS.js +4 -4
- package/lib/reanimated2/frameCallback/FrameCallbackRegistryUI.js +47 -18
- package/lib/reanimated2/globals.d.ts +2 -2
- package/lib/reanimated2/hook/index.js +1 -0
- package/lib/reanimated2/hook/useScrollViewOffset.js +26 -0
- package/lib/reanimated2/utils.js +10 -3
- package/lib/types/index.web.d.ts +1 -0
- package/lib/types/reanimated2/NativeMethods.d.ts +3 -10
- package/lib/types/reanimated2/commonTypes.d.ts +8 -0
- package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryJS.d.ts +4 -3
- package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryUI.d.ts +5 -9
- package/lib/types/reanimated2/hook/index.d.ts +1 -0
- package/lib/types/reanimated2/hook/useAnimatedScrollHandler.d.ts +1 -2
- package/lib/types/reanimated2/hook/useFrameCallback.d.ts +2 -1
- package/lib/types/reanimated2/hook/useScrollViewOffset.d.ts +4 -0
- package/lib/types/reanimated2/utils.d.ts +5 -1
- package/package.json +5 -4
- package/plugin.js +1 -1
- package/react-native-reanimated.d.ts +13 -9
- package/scripts/reanimated_utils.rb +65 -0
- package/src/index.web.ts +2 -0
- package/src/reanimated2/NativeMethods.ts +44 -32
- package/src/reanimated2/commonTypes.ts +9 -0
- package/src/reanimated2/frameCallback/FrameCallbackRegistryJS.ts +6 -9
- package/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +78 -27
- package/src/reanimated2/globals.d.ts +2 -2
- package/src/reanimated2/hook/index.ts +1 -0
- package/src/reanimated2/hook/useAnimatedScrollHandler.ts +3 -1
- package/src/reanimated2/hook/useFrameCallback.ts +2 -1
- package/src/reanimated2/hook/useScrollViewOffset.ts +36 -0
- package/src/reanimated2/utils.ts +12 -5
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/src/main/java/com/swmansion/reanimated/AndroidErrorHandler.java +0 -8
- package/lib/reanimated2/__mocks__/NativeReanimated.native.js +0 -20
- package/lib/types/reanimated2/__mocks__/NativeReanimated.native.d.ts +0 -13
package/android/CMakeLists.txt
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
project(Reanimated)
|
|
2
|
-
cmake_minimum_required(VERSION 3.
|
|
2
|
+
cmake_minimum_required(VERSION 3.8)
|
|
3
3
|
|
|
4
4
|
set (CMAKE_VERBOSE_MAKEFILE ON)
|
|
5
5
|
set (CMAKE_CXX_STANDARD 17)
|
|
6
|
-
set (DEFAULT_FLAGS "-DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_HAVE_MEMRCHR=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -
|
|
6
|
+
set (DEFAULT_FLAGS "-DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_HAVE_MEMRCHR=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DANDROID -DREACT_NATIVE_MINOR_VERSION=${REACT_NATIVE_MINOR_VERSION} -fexceptions -fno-omit-frame-pointer -frtti -Wno-sign-compare -std=c++17 -Wall -Werror")
|
|
7
7
|
if(${IS_NEW_ARCHITECTURE_ENABLED})
|
|
8
8
|
set (ALL_FLAGS "${DEFAULT_FLAGS} -DRCT_NEW_ARCH_ENABLED")
|
|
9
9
|
else()
|
|
10
10
|
set (ALL_FLAGS ${DEFAULT_FLAGS})
|
|
11
11
|
endif()
|
|
12
|
+
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug" AND NOT ${REANIMATED_PACKAGE_BUILD} STREQUAL "1")
|
|
13
|
+
set (ALL_FLAGS "${ALL_FLAGS} -DDEBUG")
|
|
14
|
+
endif()
|
|
12
15
|
set (CMAKE_CXX_FLAGS ${ALL_FLAGS})
|
|
13
16
|
|
|
14
|
-
if(${
|
|
17
|
+
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug" AND NOT ${REANIMATED_PACKAGE_BUILD} STREQUAL "1")
|
|
15
18
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g")
|
|
16
19
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g")
|
|
17
20
|
endif()
|
|
@@ -23,25 +26,20 @@ set (PACKAGE_NAME "reanimated")
|
|
|
23
26
|
set (BUILD_DIR ${CMAKE_SOURCE_DIR}/build)
|
|
24
27
|
set (SRC_DIR ${CMAKE_SOURCE_DIR}/src)
|
|
25
28
|
|
|
26
|
-
set (
|
|
27
|
-
|
|
28
|
-
if(${CLIENT_SIDE_BUILD})
|
|
29
|
-
set (COMMON_SRC_DIR "${CMAKE_SOURCE_DIR}/../Common")
|
|
30
|
-
else()
|
|
31
|
-
set (COMMON_SRC_DIR "${SRC_DIR}/main/Common")
|
|
32
|
-
endif()
|
|
33
|
-
|
|
29
|
+
set (COMMON_SRC_DIR "${CMAKE_SOURCE_DIR}/../Common")
|
|
34
30
|
if(${IS_NEW_ARCHITECTURE_ENABLED})
|
|
35
31
|
if(${CLIENT_SIDE_BUILD})
|
|
36
32
|
set (RN_SO_DIR "${CMAKE_SOURCE_DIR}/../../../android/app/build/react-ndk/exported")
|
|
37
|
-
set (FBJNI_HEADERS_DIR "${
|
|
33
|
+
set (FBJNI_HEADERS_DIR "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/first-party/fbjni/headers")
|
|
38
34
|
else()
|
|
35
|
+
# Reanimated Playground app
|
|
39
36
|
set (RN_SO_DIR "${CMAKE_SOURCE_DIR}/../${PLAYGROUND_APP_NAME}/android/app/build/react-ndk/exported")
|
|
40
|
-
set (FBJNI_HEADERS_DIR "${
|
|
37
|
+
set (FBJNI_HEADERS_DIR "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/first-party/fbjni/headers")
|
|
38
|
+
|
|
41
39
|
endif()
|
|
42
40
|
else()
|
|
43
|
-
set (RN_SO_DIR ${
|
|
44
|
-
set (FBJNI_HEADERS_DIR "${
|
|
41
|
+
set (RN_SO_DIR ${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/first-party/react/jni)
|
|
42
|
+
set (FBJNI_HEADERS_DIR "${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni/first-party/fbjni/headers")
|
|
45
43
|
endif()
|
|
46
44
|
|
|
47
45
|
file (GLOB LIBRN_DIR "${RN_SO_DIR}/${ANDROID_ABI}")
|
|
@@ -49,26 +47,15 @@ file (GLOB LIBRN_DIR "${RN_SO_DIR}/${ANDROID_ABI}")
|
|
|
49
47
|
file(GLOB_RECURSE SOURCES_COMMON CONFIGURE_DEPENDS "${COMMON_SRC_DIR}/cpp/**.cpp")
|
|
50
48
|
file(GLOB_RECURSE SOURCES_ANDROID CONFIGURE_DEPENDS "${SRC_DIR}/main/cpp/**.cpp")
|
|
51
49
|
|
|
52
|
-
if(${
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
endif()
|
|
62
|
-
|
|
63
|
-
if(${IS_NEW_ARCHITECTURE_ENABLED})
|
|
64
|
-
set(
|
|
65
|
-
FABRIC_UTILS_CPP
|
|
66
|
-
"${COMMON_SRC_DIR}/cpp/Fabric/FabricUtils.cpp"
|
|
67
|
-
)
|
|
68
|
-
set(
|
|
69
|
-
REANIMATED_UI_MANAGER_BINDING_CPP
|
|
70
|
-
"${COMMON_SRC_DIR}/cpp/Fabric/ReanimatedUIManagerBinding.cpp"
|
|
71
|
-
)
|
|
50
|
+
if(${REACT_NATIVE_MINOR_VERSION} LESS 66)
|
|
51
|
+
set (
|
|
52
|
+
INCLUDE_JSI_CPP
|
|
53
|
+
"${REACT_NATIVE_DIR}/ReactCommon/jsi/jsi/jsi.cpp"
|
|
54
|
+
)
|
|
55
|
+
set (
|
|
56
|
+
INCLUDE_JSIDYNAMIC_CPP
|
|
57
|
+
"${REACT_NATIVE_DIR}/ReactCommon/jsi/jsi/JSIDynamic.cpp"
|
|
58
|
+
)
|
|
72
59
|
endif()
|
|
73
60
|
|
|
74
61
|
add_library(
|
|
@@ -78,8 +65,6 @@ add_library(
|
|
|
78
65
|
${SOURCES_ANDROID}
|
|
79
66
|
${INCLUDE_JSI_CPP}
|
|
80
67
|
${INCLUDE_JSIDYNAMIC_CPP}
|
|
81
|
-
${FABRIC_UTILS_CPP}
|
|
82
|
-
${REANIMATED_UI_MANAGER_BINDING_CPP}
|
|
83
68
|
)
|
|
84
69
|
|
|
85
70
|
# includes
|
|
@@ -94,29 +79,29 @@ target_include_directories(
|
|
|
94
79
|
"${BUILD_DIR}/third-party-ndk/double-conversion"
|
|
95
80
|
"${BUILD_DIR}/third-party-ndk/folly"
|
|
96
81
|
"${BUILD_DIR}/third-party-ndk/glog/exported"
|
|
97
|
-
"${
|
|
98
|
-
"${
|
|
99
|
-
"${
|
|
100
|
-
"${
|
|
101
|
-
"${
|
|
102
|
-
"${
|
|
103
|
-
"${
|
|
104
|
-
"${
|
|
105
|
-
"${
|
|
106
|
-
"${
|
|
107
|
-
"${
|
|
108
|
-
"${
|
|
109
|
-
"${
|
|
110
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
111
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
112
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
113
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
114
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
115
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
116
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
117
|
-
"${COMMON_SRC_DIR}/cpp/
|
|
82
|
+
"${REACT_NATIVE_DIR}/React"
|
|
83
|
+
"${REACT_NATIVE_DIR}/React/Base"
|
|
84
|
+
"${REACT_NATIVE_DIR}/ReactAndroid/src/main/jni"
|
|
85
|
+
"${REACT_NATIVE_DIR}/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni"
|
|
86
|
+
"${REACT_NATIVE_DIR}/ReactAndroid/src/main/java/com/facebook/react/fabric/jni"
|
|
87
|
+
"${REACT_NATIVE_DIR}/ReactCommon"
|
|
88
|
+
"${REACT_NATIVE_DIR}/ReactCommon/callinvoker"
|
|
89
|
+
"${REACT_NATIVE_DIR}/ReactCommon/jsi"
|
|
90
|
+
"${REACT_NATIVE_DIR}/ReactCommon/react/renderer/graphics/platform/cxx"
|
|
91
|
+
"${REACT_NATIVE_DIR}/ReactCommon/runtimeexecutor"
|
|
92
|
+
"${REACT_NATIVE_DIR}/ReactCommon/turbomodule/core"
|
|
93
|
+
"${REACT_NATIVE_DIR}/ReactCommon/turbomodule"
|
|
94
|
+
"${REACT_NATIVE_DIR}/ReactCommon/yoga"
|
|
95
|
+
"${COMMON_SRC_DIR}/cpp/Tools"
|
|
96
|
+
"${COMMON_SRC_DIR}/cpp/SpecTools"
|
|
97
|
+
"${COMMON_SRC_DIR}/cpp/NativeModules"
|
|
98
|
+
"${COMMON_SRC_DIR}/cpp/SharedItems"
|
|
99
|
+
"${COMMON_SRC_DIR}/cpp/Registries"
|
|
100
|
+
"${COMMON_SRC_DIR}/cpp/LayoutAnimations"
|
|
101
|
+
"${COMMON_SRC_DIR}/cpp/AnimatedSensor"
|
|
102
|
+
"${COMMON_SRC_DIR}/cpp/Fabric"
|
|
118
103
|
"${COMMON_SRC_DIR}/cpp/hidden_headers"
|
|
119
|
-
"${SRC_DIR}/main/cpp
|
|
104
|
+
"${SRC_DIR}/main/cpp"
|
|
120
105
|
)
|
|
121
106
|
|
|
122
107
|
find_library(
|
|
@@ -142,7 +127,7 @@ find_library(
|
|
|
142
127
|
NO_CMAKE_FIND_ROOT_PATH
|
|
143
128
|
)
|
|
144
129
|
|
|
145
|
-
if(${
|
|
130
|
+
if(${REACT_NATIVE_MINOR_VERSION} LESS 69)
|
|
146
131
|
find_library(
|
|
147
132
|
FOLLY_LIB
|
|
148
133
|
folly_json
|
|
@@ -158,7 +143,7 @@ else()
|
|
|
158
143
|
)
|
|
159
144
|
endif()
|
|
160
145
|
|
|
161
|
-
if(${
|
|
146
|
+
if(${REACT_NATIVE_MINOR_VERSION} LESS 66)
|
|
162
147
|
set (JSI_LIB "")
|
|
163
148
|
else()
|
|
164
149
|
find_library(
|
|
@@ -250,7 +235,7 @@ target_link_libraries(
|
|
|
250
235
|
|
|
251
236
|
if(${JS_RUNTIME} STREQUAL "hermes")
|
|
252
237
|
string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_HERMES=1")
|
|
253
|
-
if(${
|
|
238
|
+
if(${REACT_NATIVE_MINOR_VERSION} LESS 69)
|
|
254
239
|
# From `hermes-engine` npm package
|
|
255
240
|
target_include_directories(
|
|
256
241
|
${PACKAGE_NAME}
|
|
@@ -289,7 +274,6 @@ elseif(${JS_RUNTIME} STREQUAL "v8")
|
|
|
289
274
|
${V8EXECUTOR_LIB}
|
|
290
275
|
)
|
|
291
276
|
else()
|
|
292
|
-
set (ignoreMe "${JS_RUNTIME_DIR}")
|
|
293
277
|
string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_JSC=1")
|
|
294
278
|
find_library(
|
|
295
279
|
JSEXECUTOR_LIB
|
|
@@ -319,7 +303,7 @@ if(${IS_NEW_ARCHITECTURE_ENABLED})
|
|
|
319
303
|
)
|
|
320
304
|
endif()
|
|
321
305
|
|
|
322
|
-
if(${
|
|
306
|
+
if(${REACT_NATIVE_MINOR_VERSION} LESS 64)
|
|
323
307
|
add_library(
|
|
324
308
|
turbomodulejsijni
|
|
325
309
|
# Sets the library as a shared library.
|
|
@@ -327,4 +311,11 @@ if(${REACT_NATIVE_TARGET_VERSION} LESS 64)
|
|
|
327
311
|
# Provides a relative path to your source file(s).
|
|
328
312
|
./empty.cpp
|
|
329
313
|
)
|
|
330
|
-
endif()
|
|
314
|
+
endif()
|
|
315
|
+
|
|
316
|
+
# Resolves "CMake Warning: Manually-specified variables were not used by the project"
|
|
317
|
+
# when any of the following variables is not used in some build configuration.
|
|
318
|
+
set (ignoreMe "${CLIENT_SIDE_BUILD}")
|
|
319
|
+
set (ignoreMe "${JS_RUNTIME_DIR}")
|
|
320
|
+
set (ignoreMe "${PLAYGROUND_APP_NAME}")
|
|
321
|
+
set (ignoreMe "${HERMES_ENABLE_DEBUGGER}")
|