react-native 0.72.5 → 0.72.6

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: 5,
15
+ patch: 6,
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: @(5),
26
+ RCTVersionPatch: @(6),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.5
1
+ VERSION_NAME=0.72.6
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", 5,
20
+ "patch", 6,
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 = 5;
20
+ int32_t Patch = 6;
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",
3
- "version": "0.72.5",
3
+ "version": "0.72.6",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -526,7 +526,7 @@ class UtilsTests < Test::Unit::TestCase
526
526
  # Assert
527
527
  user_project_mock.build_configurations.each do |config|
528
528
  assert_equal("$(inherited) _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION", config.build_settings["GCC_PREPROCESSOR_DEFINITIONS"])
529
- assert_equal("$(inherited) -Wl -ld_classic ", config.build_settings["OTHER_LDFLAGS"])
529
+ assert_equal("$(inherited) -Wl -ld_classic", config.build_settings["OTHER_LDFLAGS"])
530
530
  end
531
531
 
532
532
  # User project and Pods project
@@ -576,7 +576,7 @@ class UtilsTests < Test::Unit::TestCase
576
576
  # Assert
577
577
  user_project_mock.build_configurations.each do |config|
578
578
  assert_equal("$(inherited) _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION", config.build_settings["GCC_PREPROCESSOR_DEFINITIONS"])
579
- assert_equal("$(inherited) ", config.build_settings["OTHER_LDFLAGS"])
579
+ assert_equal("$(inherited)", config.build_settings["OTHER_LDFLAGS"])
580
580
  end
581
581
 
582
582
  # User project and Pods project
@@ -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
 
Binary file
Binary file
Binary file
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'
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.72.5"
14
+ "react-native": "0.72.6"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",