react-native-macos 0.72.1 → 0.72.2
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/ReactAndroid/src/main/java/com/facebook/react/shell/MainReactPackage.java +5 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +2 -2
- package/scripts/cocoapods/utils.rb +17 -11
- 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
|
@@ -25,6 +25,7 @@ import com.facebook.react.modules.blob.BlobModule;
|
|
|
25
25
|
import com.facebook.react.modules.blob.FileReaderModule;
|
|
26
26
|
import com.facebook.react.modules.camera.ImageStoreManager;
|
|
27
27
|
import com.facebook.react.modules.clipboard.ClipboardModule;
|
|
28
|
+
import com.facebook.react.modules.devloading.DevLoadingModule;
|
|
28
29
|
import com.facebook.react.modules.devtoolssettings.DevToolsSettingsManagerModule;
|
|
29
30
|
import com.facebook.react.modules.dialog.DialogModule;
|
|
30
31
|
import com.facebook.react.modules.fresco.FrescoModule;
|
|
@@ -72,6 +73,7 @@ import javax.inject.Provider;
|
|
|
72
73
|
AppearanceModule.class,
|
|
73
74
|
AppStateModule.class,
|
|
74
75
|
BlobModule.class,
|
|
76
|
+
DevLoadingModule.class,
|
|
75
77
|
FileReaderModule.class,
|
|
76
78
|
ClipboardModule.class,
|
|
77
79
|
DialogModule.class,
|
|
@@ -113,6 +115,8 @@ public class MainReactPackage extends TurboReactPackage implements ViewManagerOn
|
|
|
113
115
|
return new AppStateModule(context);
|
|
114
116
|
case BlobModule.NAME:
|
|
115
117
|
return new BlobModule(context);
|
|
118
|
+
case DevLoadingModule.NAME:
|
|
119
|
+
return new DevLoadingModule(context);
|
|
116
120
|
case FileReaderModule.NAME:
|
|
117
121
|
return new FileReaderModule(context);
|
|
118
122
|
case ClipboardModule.NAME:
|
|
@@ -371,6 +375,7 @@ public class MainReactPackage extends TurboReactPackage implements ViewManagerOn
|
|
|
371
375
|
AppearanceModule.class,
|
|
372
376
|
AppStateModule.class,
|
|
373
377
|
BlobModule.class,
|
|
378
|
+
DevLoadingModule.class,
|
|
374
379
|
FileReaderModule.class,
|
|
375
380
|
ClipboardModule.class,
|
|
376
381
|
DialogModule.class,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-macos",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.2",
|
|
4
4
|
"bin": "./cli.js",
|
|
5
5
|
"description": "React Native for macOS",
|
|
6
6
|
"license": "MIT",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"abort-controller": "^3.0.0",
|
|
93
93
|
"anser": "^1.4.9",
|
|
94
94
|
"base64-js": "^1.1.2",
|
|
95
|
-
"deprecated-react-native-prop-types": "4.
|
|
95
|
+
"deprecated-react-native-prop-types": "^4.2.3",
|
|
96
96
|
"event-target-shim": "^5.0.1",
|
|
97
97
|
"flow-enums-runtime": "^0.0.5",
|
|
98
98
|
"invariant": "^2.2.4",
|
|
@@ -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
|
|
package/template/Gemfile
CHANGED