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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 72,
15
- patch: 14,
15
+ patch: 15,
16
16
  prerelease: null,
17
17
  };
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(14),
26
+ RCTVersionPatch: @(15),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.14
1
+ VERSION_NAME=0.72.15
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 72,
20
- "patch", 14,
20
+ "patch", 15,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 72;
20
- int32_t Patch = 14;
20
+ int32_t Patch = 15;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
@@ -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 = butter::function<R(Args...)>;
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 = butter::function<R(Args...)>;
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<butter::function<R(Args...)>> {
173
- using Func = butter::function<R(Args...)>;
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<!std::is_same_v<
223
- std::function<R(Args...)>,
224
- butter::function<R(Args...)>>>>
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<butter::function<R(Args...)>> {};
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<butter::function<R(Args...)>> {};
228
+ struct Bridging<R (*)(Args...)> : Bridging<std::function<R(Args...)>> {};
232
229
 
233
230
  } // namespace facebook::react
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.72.14",
3
+ "version": "0.72.15",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -45,5 +45,10 @@ module Helpers
45
45
  return '10.15'
46
46
  end
47
47
  # macOS]
48
+ # [visionOS
49
+ def self.min_visionos_version_supported
50
+ return '1.0'
51
+ end
52
+ # visionOS]
48
53
  end
49
54
  end
@@ -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
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "react": "18.2.0",
15
15
  "react-native-macos": "1000.0.0",
16
- "react-native": "0.72.14"
16
+ "react-native": "0.72.15"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",
@@ -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