react-native-macos 0.72.1 → 0.72.3

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: 1,
15
+ patch: 3,
16
16
  prerelease: null,
17
17
  };
@@ -109,7 +109,9 @@ export default class EventEmitter<TEventToArgsMap: {...}>
109
109
  Registration<$ElementType<TEventToArgsMap, TEvent>>,
110
110
  > = this._registry[eventType];
111
111
  if (registrations != null) {
112
- for (const registration of [...registrations]) {
112
+ // Copy `registrations` to take a snapshot when we invoke `emit`, in case
113
+ // registrations are added or removed when listeners are invoked.
114
+ for (const registration of Array.from(registrations)) {
113
115
  registration.listener.apply(registration.context, args);
114
116
  }
115
117
  }
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(1),
26
+ RCTVersionPatch: @(3),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.1
1
+ VERSION_NAME=0.72.3
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", 1,
20
+ "patch", 3,
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 = 1;
20
+ int32_t Patch = 3;
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.1",
3
+ "version": "0.72.3",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -140,7 +140,7 @@ class ReactNativePodsUtils
140
140
  if self.is_using_xcode15_or_greter(:xcodebuild_manager => xcodebuild_manager)
141
141
  self.add_value_to_setting_if_missing(config, other_ld_flags_key, xcode15_compatibility_flags)
142
142
  else
143
- self.remove_value_to_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
143
+ self.remove_value_from_setting_if_present(config, other_ld_flags_key, xcode15_compatibility_flags)
144
144
  end
145
145
  end
146
146
  project.save()
@@ -298,20 +298,26 @@ class ReactNativePodsUtils
298
298
 
299
299
  def self.add_value_to_setting_if_missing(config, setting_name, value)
300
300
  old_config = config.build_settings[setting_name]
301
- if !old_config.include?(value)
302
- config.build_settings[setting_name] << value
301
+ if old_config.is_a?(Array)
302
+ old_config = old_config.join(" ")
303
+ end
304
+
305
+ trimmed_value = value.strip()
306
+ if !old_config.include?(trimmed_value)
307
+ config.build_settings[setting_name] = "#{old_config.strip()} #{trimmed_value}".strip()
303
308
  end
304
309
  end
305
310
 
306
- def self.remove_value_to_setting_if_present(config, setting_name, value)
311
+ def self.remove_value_from_setting_if_present(config, setting_name, value)
307
312
  old_config = config.build_settings[setting_name]
308
- if old_config.include?(value)
309
- # Old config can be either an Array or a String
310
- if old_config.is_a?(Array)
311
- old_config = old_config.join(" ")
312
- end
313
- new_config = old_config.gsub(value, "")
314
- config.build_settings[setting_name] = new_config
313
+ if old_config.is_a?(Array)
314
+ old_config = old_config.join(" ")
315
+ end
316
+
317
+ trimmed_value = value.strip()
318
+ if old_config.include?(trimmed_value)
319
+ new_config = old_config.gsub(trimmed_value, "")
320
+ config.build_settings[setting_name] = new_config.strip()
315
321
  end
316
322
  end
317
323
 
package/template/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
4
  ruby ">= 2.6.10"
5
5
 
6
- gem 'cocoapods', '~> 1.12'
6
+ gem 'cocoapods', '~> 1.13'
7
+ gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
@@ -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.1"
16
+ "react-native": "0.72.3"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.20.0",