react-native-macos 0.72.14 → 0.72.15
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/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/bridging/Base.h +2 -3
- package/ReactCommon/react/bridging/Function.h +7 -10
- package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp +0 -1
- package/package.json +1 -1
- package/scripts/cocoapods/helpers.rb +5 -0
- package/scripts/cocoapods/utils.rb +1 -0
- package/scripts/react_native_pods.rb +7 -1
- package/template/package.json +1 -1
- package/ReactCommon/butter/function.h +0 -51
package/React/Base/RCTVersion.m
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
#include <react/bridging/Convert.h>
|
|
11
11
|
|
|
12
12
|
#include <ReactCommon/CallInvoker.h>
|
|
13
|
-
#include <butter/function.h>
|
|
14
13
|
#include <jsi/jsi.h>
|
|
15
14
|
|
|
16
15
|
#include <cstdint>
|
|
@@ -36,12 +35,12 @@ struct function_wrapper;
|
|
|
36
35
|
|
|
37
36
|
template <typename C, typename R, typename... Args>
|
|
38
37
|
struct function_wrapper<R (C::*)(Args...)> {
|
|
39
|
-
using type =
|
|
38
|
+
using type = std::function<R(Args...)>;
|
|
40
39
|
};
|
|
41
40
|
|
|
42
41
|
template <typename C, typename R, typename... Args>
|
|
43
42
|
struct function_wrapper<R (C::*)(Args...) const> {
|
|
44
|
-
using type =
|
|
43
|
+
using type = std::function<R(Args...)>;
|
|
45
44
|
};
|
|
46
45
|
|
|
47
46
|
template <typename T, typename = void>
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
#include <ReactCommon/SchedulerPriority.h>
|
|
14
14
|
|
|
15
|
-
#include <butter/function.h>
|
|
16
|
-
|
|
17
15
|
namespace facebook::react {
|
|
18
16
|
|
|
19
17
|
template <typename F>
|
|
@@ -169,8 +167,8 @@ struct Bridging<SyncCallback<R(Args...)>> {
|
|
|
169
167
|
};
|
|
170
168
|
|
|
171
169
|
template <typename R, typename... Args>
|
|
172
|
-
struct Bridging<
|
|
173
|
-
using Func =
|
|
170
|
+
struct Bridging<std::function<R(Args...)>> {
|
|
171
|
+
using Func = std::function<R(Args...)>;
|
|
174
172
|
using IndexSequence = std::index_sequence_for<Args...>;
|
|
175
173
|
|
|
176
174
|
static constexpr size_t kArgumentCount = sizeof...(Args);
|
|
@@ -219,15 +217,14 @@ struct Bridging<butter::function<R(Args...)>> {
|
|
|
219
217
|
template <typename R, typename... Args>
|
|
220
218
|
struct Bridging<
|
|
221
219
|
std::function<R(Args...)>,
|
|
222
|
-
std::enable_if_t
|
|
223
|
-
std::function<R(Args...)>,
|
|
224
|
-
|
|
225
|
-
: Bridging<butter::function<R(Args...)>> {};
|
|
220
|
+
std::enable_if_t<
|
|
221
|
+
!std::is_same_v<std::function<R(Args...)>, std::function<R(Args...)>>>>
|
|
222
|
+
: Bridging<std::function<R(Args...)>> {};
|
|
226
223
|
|
|
227
224
|
template <typename R, typename... Args>
|
|
228
|
-
struct Bridging<R(Args...)> : Bridging<
|
|
225
|
+
struct Bridging<R(Args...)> : Bridging<std::function<R(Args...)>> {};
|
|
229
226
|
|
|
230
227
|
template <typename R, typename... Args>
|
|
231
|
-
struct Bridging<R (*)(Args...)> : Bridging<
|
|
228
|
+
struct Bridging<R (*)(Args...)> : Bridging<std::function<R(Args...)>> {};
|
|
232
229
|
|
|
233
230
|
} // namespace facebook::react
|
package/ReactCommon/react/nativemodule/core/platform/android/ReactCommon/JavaTurboModule.cpp
CHANGED
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
#include <ReactCommon/TurboModule.h>
|
|
16
16
|
#include <ReactCommon/TurboModulePerfLogger.h>
|
|
17
17
|
#include <ReactCommon/TurboModuleUtils.h>
|
|
18
|
-
#include <butter/function.h>
|
|
19
18
|
#include <jsi/JSIDynamic.h>
|
|
20
19
|
#include <react/debug/react_native_assert.h>
|
|
21
20
|
#include <react/jni/NativeMap.h>
|
package/package.json
CHANGED
|
@@ -275,6 +275,7 @@ class ReactNativePodsUtils
|
|
|
275
275
|
target_installation_result.native_target.build_configurations.each do |config|
|
|
276
276
|
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = Helpers::Constants.min_ios_version_supported
|
|
277
277
|
config.build_settings["MACOSX_DEPLOYMENT_TARGET"] = Helpers::Constants.min_macos_version_supported # [macOS]
|
|
278
|
+
config.build_settings["XROS_DEPLOYMENT_TARGET"] = Helpers::Constants.min_visionos_version_supported # [visionOS]
|
|
278
279
|
end
|
|
279
280
|
end
|
|
280
281
|
end
|
|
@@ -45,11 +45,17 @@ def min_macos_version_supported
|
|
|
45
45
|
end
|
|
46
46
|
# macOS]
|
|
47
47
|
|
|
48
|
+
# [visionOS
|
|
49
|
+
def min_visionos_version_supported
|
|
50
|
+
return Helpers::Constants.min_visionos_version_supported
|
|
51
|
+
end
|
|
52
|
+
# visionOS]
|
|
53
|
+
|
|
48
54
|
# This function returns the min supported OS versions supported by React Native
|
|
49
55
|
# By using this function, you won't have to manually change your Podfile
|
|
50
56
|
# when we change the minimum version supported by the framework.
|
|
51
57
|
def min_supported_versions
|
|
52
|
-
return { :ios => min_ios_version_supported, :osx => min_macos_version_supported } # [macOS]
|
|
58
|
+
return { :ios => min_ios_version_supported, :osx => min_macos_version_supported, :visionos => min_visionos_version_supported } # [macOS] [visionOS]
|
|
53
59
|
end
|
|
54
60
|
|
|
55
61
|
# This function prepares the project for React Native, before processing
|
package/template/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <butter/butter.h>
|
|
11
|
-
|
|
12
|
-
#if ( \
|
|
13
|
-
defined(BUTTER_FUNCTION_OVERRIDE_INCLUDE) && \
|
|
14
|
-
defined(BUTTER_FUNCTION_OVERRIDE))
|
|
15
|
-
|
|
16
|
-
#include BUTTER_FUNCTION_OVERRIDE_INCLUDE
|
|
17
|
-
|
|
18
|
-
#elif defined(BUTTER_USE_FOLLY_CONTAINERS)
|
|
19
|
-
|
|
20
|
-
#include <folly/Function.h>
|
|
21
|
-
|
|
22
|
-
#else
|
|
23
|
-
|
|
24
|
-
#include <functional>
|
|
25
|
-
|
|
26
|
-
#endif
|
|
27
|
-
|
|
28
|
-
namespace facebook {
|
|
29
|
-
namespace butter {
|
|
30
|
-
|
|
31
|
-
#if ( \
|
|
32
|
-
defined(BUTTER_FUNCTION_OVERRIDE_INCLUDE) && \
|
|
33
|
-
defined(BUTTER_FUNCTION_OVERRIDE))
|
|
34
|
-
|
|
35
|
-
template <typename... Ts>
|
|
36
|
-
using function = BUTTER_FUNCTION_OVERRIDE<Ts...>;
|
|
37
|
-
|
|
38
|
-
#elif defined(BUTTER_USE_FOLLY_CONTAINERS)
|
|
39
|
-
|
|
40
|
-
template <typename... Ts>
|
|
41
|
-
using function = folly::Function<Ts...>;
|
|
42
|
-
|
|
43
|
-
#else
|
|
44
|
-
|
|
45
|
-
template <typename... Ts>
|
|
46
|
-
using function = std::function<Ts...>;
|
|
47
|
-
|
|
48
|
-
#endif
|
|
49
|
-
|
|
50
|
-
} // namespace butter
|
|
51
|
-
} // namespace facebook
|