react-native-reanimated 2.10.0 → 2.12.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.
Files changed (146) hide show
  1. package/Common/cpp/AnimatedSensor/AnimatedSensorModule.cpp +3 -0
  2. package/Common/cpp/{headers/AnimatedSensor → AnimatedSensor}/AnimatedSensorModule.h +0 -0
  3. package/Common/cpp/LayoutAnimations/LayoutAnimationsProxy.cpp +2 -0
  4. package/Common/cpp/{headers/LayoutAnimations → LayoutAnimations}/LayoutAnimationsProxy.h +0 -0
  5. package/Common/cpp/NativeModules/NativeReanimatedModule.cpp +2 -0
  6. package/Common/cpp/{headers/NativeModules → NativeModules}/NativeReanimatedModule.h +5 -0
  7. package/Common/cpp/NativeModules/NativeReanimatedModuleSpec.cpp +2 -0
  8. package/Common/cpp/{headers/NativeModules → NativeModules}/NativeReanimatedModuleSpec.h +1 -1
  9. package/Common/cpp/{headers/Registries → Registries}/EventHandlerRegistry.h +0 -0
  10. package/Common/cpp/Registries/MapperRegistry.cpp +3 -1
  11. package/Common/cpp/{headers/Registries → Registries}/MapperRegistry.h +0 -0
  12. package/Common/cpp/Registries/WorkletsCache.cpp +3 -0
  13. package/Common/cpp/{headers/Registries → Registries}/WorkletsCache.h +0 -0
  14. package/Common/cpp/{headers/SharedItems → SharedItems}/FrozenObject.h +0 -0
  15. package/Common/cpp/{headers/SharedItems → SharedItems}/HostFunctionHandler.h +0 -0
  16. package/Common/cpp/SharedItems/MutableValue.cpp +2 -0
  17. package/Common/cpp/{headers/SharedItems → SharedItems}/MutableValue.h +0 -0
  18. package/Common/cpp/{headers/SharedItems → SharedItems}/MutableValueSetterProxy.h +0 -0
  19. package/Common/cpp/{headers/SharedItems → SharedItems}/RemoteObject.h +0 -0
  20. package/Common/cpp/{headers/SharedItems → SharedItems}/RuntimeManager.h +0 -0
  21. package/Common/cpp/SharedItems/ShareableValue.cpp +7 -2
  22. package/Common/cpp/{headers/SharedItems → SharedItems}/ShareableValue.h +0 -0
  23. package/Common/cpp/{headers/SharedItems → SharedItems}/SharedParent.h +0 -0
  24. package/Common/cpp/{headers/SharedItems → SharedItems}/ValueWrapper.h +0 -0
  25. package/Common/cpp/{headers/SpecTools → SpecTools}/ErrorHandler.h +0 -0
  26. package/Common/cpp/{headers/Tools → Tools}/FeaturesConfig.h +0 -0
  27. package/Common/cpp/Tools/JSIStoreValueUser.cpp +2 -2
  28. package/Common/cpp/{headers/Tools → Tools}/JSIStoreValueUser.h +0 -0
  29. package/Common/cpp/{headers/Tools → Tools}/Mapper.h +0 -0
  30. package/Common/cpp/{headers/Tools → Tools}/PlatformDepMethodsHolder.h +0 -0
  31. package/Common/cpp/{headers/Tools → Tools}/ReanimatedHiddenHeaders.h +1 -1
  32. package/Common/cpp/{headers/Tools → Tools}/RuntimeDecorator.h +0 -0
  33. package/Common/cpp/{headers/Tools → Tools}/Scheduler.h +0 -0
  34. package/Common/cpp/Tools/SingleInstanceChecker.h +58 -0
  35. package/Common/cpp/{headers/Tools → Tools}/WorkletEventHandler.h +0 -0
  36. package/RNReanimated.podspec +19 -75
  37. package/android/.gradle/7.5.1/checksums/checksums.lock +0 -0
  38. package/android/.gradle/7.5.1/checksums/md5-checksums.bin +0 -0
  39. package/android/.gradle/7.5.1/checksums/sha1-checksums.bin +0 -0
  40. package/android/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  41. package/android/.gradle/{7.2 → 7.5.1}/dependencies-accessors/gc.properties +0 -0
  42. package/android/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
  43. package/android/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
  44. package/android/.gradle/{7.2 → 7.5.1}/fileChanges/last-build.bin +0 -0
  45. package/android/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
  46. package/android/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
  47. package/android/.gradle/{7.2 → 7.5.1}/fileHashes/resourceHashesCache.bin +0 -0
  48. package/android/.gradle/{7.2 → 7.5.1}/gc.properties +0 -0
  49. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  50. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  51. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  52. package/android/.gradle/file-system.probe +0 -0
  53. package/android/CMakeLists.txt +56 -65
  54. package/android/build.gradle +422 -120
  55. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  56. package/android/react-native-reanimated-66-hermes.aar +0 -0
  57. package/android/react-native-reanimated-66-jsc.aar +0 -0
  58. package/android/react-native-reanimated-67-hermes.aar +0 -0
  59. package/android/react-native-reanimated-67-jsc.aar +0 -0
  60. package/android/react-native-reanimated-68-hermes.aar +0 -0
  61. package/android/react-native-reanimated-68-jsc.aar +0 -0
  62. package/android/react-native-reanimated-69-hermes.aar +0 -0
  63. package/android/react-native-reanimated-69-jsc.aar +0 -0
  64. package/android/react-native-reanimated-70-hermes.aar +0 -0
  65. package/android/react-native-reanimated-70-jsc.aar +0 -0
  66. package/android/src/main/cpp/AndroidErrorHandler.cpp +3 -4
  67. package/android/src/main/cpp/{headers/AndroidErrorHandler.h → AndroidErrorHandler.h} +1 -4
  68. package/android/src/main/cpp/AndroidLogger.cpp +4 -1
  69. package/android/src/main/cpp/{headers/AndroidLogger.h → AndroidLogger.h} +0 -0
  70. package/android/src/main/cpp/{headers/AndroidScheduler.h → AndroidScheduler.h} +0 -0
  71. package/android/src/main/cpp/{headers/JNIHelper.h → JNIHelper.h} +0 -0
  72. package/android/src/main/cpp/{headers/LayoutAnimations.h → LayoutAnimations.h} +0 -0
  73. package/android/src/main/cpp/NativeProxy.cpp +6 -8
  74. package/android/src/main/cpp/{headers/NativeProxy.h → NativeProxy.h} +0 -0
  75. package/android/src/main/cpp/{headers/TurboModule.h → TurboModule.h} +0 -0
  76. package/android/src/main/java/com/swmansion/reanimated/NativeProxy.java +4 -5
  77. package/android/src/main/java/com/swmansion/reanimated/keyboardObserver/ReanimatedKeyboardEventListener.java +2 -1
  78. package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/AnimationsManager.java +2 -2
  79. package/android/src/main/java/com/swmansion/reanimated/layoutReanimation/ReanimatedUIManager.java +1 -1
  80. package/android/{rnVersionPatch/62 → src/reactNativeVersionPatch/UIImplementation/64/com/swmansion/reanimated}/layoutReanimation/ReanimatedUIImplementation.java +0 -0
  81. package/android/src/{main/java → reactNativeVersionPatch/UIImplementation/latest}/com/swmansion/reanimated/layoutReanimation/ReanimatedUIImplementation.java +0 -0
  82. package/android/src/reactNativeVersionPatch/messageQueueThread/67/com/swmansion/reanimated/ReanimatedMessageQueueThread.java +12 -0
  83. package/android/src/reactNativeVersionPatch/messageQueueThread/latest/com/swmansion/reanimated/ReanimatedMessageQueueThread.java +12 -0
  84. package/android/{rnVersionPatch/62 → src/reactNativeVersionPatch/nativeHierarchyManager/62/com/swmansion/reanimated}/layoutReanimation/ReanimatedNativeHierarchyManager.java +0 -0
  85. package/android/src/{main/java → reactNativeVersionPatch/nativeHierarchyManager/latest}/com/swmansion/reanimated/layoutReanimation/ReanimatedNativeHierarchyManager.java +0 -0
  86. package/ios/{REAModule.m → REAModule.mm} +29 -0
  87. package/ios/keyboardObserver/REAKeyboardEventObserver.m +1 -1
  88. package/ios/native/NativeProxy.mm +4 -2
  89. package/ios/native/REAInitializer.h +2 -2
  90. package/ios/native/REAInitializer.mm +2 -2
  91. package/ios/native/UIResponder+Reanimated.mm +1 -1
  92. package/lib/createAnimatedComponent.js +3 -4
  93. package/lib/index.web.js +2 -0
  94. package/lib/reanimated2/NativeMethods.js +79 -30
  95. package/lib/reanimated2/frameCallback/FrameCallbackRegistryJS.js +4 -4
  96. package/lib/reanimated2/frameCallback/FrameCallbackRegistryUI.js +47 -18
  97. package/lib/reanimated2/globals.d.ts +38 -12
  98. package/lib/reanimated2/hook/index.js +1 -0
  99. package/lib/reanimated2/hook/useScrollViewOffset.js +27 -0
  100. package/lib/reanimated2/utils.js +10 -3
  101. package/lib/types/index.web.d.ts +1 -0
  102. package/lib/types/reanimated2/NativeMethods.d.ts +4 -11
  103. package/lib/types/reanimated2/commonTypes.d.ts +8 -0
  104. package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryJS.d.ts +4 -3
  105. package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryUI.d.ts +17 -7
  106. package/lib/types/reanimated2/hook/index.d.ts +1 -0
  107. package/lib/types/reanimated2/hook/useAnimatedScrollHandler.d.ts +1 -2
  108. package/lib/types/reanimated2/hook/useFrameCallback.d.ts +2 -1
  109. package/lib/types/reanimated2/hook/useScrollViewOffset.d.ts +4 -0
  110. package/lib/types/reanimated2/utils.d.ts +5 -1
  111. package/package.json +8 -6
  112. package/plugin.js +1 -1
  113. package/react-native-reanimated.d.ts +13 -9
  114. package/scripts/reanimated_utils.rb +77 -0
  115. package/src/createAnimatedComponent.tsx +2 -3
  116. package/src/index.web.ts +2 -0
  117. package/src/reanimated2/NativeMethods.ts +104 -48
  118. package/src/reanimated2/commonTypes.ts +9 -0
  119. package/src/reanimated2/frameCallback/FrameCallbackRegistryJS.ts +6 -9
  120. package/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +78 -27
  121. package/src/reanimated2/globals.d.ts +38 -12
  122. package/src/reanimated2/hook/index.ts +1 -0
  123. package/src/reanimated2/hook/useAnimatedScrollHandler.ts +3 -1
  124. package/src/reanimated2/hook/useFrameCallback.ts +2 -1
  125. package/src/reanimated2/hook/useScrollViewOffset.ts +37 -0
  126. package/src/reanimated2/utils.ts +12 -5
  127. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  128. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  129. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  130. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  131. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  132. package/android/.gradle/checksums/checksums.lock +0 -0
  133. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  134. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  135. package/android/rnVersionPatch/63/layoutReanimation/ReanimatedUIImplementation.java +0 -68
  136. package/android/rnVersionPatch/64/layoutReanimation/ReanimatedUIImplementation.java +0 -68
  137. package/android/rnVersionPatch/65/.gitkeep +0 -0
  138. package/android/rnVersionPatch/66/.gitkeep +0 -0
  139. package/android/rnVersionPatch/67/.gitkeep +0 -0
  140. package/android/rnVersionPatch/68/.gitkeep +0 -0
  141. package/android/rnVersionPatch/69/.gitkeep +0 -0
  142. package/android/rnVersionPatch/70/.gitkeep +0 -0
  143. package/android/rnVersionPatch/backup/.gitkeep +0 -0
  144. package/android/src/main/java/com/swmansion/reanimated/AndroidErrorHandler.java +0 -8
  145. package/lib/reanimated2/__mocks__/NativeReanimated.native.js +0 -20
  146. package/lib/types/reanimated2/__mocks__/NativeReanimated.native.d.ts +0 -13
@@ -2,6 +2,9 @@
2
2
  #include "MutableValue.h"
3
3
  #include "ValueWrapper.h"
4
4
 
5
+ #include <memory>
6
+ #include <utility>
7
+
5
8
  namespace reanimated {
6
9
 
7
10
  AnimatedSensorModule::AnimatedSensorModule(
@@ -4,6 +4,8 @@
4
4
  #include "ShareableValue.h"
5
5
  #include "ValueWrapper.h"
6
6
 
7
+ #include <utility>
8
+
7
9
  namespace reanimated {
8
10
 
9
11
  const long long idOffset = 1e9;
@@ -2,6 +2,8 @@
2
2
  #include <functional>
3
3
  #include <memory>
4
4
  #include <thread>
5
+ #include <unordered_map>
6
+
5
7
  #include "EventHandlerRegistry.h"
6
8
  #include "FeaturesConfig.h"
7
9
  #include "FrozenObject.h"
@@ -13,6 +13,7 @@
13
13
  #include "RuntimeDecorator.h"
14
14
  #include "RuntimeManager.h"
15
15
  #include "Scheduler.h"
16
+ #include "SingleInstanceChecker.h"
16
17
 
17
18
  namespace reanimated {
18
19
 
@@ -111,6 +112,10 @@ class NativeReanimatedModule : public NativeReanimatedModuleSpec,
111
112
  ConfigurePropsFunction configurePropsPlatformFunction;
112
113
  KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction;
113
114
  KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction;
115
+
116
+ #ifdef DEBUG
117
+ SingleInstanceChecker<NativeReanimatedModule> singleInstanceChecker_;
118
+ #endif
114
119
  };
115
120
 
116
121
  } // namespace reanimated
@@ -1,5 +1,7 @@
1
1
  #include "NativeReanimatedModuleSpec.h"
2
2
 
3
+ #include <utility>
4
+
3
5
  #define SPEC_PREFIX(FN_NAME) __hostFunction_NativeReanimatedModuleSpec_##FN_NAME
4
6
 
5
7
  namespace reanimated {
@@ -4,7 +4,7 @@
4
4
  #include <string>
5
5
  #include <vector>
6
6
 
7
- #ifdef ONANDROID
7
+ #ifdef ANDROID
8
8
  #include "TurboModule.h"
9
9
  #else
10
10
  #include <ReactCommon/TurboModule.h>
@@ -1,8 +1,10 @@
1
1
  #include "MapperRegistry.h"
2
+ #include "Mapper.h"
3
+
2
4
  #include <array>
3
5
  #include <map>
4
6
  #include <set>
5
- #include "Mapper.h"
7
+ #include <utility>
6
8
 
7
9
  namespace reanimated {
8
10
 
@@ -2,6 +2,9 @@
2
2
  #include "FrozenObject.h"
3
3
  #include "ShareableValue.h"
4
4
 
5
+ #include <string>
6
+ #include <utility>
7
+
5
8
  using namespace facebook;
6
9
 
7
10
  namespace reanimated {
@@ -4,6 +4,8 @@
4
4
  #include "ShareableValue.h"
5
5
  #include "SharedParent.h"
6
6
 
7
+ #include <string>
8
+
7
9
  namespace reanimated {
8
10
 
9
11
  void MutableValue::setValue(jsi::Runtime &rt, const jsi::Value &newValue) {
@@ -1,10 +1,13 @@
1
1
  #include <cxxabi.h>
2
+ #include <utility>
3
+
2
4
  #include "FrozenObject.h"
3
5
  #include "MutableValue.h"
4
6
  #include "MutableValueSetterProxy.h"
5
7
  #include "RemoteObject.h"
6
8
  #include "RuntimeDecorator.h"
7
9
  #include "RuntimeManager.h"
10
+ #include "ShareableValue.h"
8
11
  #include "SharedParent.h"
9
12
 
10
13
  namespace reanimated {
@@ -394,8 +397,10 @@ jsi::Value ShareableValue::toJSValue(jsi::Runtime &rt) {
394
397
  } else {
395
398
  res = funPtr->call(rt, args, count);
396
399
  }
397
- } catch (jsi::JSError &e) {
398
- throw e;
400
+ } catch (std::exception &e) {
401
+ std::string str = e.what();
402
+ runtimeManager->errorHandler->setError(str);
403
+ runtimeManager->errorHandler->raise();
399
404
  } catch (...) {
400
405
  if (demangleExceptionName(
401
406
  abi::__cxa_current_exception_type()->name()) ==
@@ -1,6 +1,6 @@
1
1
  #include "JSIStoreValueUser.h"
2
2
  #include "RuntimeManager.h"
3
- #ifdef ONANDROID
3
+ #ifdef ANDROID
4
4
  #include <AndroidScheduler.h>
5
5
  #endif
6
6
 
@@ -32,7 +32,7 @@ StoreUser::~StoreUser() {
32
32
  std::shared_ptr<Scheduler> strongScheduler = scheduler.lock();
33
33
  if (strongScheduler != nullptr) {
34
34
  std::shared_ptr<StaticStoreUser> sud = storeUserData;
35
- #ifdef ONANDROID
35
+ #ifdef ANDROID
36
36
  jni::ThreadScope::WithClassLoader([&] {
37
37
  strongScheduler->scheduleOnUI([id, sud]() {
38
38
  const std::lock_guard<std::recursive_mutex> lock(sud->storeMutex);
File without changes
@@ -1,6 +1,6 @@
1
1
  #pragma once
2
2
 
3
- #if defined(ONANDROID)
3
+ #ifdef ANDROID
4
4
  #include "Logger.h"
5
5
  #include "LoggerInterface.h"
6
6
  #include "SpeedChecker.h"
File without changes
@@ -0,0 +1,58 @@
1
+ #pragma once
2
+
3
+ #ifdef DEBUG
4
+
5
+ #include <cxxabi.h>
6
+
7
+ #include <iostream>
8
+ #include <string>
9
+
10
+ namespace reanimated {
11
+
12
+ // This is a class that counts how many instances of a different class there
13
+ // are. It is meant only to be used with classes that should only have one
14
+ // instance.
15
+
16
+ template <class T>
17
+ class SingleInstanceChecker {
18
+ public:
19
+ SingleInstanceChecker();
20
+ ~SingleInstanceChecker();
21
+
22
+ private:
23
+ void assertWithMessage(bool condition, std::string message) {
24
+ if (!condition) {
25
+ std::cerr << message << std::endl;
26
+ assert(condition);
27
+ }
28
+ }
29
+
30
+ // A static field will exist separately for every class template.
31
+ // This has to be inline for automatic initialization.
32
+ inline static int instanceCount_;
33
+ };
34
+
35
+ template <class T>
36
+ SingleInstanceChecker<T>::SingleInstanceChecker() {
37
+ int status = 0;
38
+ std::string className =
39
+ __cxxabiv1::__cxa_demangle(typeid(T).name(), nullptr, nullptr, &status);
40
+
41
+ // Only one instance should exist, but it is possible for two instances
42
+ // to co-exist during a reload.
43
+ assertWithMessage(
44
+ instanceCount_ <= 1,
45
+ "More than one instance of " + className +
46
+ " present. This may indicate a memory leak due to a retain cycle.");
47
+
48
+ instanceCount_++;
49
+ }
50
+
51
+ template <class T>
52
+ SingleInstanceChecker<T>::~SingleInstanceChecker() {
53
+ instanceCount_--;
54
+ }
55
+
56
+ } // namespace reanimated
57
+
58
+ #endif // DEBUG
@@ -1,73 +1,21 @@
1
1
  require "json"
2
+ require_relative './scripts/reanimated_utils'
2
3
 
3
- package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ reanimated_package_json = JSON.parse(File.read(File.join(__dir__, "package.json")))
5
+ config = find_config()
6
+ assert_no_multiple_instances(config)
7
+ assert_no_reanimated2_with_new_architecture(reanimated_package_json)
4
8
 
5
- reactVersion = '0.0.0'
6
- reactTargetTvOS = false
7
- isUserApp = false
8
-
9
- begin
10
- # user app
11
- # /appName/node_modules/react-native-reanimated/RNReanimated.podspec
12
- # /appName/node_modules/react-native/package.json
13
- reactJson = JSON.parse(File.read(File.join(__dir__, "..", "..", "node_modules", "react-native", "package.json")))
14
- reactVersion = reactJson["version"]
15
- reactTargetTvOS = reactJson["name"] == "react-native-tvos"
16
- isUserApp = true
17
- rescue
18
- begin
19
- # monorepo
20
- # /monorepo/packages/appName/node_modules/react-native-reanimated/RNReanimated.podspec
21
- # /monorepo/node_modules/react-native/package.json
22
- reactJson = JSON.parse(File.read(File.join(__dir__, "..", "..", "..", "..", "node_modules", "react-native", "package.json")))
23
- reactVersion = reactJson["version"]
24
- reactTargetTvOS = reactJson["name"] == "react-native-tvos"
25
- rescue
26
- begin
27
- # Example app in reanimated repo
28
- # /react-native-reanimated/RNReanimated.podspec
29
- # /react-native-reanimated/node_modules/react-native/package.json
30
- reactJson = JSON.parse(File.read(File.join(__dir__, "node_modules", "react-native", "package.json")))
31
- reactVersion = reactJson["version"]
32
- reactTargetTvOS = ENV["ReanimatedTVOSExample"] == "1"
33
- rescue
34
- # should never happen
35
- reactVersion = '0.68.0'
36
- puts "[RNReanimated] Unable to recognize your `react-native` version! Default `react-native` version: " + reactVersion
37
- end
38
- end
39
- end
40
-
41
- if isUserApp
42
- libInstances = %x[find ../../ -name "package.json" | grep "/react-native-reanimated/package.json"]
43
- libInstancesArray = libInstances.split("\n")
44
- if libInstancesArray.length() > 1
45
- parsedLocation = ''
46
- for location in libInstancesArray
47
- location['../../'] = '- '
48
- location['/package.json'] = ''
49
- parsedLocation += location + "\n"
50
- end
51
- raise "[Reanimated] Multiple versions of Reanimated were detected. Only one instance of react-native-reanimated can be installed in a project. You need to resolve the conflict manually. Check out the documentation: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/troubleshooting#multiple-versions-of-reanimated-were-detected \n\nConflict between: \n" + parsedLocation
52
- end
53
- end
54
-
55
- rnVersion = reactVersion.split('.')[1]
56
-
57
- folly_prefix = ""
58
- if rnVersion.to_i >= 64
59
- folly_prefix = "RCT-"
60
- end
61
-
62
-
63
- folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DRNVERSION=' + rnVersion
9
+ folly_prefix = config[:react_native_minor_version] >= 64 ? 'RCT-' : ''
10
+ folly_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -DREACT_NATIVE_MINOR_VERSION=' + config[:react_native_minor_version].to_s
64
11
  folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
65
12
  boost_compiler_flags = '-Wno-documentation'
66
13
 
67
14
  Pod::Spec.new do |s|
15
+
68
16
  s.name = "RNReanimated"
69
- s.version = package["version"]
70
- s.summary = package["description"]
17
+ s.version = reanimated_package_json["version"]
18
+ s.summary = reanimated_package_json["description"]
71
19
  s.description = <<-DESC
72
20
  RNReanimated
73
21
  DESC
@@ -80,23 +28,23 @@ Pod::Spec.new do |s|
80
28
 
81
29
  s.source_files = [
82
30
  "ios/**/*.{mm,h,m}",
83
- "Common/cpp/**/*.cpp",
84
- "Common/cpp/headers/**/*.h"
31
+ "Common/cpp/**/*.{cpp,h}"
85
32
  ]
86
33
 
87
34
  s.preserve_paths = [
88
35
  "Common/cpp/hidden_headers/**"
89
36
  ]
90
37
 
91
- s.pod_target_xcconfig = {
38
+ s.pod_target_xcconfig = {
92
39
  "USE_HEADERMAP" => "YES",
93
- "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" "
40
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" ",
41
+ "FRAMEWORK_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes\"",
94
42
  }
95
43
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
96
44
  s.xcconfig = {
97
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++14",
98
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\"",
99
- "OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags }
45
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"$(PODS_ROOT)/#{config[:react_native_common_dir]}\"",
46
+ "OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags
47
+ }
100
48
 
101
49
  s.requires_arc = true
102
50
 
@@ -112,7 +60,7 @@ Pod::Spec.new do |s|
112
60
  s.dependency 'React-Core'
113
61
  s.dependency 'React-CoreModules'
114
62
  s.dependency 'React-Core/DevSupport'
115
- if !reactTargetTvOS
63
+ if !config[:is_tvos_target]
116
64
  s.dependency 'React-RCTActionSheet'
117
65
  end
118
66
  s.dependency 'React-RCTNetwork'
@@ -132,13 +80,9 @@ Pod::Spec.new do |s|
132
80
  s.dependency 'DoubleConversion'
133
81
  s.dependency 'glog'
134
82
 
135
- if reactVersion.match(/^0.62/)
83
+ if config[:react_native_minor_version] == 62
136
84
  s.dependency 'ReactCommon/callinvoker'
137
85
  else
138
86
  s.dependency 'React-callinvoker'
139
87
  end
140
-
141
- s.dependency "#{folly_prefix}Folly"
142
-
143
88
  end
144
-
File without changes
@@ -1,2 +1,2 @@
1
- #Fri Aug 19 13:09:51 UTC 2022
2
- gradle.version=7.2
1
+ #Thu Oct 27 10:05:12 UTC 2022
2
+ gradle.version=7.5.1