Back out "fixed SDK issue while uploading app in debug scheme"

Summary:
Original commit changeset: 78387999f94e

Original Phabricator Diff: D34392529 (https://github.com/facebook/react-native/commit/086c13dd5fba3f77acbc70c9bdedc9299118b526)

Backing this out because it breaks univeral hot reload support. We should probably find a way to support this *without* relying on swizzling. This was originally backed out it because it was blocking app store submission, but this is gated by `RN_DEV` so should never be included in a release build.

Changelog:
[General][Removed] - The diffs renames the required variable which was causing conflicts in names with Apple core SDK's

Reviewed By: cipolleschi

Differential Revision: D37311377

fbshipit-source-id: 18abb1b53a5be054098cd3717705ea5086c4f595
This commit is contained in:
Pieter De Baets
2022-06-21 10:48:14 -07:00
committed by Facebook GitHub Bot
parent e5f7e4022a
commit 6fcb878a89
3 changed files with 11 additions and 11 deletions
+9 -9
View File
@@ -18,10 +18,10 @@
@interface UIEvent (UIPhysicalKeyboardEvent)
@property (nonatomic) NSString *_modifiedEventInput;
@property (nonatomic) NSString *_modifiedInput;
@property (nonatomic) NSString *_unmodifiedInput;
@property (nonatomic) UIKeyModifierFlags _modifierEventFlags;
@property (nonatomic) BOOL _isKeyEventDown;
@property (nonatomic) UIKeyModifierFlags _modifierFlags;
@property (nonatomic) BOOL _isKeyDown;
@property (nonatomic) long _keyCode;
@end
@@ -116,16 +116,16 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init)
UIKeyModifierFlags modifierFlags = 0;
BOOL isKeyDown = NO;
if ([event respondsToSelector:@selector(_modifiedEventInput)]) {
modifiedInput = [event _modifiedEventInput];
if ([event respondsToSelector:@selector(_modifiedInput)]) {
modifiedInput = [event _modifiedInput];
}
if ([event respondsToSelector:@selector(_modifierEventFlags)]) {
modifierFlags = [event _modifierEventFlags];
if ([event respondsToSelector:@selector(_modifierFlags)]) {
modifierFlags = [event _modifierFlags];
}
if ([event respondsToSelector:@selector(_isKeyEventDown)]) {
isKeyDown = [event _isKeyEventDown];
if ([event respondsToSelector:@selector(_isKeyDown)]) {
isKeyDown = [event _isKeyDown];
}
BOOL interactionEnabled = !UIApplication.sharedApplication.isIgnoringInteractionEvents;
+1 -1
View File
@@ -25,7 +25,7 @@ extern const int RCT_PACKAGER_CLIENT_PROTOCOL_VERSION;
@protocol RCTPackagerClientMethod <NSObject>
- (void)handleRequest:(NSDictionary<NSString *, id> *)params withResponder:(RCTPackagerClientResponder *)responder;
- (void)handlePackageNotification:(NSDictionary<NSString *, id> *)params;
- (void)handleNotification:(NSDictionary<NSString *, id> *)params;
@optional
+1 -1
View File
@@ -210,7 +210,7 @@ static void eraseRegistrationsWithToken(std::vector<Registration<Handler>> &regi
[self
addNotificationHandler:^(NSDictionary<NSString *, id> *notification) {
[handler handlePackageNotification:notification];
[handler handleNotification:notification];
}
queue:queue
forMethod:method];