react-native-macos 0.72.16 → 0.72.18

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: 16,
15
+ patch: 18,
16
16
  prerelease: null,
17
17
  };
@@ -51,6 +51,11 @@ Pod::Spec.new do |s|
51
51
  "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
52
52
  "HEADER_SEARCH_PATHS" => header_search_paths.join(' ')
53
53
  }
54
+ # [macOS Restrict UIKit to iOS and visionOS
55
+ s.ios.framework = ["Accelerate", "UIKit"]
56
+ s.visionos.framework = ["Accelerate", "UIKit"]
57
+ s.osx.framework = ["Accelerate"]
58
+ # macOS]
54
59
 
55
60
  s.dependency "RCT-Folly", folly_version
56
61
  s.dependency "React-Codegen", version
@@ -65,6 +65,10 @@ const Platform = {
65
65
  // $FlowFixMe[object-this-reference]
66
66
  return this.constants.uiMode === 'tv';
67
67
  },
68
+ // $FlowFixMe[unsafe-getters-setters]
69
+ get isVision(): boolean {
70
+ return false;
71
+ },
68
72
  select: <T>(spec: PlatformSelectSpec<T>): T =>
69
73
  'android' in spec
70
74
  ? // $FlowFixMe[incompatible-return]
@@ -53,6 +53,8 @@ interface PlatformIOSStatic extends PlatformStatic {
53
53
  OS: 'ios';
54
54
  isPad: boolean;
55
55
  isTV: boolean;
56
+ isVision: boolean;
57
+ isMacCatalyst?: boolean | undefined;
56
58
  Version: string;
57
59
  }
58
60
 
@@ -58,6 +58,11 @@ const Platform = {
58
58
  return this.constants.interfaceIdiom === 'tv';
59
59
  },
60
60
  // $FlowFixMe[unsafe-getters-setters]
61
+ get isVision(): boolean {
62
+ // $FlowFixMe[object-this-reference]
63
+ return this.constants.interfaceIdiom === 'vision';
64
+ },
65
+ // $FlowFixMe[unsafe-getters-setters]
61
66
  get isTesting(): boolean {
62
67
  if (__DEV__) {
63
68
  // $FlowFixMe[object-this-reference]
@@ -52,6 +52,10 @@ const Platform = {
52
52
  return false;
53
53
  },
54
54
  // $FlowFixMe[unsafe-getters-setters]
55
+ get isVision(): boolean {
56
+ return false;
57
+ },
58
+ // $FlowFixMe[unsafe-getters-setters]
55
59
  get isTesting(): boolean {
56
60
  if (__DEV__) {
57
61
  // $FlowFixMe[object-this-reference]
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(16),
26
+ RCTVersionPatch: @(18),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -30,6 +30,10 @@ static NSString *interfaceIdiom(UIUserInterfaceIdiom idiom)
30
30
  return @"tv";
31
31
  case UIUserInterfaceIdiomCarPlay:
32
32
  return @"carplay";
33
+ #if TARGET_OS_VISION
34
+ case UIUserInterfaceIdiomVision:
35
+ return @"vision";
36
+ #endif
33
37
  default:
34
38
  return @"unknown";
35
39
  }
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.16
1
+ VERSION_NAME=0.72.18
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", 16,
20
+ "patch", 18,
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 = 16;
20
+ int32_t Patch = 18;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.72.16",
3
+ "version": "0.72.18",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -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.16"
16
+ "react-native": "0.72.18"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",