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.
Files changed (127) 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 +14 -73
  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 +377 -103
  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/ios/{REAModule.m → REAModule.mm} +12 -0
  80. package/ios/native/NativeProxy.mm +4 -2
  81. package/ios/native/REAInitializer.h +2 -2
  82. package/ios/native/REAInitializer.mm +2 -2
  83. package/ios/native/UIResponder+Reanimated.mm +1 -1
  84. package/lib/index.web.js +2 -0
  85. package/lib/reanimated2/NativeMethods.js +33 -19
  86. package/lib/reanimated2/frameCallback/FrameCallbackRegistryJS.js +4 -4
  87. package/lib/reanimated2/frameCallback/FrameCallbackRegistryUI.js +47 -18
  88. package/lib/reanimated2/globals.d.ts +2 -2
  89. package/lib/reanimated2/hook/index.js +1 -0
  90. package/lib/reanimated2/hook/useScrollViewOffset.js +26 -0
  91. package/lib/reanimated2/utils.js +10 -3
  92. package/lib/types/index.web.d.ts +1 -0
  93. package/lib/types/reanimated2/NativeMethods.d.ts +3 -10
  94. package/lib/types/reanimated2/commonTypes.d.ts +8 -0
  95. package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryJS.d.ts +4 -3
  96. package/lib/types/reanimated2/frameCallback/FrameCallbackRegistryUI.d.ts +5 -9
  97. package/lib/types/reanimated2/hook/index.d.ts +1 -0
  98. package/lib/types/reanimated2/hook/useAnimatedScrollHandler.d.ts +1 -2
  99. package/lib/types/reanimated2/hook/useFrameCallback.d.ts +2 -1
  100. package/lib/types/reanimated2/hook/useScrollViewOffset.d.ts +4 -0
  101. package/lib/types/reanimated2/utils.d.ts +5 -1
  102. package/package.json +5 -4
  103. package/plugin.js +1 -1
  104. package/react-native-reanimated.d.ts +13 -9
  105. package/scripts/reanimated_utils.rb +65 -0
  106. package/src/index.web.ts +2 -0
  107. package/src/reanimated2/NativeMethods.ts +44 -32
  108. package/src/reanimated2/commonTypes.ts +9 -0
  109. package/src/reanimated2/frameCallback/FrameCallbackRegistryJS.ts +6 -9
  110. package/src/reanimated2/frameCallback/FrameCallbackRegistryUI.ts +78 -27
  111. package/src/reanimated2/globals.d.ts +2 -2
  112. package/src/reanimated2/hook/index.ts +1 -0
  113. package/src/reanimated2/hook/useAnimatedScrollHandler.ts +3 -1
  114. package/src/reanimated2/hook/useFrameCallback.ts +2 -1
  115. package/src/reanimated2/hook/useScrollViewOffset.ts +36 -0
  116. package/src/reanimated2/utils.ts +12 -5
  117. package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  118. package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
  119. package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
  120. package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
  121. package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
  122. package/android/.gradle/checksums/checksums.lock +0 -0
  123. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  124. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  125. package/android/src/main/java/com/swmansion/reanimated/AndroidErrorHandler.java +0 -8
  126. package/lib/reanimated2/__mocks__/NativeReanimated.native.js +0 -20
  127. 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,20 @@
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)
4
7
 
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
8
+ folly_prefix = config[:react_native_minor_version] >= 64 ? 'RCT-' : ''
9
+ 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
10
  folly_compiler_flags = folly_flags + ' ' + '-Wno-comma -Wno-shorten-64-to-32'
65
11
  boost_compiler_flags = '-Wno-documentation'
66
12
 
67
13
  Pod::Spec.new do |s|
14
+
68
15
  s.name = "RNReanimated"
69
- s.version = package["version"]
70
- s.summary = package["description"]
16
+ s.version = reanimated_package_json["version"]
17
+ s.summary = reanimated_package_json["description"]
71
18
  s.description = <<-DESC
72
19
  RNReanimated
73
20
  DESC
@@ -80,8 +27,7 @@ Pod::Spec.new do |s|
80
27
 
81
28
  s.source_files = [
82
29
  "ios/**/*.{mm,h,m}",
83
- "Common/cpp/**/*.cpp",
84
- "Common/cpp/headers/**/*.h"
30
+ "Common/cpp/**/*.{cpp,h}"
85
31
  ]
86
32
 
87
33
  s.preserve_paths = [
@@ -94,9 +40,8 @@ Pod::Spec.new do |s|
94
40
  }
95
41
  s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
96
42
  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 }
43
+ "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\" \"#{config[:react_native_common_dir]}\"",
44
+ "OTHER_CFLAGS" => "$(inherited)" + " " + folly_flags }
100
45
 
101
46
  s.requires_arc = true
102
47
 
@@ -112,7 +57,7 @@ Pod::Spec.new do |s|
112
57
  s.dependency 'React-Core'
113
58
  s.dependency 'React-CoreModules'
114
59
  s.dependency 'React-Core/DevSupport'
115
- if !reactTargetTvOS
60
+ if !config[:is_tvos_target]
116
61
  s.dependency 'React-RCTActionSheet'
117
62
  end
118
63
  s.dependency 'React-RCTNetwork'
@@ -132,13 +77,9 @@ Pod::Spec.new do |s|
132
77
  s.dependency 'DoubleConversion'
133
78
  s.dependency 'glog'
134
79
 
135
- if reactVersion.match(/^0.62/)
80
+ if config[:react_native_minor_version] == 62
136
81
  s.dependency 'ReactCommon/callinvoker'
137
82
  else
138
83
  s.dependency 'React-callinvoker'
139
84
  end
140
-
141
- s.dependency "#{folly_prefix}Folly"
142
-
143
85
  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 13 15:02:41 UTC 2022
2
+ gradle.version=7.5.1