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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/vendor/emitter/EventEmitter.js +3 -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/package.json +1 -1
- package/scripts/cocoapods/__tests__/utils-test.rb +2 -2
- package/scripts/cocoapods/utils.rb +17 -11
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/Gemfile +2 -1
- package/template/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
}
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
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)
|
|
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.
|
|
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
|
|
302
|
-
|
|
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.
|
|
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.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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