You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

react-native+0.61.5-jitsi.2.patch 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. diff --git a/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm b/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm
  2. index bd48f44..d243ed0 100644
  3. --- a/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm
  4. +++ b/node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm
  5. @@ -767,7 +767,7 @@ - (void)registerExtraLazyModules
  6. #endif
  7. }
  8. -- (NSArray<RCTModuleData *> *)_initializeModules:(NSArray<id<RCTBridgeModule>> *)modules
  9. +- (NSArray<RCTModuleData *> *)_initializeModules:(NSArray<Class> *)modules
  10. withDispatchGroup:(dispatch_group_t)dispatchGroup
  11. lazilyDiscovered:(BOOL)lazilyDiscovered
  12. {
  13. diff --git a/node_modules/react-native/React/Modules/RCTTiming.m b/node_modules/react-native/React/Modules/RCTTiming.m
  14. index 8a09022..265d7b6 100644
  15. --- a/node_modules/react-native/React/Modules/RCTTiming.m
  16. +++ b/node_modules/react-native/React/Modules/RCTTiming.m
  17. @@ -130,6 +130,11 @@ - (void)setBridge:(RCTBridge *)bridge
  18. object:nil];
  19. }
  20. + [[NSNotificationCenter defaultCenter] addObserver:self
  21. + selector:@selector(proximityChanged)
  22. + name:UIDeviceProximityStateDidChangeNotification
  23. + object:nil];
  24. +
  25. _bridge = bridge;
  26. }
  27. @@ -276,6 +281,16 @@ - (void)didUpdateFrame:(RCTFrameUpdate *)update
  28. }
  29. }
  30. +-(void)proximityChanged
  31. +{
  32. + BOOL near = [UIDevice currentDevice].proximityState;
  33. + if (near) {
  34. + [self appDidMoveToBackground];
  35. + } else {
  36. + [self appDidMoveToForeground];
  37. + }
  38. +}
  39. +
  40. - (void)scheduleSleepTimer:(NSDate *)sleepTarget
  41. {
  42. @synchronized (self) {
  43. diff --git a/node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm b/node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm
  44. index 3cb73b5..e4a14b4 100644
  45. --- a/node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm
  46. +++ b/node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm
  47. @@ -297,7 +297,7 @@ - (void)notifyAboutTurboModuleSetup:(const char *)name
  48. @"%@ has no setter or ivar for its bridge, which is not "
  49. "permitted. You must either @synthesize the bridge property, "
  50. "or provide your own setter method.",
  51. - RCTBridgeModuleNameForClass(module));
  52. + RCTBridgeModuleNameForClass(Class(module)));
  53. }
  54. }